Day of Defeat
KTP - Atlanta 5 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11015340json
{
"response": {
"steam_id": "90284393437188115",
"domain": null,
"id": 11015340,
"ip": "74.91.121.9",
"port": 27019,
"query": 27019,
"color": 0,
"city": "Atlanta",
"description": null,
"game": 30,
"owner": null,
"boosts": 1,
"last_offline": 1774697546,
"score": 0,
"last_online": 1776256222,
"icon": null,
"name": "KTP - Atlanta 5",
"connect": "74.91.121.9:27019",
"request": "74.91.121.9:27019",
"map": "dod_halle",
"gamemode": "Day of Defeat",
"version": "1.1.2.6/Stdio",
"numplayers": 1,
"maxplayers": 13,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 35,
"add_date": 1769943115,
"last_update": 1776256222,
"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": 28,
"language": "en",
"parked": false,
"app": {
"id": 28,
"steam_id": 30,
"name": "Day of Defeat",
"url": "day-of-defeat"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11015340");
$data = json_decode($json, true);
var_dump($data);