Chaos Mod | New Gamerules Every Round [EU] 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286549481532442",
"domain": null,
"id": 11738118,
"ip": "46.8.238.83",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Helsinki",
"description": null,
"game": 3545060,
"owner": null,
"boosts": 1,
"last_offline": 1781247789,
"last_online": 1780507838,
"icon": null,
"name": "Chaos Mod | New Gamerules Every Round [EU]",
"connect": "46.8.238.83:27015",
"request": "46.8.238.83:27015",
"map": "koth_harvest_final",
"gamemode": "Team Fortress 2 Classic",
"version": "5394610",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": true,
"private": false,
"country": "FI",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780412887,
"last_update": 1781247789,
"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": 187,
"language": "fi",
"parked": false,
"app": {
"id": 123,
"steam_id": 3545060,
"name": "Team Fortress 2 Classified",
"url": "team-fortress-2-classified"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11738118");
$data = json_decode($json, true);
var_dump($data);