[IceBox|TF2]工程塔防-MVMTD 群:714581529 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "85568392935952335",
"domain": null,
"id": 11544954,
"ip": "112.17.187.18",
"port": 11441,
"query": 11441,
"project_id": null,
"color": 0,
"city": "Hangzhou",
"description": null,
"game": 440,
"owner": null,
"boosts": 1,
"last_offline": 1780554267,
"last_online": 1781206286,
"icon": null,
"name": "[IceBox|TF2]工程塔防-MVMTD 群:714581529",
"connect": "112.17.187.18:11441",
"request": "112.17.187.18:11441",
"map": "td_firstone_v11b",
"gamemode": "Icebox MVMTD (0波/0波)",
"version": "10682184",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779355559,
"last_update": 1781206286,
"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": 1591,
"language": "zh",
"parked": false,
"app": {
"id": 24,
"steam_id": 440,
"name": "Team Fortress 2",
"url": "team-fortress-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11544954");
$data = json_decode($json, true);
var_dump($data);