s&box
UnityGaming 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11491410json
{
"response": {
"revision": "234704",
"protocol": 1101,
"gameident": "facepunch.sandbox",
"mapident": "construct",
"hidden": false,
"api": 25,
"steam_id": "90285648803259394",
"domain": null,
"id": 11491410,
"ip": "194.69.160.56",
"port": 37023,
"query": 37024,
"color": 0,
"city": "City of London",
"description": null,
"game": 590830,
"owner": null,
"boosts": 1,
"last_offline": 1778708530,
"score": 0,
"last_online": 1778652140,
"icon": null,
"name": "UnityGaming",
"connect": "194.69.160.56:37023",
"request": "194.69.160.56:37024",
"map": "construct",
"gamemode": "Sandbox",
"version": "26.05.06a",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1777280736,
"last_update": 1778708530,
"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": 67,
"language": "en",
"parked": false,
"app": {
"id": 1646716,
"steam_id": 590830,
"name": "s&box",
"url": "sbox"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11491410");
$data = json_decode($json, true);
var_dump($data);