s&box
My Physgun S&box Server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11491621json
{
"response": {
"revision": "104599",
"protocol": 1100,
"gameident": "facepunch.walker",
"mapident": "scenemap",
"hidden": false,
"api": 25,
"steam_id": "90285077350436866",
"domain": null,
"id": 11491621,
"ip": "194.69.160.56",
"port": 37021,
"query": 37022,
"color": 0,
"city": "City of London",
"description": null,
"game": 590830,
"owner": null,
"boosts": 1,
"last_offline": 1777415028,
"score": 0,
"last_online": 1778703092,
"icon": null,
"name": "My Physgun S&box Server",
"connect": "194.69.160.56:37021",
"request": "194.69.160.56:37022",
"map": "scenemap",
"gamemode": "Walker",
"version": "26.04.28",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1777415028,
"last_update": 1778703092,
"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": 29,
"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/11491621");
$data = json_decode($json, true);
var_dump($data);