<EMA> Obi's Crab Shack PVE,PVP, XPstats 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 160,
"fps_avg": 159,
"entities_count": 110392,
"world_seed": 243760378,
"world_size": 4500,
"steam_id": "90286621191708701",
"domain": null,
"id": 568699,
"ip": "70.15.129.163",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Westfield",
"description": "2x Heavily modded with fullbackpack,shop to buy quarrys and many other items, Custom NPC's at monuments, Boss's, NPC gun drop, Box stack, TP, Craftable Recycler, Custom built Raidable bases,XP system with customizable stats, Clans and much much more.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780611859,
"last_online": 1780644032,
"icon": null,
"name": "<EMA> Obi's Crab Shack PVE,PVP, XPstats",
"connect": "70.15.129.163:28015",
"request": "70.15.129.163:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1668891693,
"last_update": 1780644032,
"banned": false,
"wipe": 1780612141,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2566,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/568699");
$data = json_decode($json, true);
var_dump($data);