Desert of the Real!!! 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90285250504390667",
"domain": null,
"id": 11587869,
"ip": "51.91.219.173",
"port": 27017,
"query": 27017,
"color": 0,
"city": "Roubaix",
"description": null,
"game": 362890,
"owner": null,
"boosts": 1,
"last_offline": 1779357506,
"last_online": 1779564693,
"icon": null,
"name": "Desert of the Real!!!",
"connect": "51.91.219.173:27017",
"request": "51.91.219.173:27017",
"map": "dm_bounce",
"gamemode": "Black Mesa",
"version": "100002",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779357506,
"last_update": 1779564693,
"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": 35,
"language": "fr",
"parked": false,
"app": {
"id": 4,
"steam_id": 362890,
"name": "Black Mesa",
"url": "black-mesa"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11587869");
$data = json_decode($json, true);
var_dump($data);