Canadian Chill | Test/Map Preview 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 60,
"fps_avg": 59,
"entities_count": 98210,
"world_seed": 1337,
"world_size": 4250,
"steam_id": "90286196910726163",
"domain": null,
"id": 10764420,
"ip": "15.235.113.18",
"port": 28010,
"query": 28011,
"color": 0,
"city": "Montreal",
"description": "\nServer is prone to frequent restarts due to map making/editing. Please visit our Main Server under the community tab: Canadian Chill",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779707608,
"last_online": 1779784223,
"icon": null,
"name": "Canadian Chill | Test/Map Preview",
"connect": "15.235.113.18:28010",
"request": "15.235.113.18:28011",
"map": "Chill-Rust.ca Custom Maps",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1766261078,
"last_update": 1779784223,
"banned": false,
"wipe": 1779201806,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3876,
"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/10764420");
$data = json_decode($json, true);
var_dump($data);