Pookie 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286400868601873",
"domain": null,
"id": 11384342,
"ip": "38.105.209.89",
"port": 31600,
"query": 31615,
"color": 0,
"city": "Orangeburg",
"description": null,
"game": 1857950,
"owner": null,
"boosts": 1,
"last_offline": 1779240185,
"last_online": 1780168370,
"icon": null,
"name": "Pookie",
"connect": "38.105.209.89:31600",
"request": "38.105.209.89:31615",
"map": "Champlain Valley",
"gamemode": "VEIN",
"version": "0.024",
"numplayers": 1,
"maxplayers": 2,
"bots": 0,
"secured": false,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 52,
"add_date": 1774596135,
"last_update": 1780168370,
"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": 33,
"language": "en",
"parked": false,
"app": {
"id": 1530675,
"steam_id": 1857950,
"name": "VEIN",
"url": "vein"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11384342");
$data = json_decode($json, true);
var_dump($data);