Reclamation | Vanilla | Solo/Duo/Trio | Survive-Build-Reclaim 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": 0,
"domain": null,
"id": 11704667,
"ip": "89.35.130.95",
"port": 20816,
"query": 22121,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1780262456,
"last_online": 1780308021,
"icon": null,
"name": "Reclamation | Vanilla | Solo/Duo/Trio | Survive-Build-Reclaim",
"connect": "89.35.130.95:20816",
"request": "89.35.130.95:22121",
"map": "enoch",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 100,
"maxplayers": 127,
"bots": 100,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 83,
"add_date": 1780262456,
"last_update": 1780308021,
"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": 2100,
"language": "de",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11704667");
$data = json_decode($json, true);
var_dump($data);