\\S.T.A.L.K.E.R////Day of Defeat//// 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90287015139297311",
"domain": null,
"id": 11798434,
"ip": "46.174.49.195",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Moscow",
"description": null,
"game": 300,
"owner": null,
"boosts": 1,
"last_offline": 1781378925,
"last_online": 1781457729,
"icon": null,
"name": "\\\\S.T.A.L.K.E.R////Day of Defeat////",
"connect": "46.174.49.195:27015",
"request": "46.174.49.195:27015",
"map": "dod_lime_arena",
"gamemode": "Day of Defeat",
"version": "9540945",
"numplayers": 0,
"maxplayers": 33,
"bots": 10,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1781378925,
"last_update": 1781457729,
"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": 151,
"language": "ru",
"parked": false,
"app": {
"id": 8,
"steam_id": 300,
"name": "Day of Defeat: Source",
"url": "day-of-defeat-source"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11798434");
$data = json_decode($json, true);
var_dump($data);