s&box
My Physgun S&box Server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11491777json
{
"response": {
"revision": "218669",
"protocol": 1100,
"gameident": "facepunch.sandbox",
"mapident": "flatgrass",
"hidden": false,
"api": 25,
"steam_id": "90285145757515778",
"domain": null,
"id": 11491777,
"ip": "194.69.160.56",
"port": 37045,
"query": 37046,
"color": 0,
"city": "City of London",
"description": null,
"game": 590830,
"owner": null,
"boosts": 1,
"last_offline": 1777563695,
"score": 0,
"last_online": 1778708525,
"icon": null,
"name": "My Physgun S&box Server",
"connect": "194.69.160.56:37045",
"request": "194.69.160.56:37046",
"map": "flatgrass",
"gamemode": "Sandbox",
"version": "26.04.29-9a4f5fc",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1777563695,
"last_update": 1778708525,
"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": 37,
"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/11491777");
$data = json_decode($json, true);
var_dump($data);