Ground Zero #1 | Co-op 25 | PH 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11799189,
"ip": "209.102.250.71",
"port": 9045,
"query": 9045,
"project_id": null,
"color": 0,
"city": "Singapore",
"description": null,
"game": 550,
"owner": 193028,
"boosts": 1,
"last_offline": 1781456908,
"last_online": 1781487028,
"icon": null,
"name": "Ground Zero #1 | Co-op 25 | PH",
"connect": "209.102.250.71:9045",
"request": "209.102.250.71:9045",
"map": "c12m1_hilltop",
"gamemode": "Left 4 Dead 2",
"version": "2.2.4.3",
"numplayers": 0,
"maxplayers": 25,
"bots": 0,
"secured": true,
"private": false,
"country": "SG",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1781456817,
"last_update": 1781487028,
"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": 1565,
"language": "en",
"parked": false,
"app": {
"id": 11,
"steam_id": 550,
"name": "Left 4 Dead 2",
"url": "left-4-dead-2"
},
"server_owner": {
"username": "triple_x_fantasy",
"avatar": "4e5c4232-6c1a-4427-9401-78f7c50621ba.jpg"
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11799189");
$data = json_decode($json, true);
var_dump($data);