Unnamed Server 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": 90286713250080780,
"domain": null,
"id": 11757621,
"ip": "149.143.106.230",
"port": 7777,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Joure",
"description": null,
"game": 346110,
"owner": null,
"boosts": 1,
"last_offline": 1781072608,
"last_online": 1781044892,
"icon": null,
"name": "Unnamed Server",
"connect": "149.143.106.230:7777",
"request": "149.143.106.230:27015",
"map": "Aberration",
"gamemode": "TestGameMode_C",
"version": "361.7",
"numplayers": 0,
"maxplayers": 70,
"bots": 0,
"secured": true,
"private": true,
"country": "NL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780931490,
"last_update": 1781072608,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 17620,
"language": "nl",
"parked": false,
"app": {
"id": 67,
"steam_id": 346110,
"name": "ARK: Survival Evolved",
"url": "ark-survival-evolved"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11757621");
$data = json_decode($json, true);
var_dump($data);