Day of Defeat
[PL] DoD-Poland.eu[FFA] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10682079json
{
"response": {
"steam_id": "90279546576416784",
"domain": null,
"id": 10682079,
"ip": "91.205.75.219",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Lodz",
"description": null,
"game": 30,
"owner": null,
"boosts": 1,
"last_offline": 1774552918,
"score": 0,
"last_online": 1776427296,
"icon": null,
"name": "[PL] DoD-Poland.eu[FFA]",
"connect": "91.205.75.219:27015",
"request": "91.205.75.219:27015",
"map": "brick_bridge333",
"gamemode": "Day of Defeat",
"version": "1.1.2.6/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 8,
"secured": true,
"private": false,
"country": "PL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1764584157,
"last_update": 1776427296,
"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": 103,
"language": "pl",
"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/10682079");
$data = json_decode($json, true);
var_dump($data);