Counter-Strike
[ZM] Зомби Атмосфера 2020 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11492564json
{
"response": {
"steam_id": 90071992547409920,
"domain": null,
"id": 11492564,
"ip": "176.32.35.24",
"port": 27114,
"query": 27114,
"color": 0,
"city": "Moscow",
"description": null,
"game": 10,
"owner": 80900,
"boosts": 1,
"last_offline": 1779007948,
"score": 0,
"last_online": 1779030019,
"icon": null,
"name": "[ZM] Зомби Атмосфера 2020",
"connect": "176.32.35.24:27114",
"request": "176.32.35.24:27114",
"map": "zm_zero_blood",
"gamemode": "cs-host.ru",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": true,
"votes": 1,
"points": 61,
"add_date": 1779007948,
"last_update": 1779030019,
"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": 2459,
"language": "ru",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": {
"username": "RainShelby",
"avatar": "6ecbe0de-f680-4ccd-821f-2b60f59df02e.jpg",
"last_online": 1779029082
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11492564");
$data = json_decode($json, true);
var_dump($data);