EastCoast PvP ~ Solo/Duo 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 236,
"fps_avg": 229,
"entities_count": 28850,
"world_seed": 648252,
"world_size": 2600,
"steam_id": "90286625956851738",
"domain": null,
"id": 10412991,
"ip": "15.204.245.21",
"port": 28015,
"query": 28016,
"project_id": null,
"color": 0,
"city": "Reston",
"description": "\nA server tuned for players tired of vanilla grind AND getting wiped before you've even finished building.\r\n\r\n~ TCPower - your TC powers your base (a mechanic you haven't seen)\r\n~ Boosted gather + Fast smelt = less grind, less time waiting in base\r\n~ Custom Monument Events - tiered loot + guards, every wipe\r\n~ 1v1 Duels (/pvp) - instant kit fights, winner takes all\r\n\r\n~ Building on player feedback (join Discord) ~ Powered by | ColaBot |",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780622058,
"last_online": 1780726228,
"icon": null,
"name": "EastCoast PvP ~ Solo/Duo",
"connect": "15.204.245.21:28015",
"request": "15.204.245.21:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 89,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1759823793,
"last_update": 1780726228,
"banned": false,
"wipe": 1780622509,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3644,
"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/10412991");
$data = json_decode($json, true);
var_dump($data);