API для Collectively Awesome Gaming
JSON для программ, сайтов и прочего
text
json
{
"response": {
"S0": false,
"S4": 1,
"S7": 1,
"S8": 1,
"Sa": false,
"Sf": 0,
"Sl": 1,
"Sy": 0,
"Sz": 1,
"CSF": 0,
"S05": false,
"S15": 0,
"S17": "15:0\n3719513784\n3719642461\n3731128190\n3723770967\n3750905655\n3718882569\n3741684658\n3720904511\n3720915336\n3719621216",
"S21": 1,
"S22": 1,
"S23": 1,
"S24": 1,
"S25": false,
"S30": 0,
"S117": false,
"S119": false,
"S120": "",
"S122": true,
"guid": "62447771d66d04cc696db436fc1d176c",
"kdsUri": "https://todo",
"buildId": 376069,
"dedicated": false,
"serverUID": "62447771d66d04cc696db436fc1d176c",
"steam_id": null,
"domain": null,
"id": 16410342,
"ip": "170.23.112.137",
"port": 27215,
"query": 27218,
"project_id": null,
"color": 0,
"city": "Сан-Хосе",
"description": null,
"game": 440900,
"boosts": 1,
"last_offline": 1789519270,
"last_online": 1789727656,
"icon": null,
"name": "Collectively Awesome Gaming",
"connect": "170.23.112.137:27215",
"request": "170.23.112.137:27218",
"map": "ConanSandbox",
"gamemode": "Conan Exiles",
"version": "376069",
"numplayers": 3,
"maxplayers": 4,
"bots": 0,
"secured": false,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 65,
"add_date": 1789440683,
"last_update": 1789727656,
"ban_reason": null,
"banned": false,
"hidden": false,
"wipe": null,
"official": false,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 15,
"language": "en",
"parked": false,
"app": {
"id": 170,
"steam_id": 440900,
"name": "Conan Exiles",
"url": "conan-exiles"
},
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/16410342");
$data = json_decode($json, true);
var_dump($data);