Counter-Strike: Source
Zombie Mod [ZM] | So You Think You Can Hunt? | NovaHunterZ 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/3603133json
{
"response": {
"steam_id": "90284706425748508",
"domain": null,
"id": 3603133,
"ip": "5.135.143.217",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Roubaix",
"description": "",
"game": 240,
"owner": 70806,
"boosts": 1,
"last_offline": 1773040330,
"score": null,
"last_online": 1776796220,
"icon": null,
"name": "Zombie Mod [ZM] | So You Think You Can Hunt? | NovaHunterZ",
"connect": "5.135.143.217:27015",
"request": "5.135.143.217:27015",
"map": "zm_nh_3sectors",
"gamemode": "Zombie Mod",
"version": "9540945",
"numplayers": 1,
"maxplayers": 65,
"bots": 10,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1711530782,
"last_update": 1776796220,
"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": 345,
"language": "fr",
"parked": false,
"app": {
"id": 5,
"steam_id": 240,
"name": "Counter-Strike: Source",
"url": "counter-strike-source"
},
"server_owner": {
"username": "FrederikRavn",
"avatar": "81eca418-ccf0-410d-8343-f77ad0ea8f07.jpg",
"last_online": 1717821247
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/3603133");
$data = json_decode($json, true);
var_dump($data);