Pandahut #17 [EU] [Semi-Vanilla] [10x] [OldSchool] 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": 85568392936242050,
"domain": null,
"id": 11730030,
"ip": "46.105.60.39",
"port": 7415,
"query": 7415,
"color": 0,
"city": "Roubaix",
"description": null,
"game": 304930,
"owner": null,
"boosts": 1,
"last_offline": 1780389123,
"last_online": 1780591860,
"icon": "https://cdn.pandahut.net/favico.png",
"name": "Pandahut #17 [EU] [Semi-Vanilla] [10x] [OldSchool]",
"connect": "46.105.60.39:7415",
"request": "46.105.60.39:7415",
"map": "California2",
"gamemode": "No Bulletdrop | Airdrop | TPA & Home | Not P2W",
"version": "3.26.3.2",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 31,
"add_date": 1780389123,
"last_update": 1780591860,
"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": 248,
"language": "fr",
"parked": false,
"app": {
"id": 48,
"steam_id": 304930,
"name": "Unturned",
"url": "unturned"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11730030");
$data = json_decode($json, true);
var_dump($data);