Testserver 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 60,
"fps_avg": 60,
"entities_count": 68493,
"world_seed": 601127772,
"world_size": 3750,
"steam_id": 90286602197861390,
"domain": null,
"id": 11511311,
"ip": "194.69.160.36",
"port": 28015,
"query": 28017,
"color": 0,
"city": "City of London",
"description": "\nSexyParadise EU 10x\r\n\r\nMAX 6 PLAYERS PER TEAM\\\r\nWIPES EVERY TUESDAY & SATURDAY @ 15:00 CET\\\r\n\\\r\n- 10x Gather & Loot\r\n- No BPs\r\n- Kits / Shop / Skinner\r\n- Clans & Events\\\r\n- Fast Progression\\\r\n- Balanced PvP\r\n- Active Staff\r\n- High Performance EU Hosting\r\n\r\nJoin the rush. Dominate. Repeat.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780648403,
"last_online": 1780593199,
"icon": null,
"name": "Testserver",
"connect": "194.69.160.36:28015",
"request": "194.69.160.36:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779353841,
"last_update": 1780648403,
"banned": false,
"wipe": 1779800773,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11288,
"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/11511311");
$data = json_decode($json, true);
var_dump($data);