Portal 2
agonzo320 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/4784932json
{
"response": {
"steam_id": null,
"domain": null,
"id": 4784932,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": "",
"game": 620,
"owner": 124374,
"boosts": 1,
"last_offline": 1764568863,
"score": 5,
"last_online": 1763695852,
"icon": null,
"name": "agonzo320",
"connect": null,
"request": null,
"map": "mp_coop_race_2",
"gamemode": "Portal 2 Coop",
"version": null,
"numplayers": 0,
"maxplayers": 33,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1718192518,
"last_update": 1764568863,
"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": 1,
"language": "en",
"parked": true,
"app": {
"id": 105,
"steam_id": 620,
"name": "Portal 2",
"url": "portal-2"
},
"server_owner": {
"username": "something_something",
"avatar": "c5c8c7af-90ce-4488-a42f-309297c64cef.jpg",
"last_online": 1751752612
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/4784932");
$data = json_decode($json, true);
var_dump($data);