API для OSG Ash And Blood
JSON для программ, сайтов и прочего
text
json
{
"response": {
"S0": false,
"S4": 4,
"S5": false,
"S6": 0.3,
"S7": 0,
"S8": 0.1,
"Sa": false,
"Sb": 0.5,
"Sf": 0,
"Sj": 0.5,
"Sk": 2.1,
"Sl": 2.5,
"So": 1200,
"Sy": 1,
"Sz": 2,
"CSF": 0,
"S05": false,
"S15": 0,
"S17": "15:0\n3720546346\n3723538551\n3718655125\n3721926604\n3720833693\n3719992510\n3721991191\n3720904511\n3720921242\n3718368769",
"S21": 0.5,
"S22": 0.5,
"S23": 0.5,
"S24": 0.5,
"S25": false,
"S30": 0,
"S117": false,
"S119": false,
"S120": "",
"S122": true,
"S124": 0.08,
"S125": true,
"guid": "53eda4cffa36a3c2df8480afe336e3d6",
"kdsUri": "https://todo",
"buildId": 373655,
"dedicated": false,
"serverUID": "53eda4cffa36a3c2df8480afe336e3d6",
"steam_id": null,
"domain": null,
"id": 16608121,
"ip": null,
"port": null,
"query": null,
"project_id": null,
"color": 0,
"city": "Берлингтон",
"description": null,
"game": 440900,
"boosts": 1,
"last_offline": 1789587097,
"last_online": 1789608608,
"icon": null,
"name": "OSG Ash And Blood",
"connect": null,
"request": null,
"map": "ConanSandbox",
"gamemode": "Conan Exiles",
"version": "373655",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1789587097,
"last_update": 1789608608,
"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": 7566,
"language": "en",
"parked": true,
"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/16608121");
$data = json_decode($json, true);
var_dump($data);