API для 沙暴圣战:帝国の真正坟场(12v50 AI 1.0 满点)
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "85568392935937278",
"domain": null,
"id": 11579314,
"ip": "119.91.222.166",
"port": 27102,
"query": 27131,
"color": 0,
"city": "Guangzhou",
"description": null,
"game": 581320,
"owner": null,
"boosts": 1,
"last_offline": 1779689610,
"last_online": 1779790845,
"icon": null,
"name": "沙暴圣战:帝国の真正坟场(12v50 AI 1.0 满点)",
"connect": "119.91.222.166:27102",
"request": "119.91.222.166:27131",
"map": "PowerPlant",
"gamemode": "Checkpoint",
"version": "1.1.0.0",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779356962,
"last_update": 1779790845,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 406,
"language": "zh",
"parked": false,
"app": {
"id": 23489,
"steam_id": 581320,
"name": "Insurgency: Sandstorm",
"url": "insurgency-sandstorm"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11579314");
$data = json_decode($json, true);
var_dump($data);