RustGamingNation 100x PvE [Events|Purge|Zombies|SkillTree] 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 30,
"fps_avg": 29,
"entities_count": 135860,
"world_seed": 1571318224,
"world_size": 4500,
"steam_id": "90286581578415111",
"domain": null,
"id": 4533552,
"ip": "195.60.166.227",
"port": 29015,
"query": 29016,
"color": 0,
"city": "City of London",
"description": "![RustGamingNation 100x PvE [Events|Purge|Zombies|SkillTree]](https://www.dropbox.com/scl/fi/187avc9uicnm8mghru599/v502SmH.png?rlkey=pdo51grnj7i36st01dmcsfts5&st=xjmmom43&dl=1)\nRustGamingNation 100x PvE\r\nEvents | Purge | Zombies | SkillTree\r\nCustom PvE server with raidable bases, zombies, events, progression, and active development.\r\nFriendly community | Regular wipes | Active admins",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779975826,
"last_online": 1780583432,
"icon": null,
"name": "RustGamingNation 100x PvE [Events|Purge|Zombies|SkillTree]",
"connect": "195.60.166.227:29015",
"request": "195.60.166.227:29016",
"map": "by klauz24",
"gamemode": "Survival",
"version": "2625",
"numplayers": 2,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1717058907,
"last_update": 1780583432,
"banned": false,
"wipe": 1779905164,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1653,
"language": "en",
"parked": false,
"app": {
"id": 252490,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/4533552");
$data = json_decode($json, true);
var_dump($data);