Day of Defeat
Bunch Of Old Folks -BOOF | CAEN 24 / 7 | 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/5319090json
{
"response": {
"steam_id": "90284553185510405",
"domain": null,
"id": 5319090,
"ip": "216.39.240.133",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Ashburn",
"description": null,
"game": 30,
"owner": null,
"boosts": 1,
"last_offline": 1775194331,
"score": 0,
"last_online": 1776453022,
"icon": null,
"name": "Bunch Of Old Folks -BOOF | CAEN 24 / 7 |",
"connect": "216.39.240.133:27015",
"request": "216.39.240.133:27015",
"map": "dod_caen",
"gamemode": "Day of Defeat",
"version": "1.1.2.6/Stdio",
"numplayers": 14,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1721909601,
"last_update": 1776453022,
"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": 2,
"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/5319090");
$data = json_decode($json, true);
var_dump($data);