Arena · The Lower Nine · USA 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286057684794368",
"domain": null,
"id": 11252644,
"ip": null,
"port": null,
"query": null,
"project_id": null,
"color": 0,
"city": "Marietta",
"description": null,
"game": 3545060,
"owner": 183155,
"boosts": 1,
"last_offline": 1780379605,
"last_online": 1779481828,
"icon": null,
"name": "Arena · The Lower Nine · USA",
"connect": null,
"request": null,
"map": "arena_badlands",
"gamemode": "Team Fortress",
"version": "5008",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774417411,
"last_update": 1780379605,
"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": 202,
"language": "en",
"parked": true,
"app": {
"id": 123,
"steam_id": 3545060,
"name": "Team Fortress 2 Classified",
"url": "team-fortress-2-classified"
},
"server_owner": {
"username": "ferignette",
"avatar": "d9bd410f-b582-4174-a12b-0ac5885e3ce2.jpg"
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11252644");
$data = json_decode($json, true);
var_dump($data);