Server for big boys 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90284108287695878",
"domain": null,
"id": 11638283,
"ip": "109.120.142.65",
"port": 25787,
"query": 25787,
"color": 0,
"city": "Amsterdam",
"description": null,
"game": 328070,
"owner": null,
"boosts": 1,
"last_offline": 1779917223,
"last_online": 1780195990,
"icon": null,
"name": "Server for big boys",
"connect": "109.120.142.65:25787",
"request": "109.120.142.65:25787",
"map": "Toxicity (scaled)",
"gamemode": "Reflex Arena",
"version": "1.3.1-389",
"numplayers": 0,
"maxplayers": 6,
"bots": 0,
"secured": true,
"private": false,
"country": "NL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779917223,
"last_update": 1780195990,
"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": 63,
"language": "nl",
"parked": false,
"app": {
"id": 145,
"steam_id": 328070,
"name": "Reflex Arena",
"url": "reflex-arena"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11638283");
$data = json_decode($json, true);
var_dump($data);