NA | SAVAS.GG | #1 | KOTH | VANILLA | ONEGRID 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 240,
"fps_avg": 239,
"entities_count": 6769,
"world_seed": 1337,
"world_size": 1025,
"steam_id": "90286388435790865",
"domain": null,
"id": 11607198,
"ip": "40.160.233.202",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Miami",
"description": "\nBringing back the beloved Savas map from 2016 Rust.\r\n\r\nFeaturing OG King of The Hill, random loot boxes, same feel, new memories to be had!\r\n\r\nump in, and start reminiscing on the good ol' days!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779915499,
"last_online": 1780557033,
"icon": null,
"name": "NA | SAVAS.GG | #1 | KOTH | VANILLA | ONEGRID",
"connect": "40.160.233.202:28015",
"request": "40.160.233.202:28017",
"map": "Custom Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 60,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779915499,
"last_update": 1780557033,
"banned": false,
"wipe": 1779648386,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5567,
"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/11607198");
$data = json_decode($json, true);
var_dump($data);