Apocalyptic Paradise 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90287070785086481",
"domain": null,
"id": 8990714,
"ip": "191.96.186.49",
"port": 26627,
"query": 26627,
"project_id": null,
"color": 0,
"city": "Dallas",
"description": null,
"game": 251570,
"owner": null,
"boosts": 1,
"last_offline": 1781546045,
"last_online": 1781561419,
"icon": null,
"name": "Apocalyptic Paradise",
"connect": "191.96.186.49:26627",
"request": "191.96.186.49:26627",
"map": "Kekijo Valley",
"gamemode": "7 Days To Die",
"version": "01.03.00",
"numplayers": 10,
"maxplayers": 20,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 75,
"add_date": 1746826999,
"last_update": 1781561419,
"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": 21,
"language": "en",
"parked": false,
"app": {
"id": 49,
"steam_id": 251570,
"name": "7 Days to Die",
"url": "7-days-to-die"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/8990714");
$data = json_decode($json, true);
var_dump($data);