s&box
Pelican Sandbox Server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11492196json
{
"response": {
"revision": "237368",
"protocol": 1101,
"gameident": "cerberusdynamics.cerberus",
"mapident": "flatgrass",
"hidden": false,
"api": 25,
"steam_id": "90285676817553432",
"domain": null,
"id": 11492196,
"ip": "94.130.91.140",
"port": 27015,
"query": 65530,
"color": 0,
"city": "Falkenstein",
"description": null,
"game": 590830,
"owner": null,
"boosts": 1,
"last_offline": 1778621536,
"score": 0,
"last_online": 1778706057,
"icon": null,
"name": "Pelican Sandbox Server",
"connect": "94.130.91.140:27015",
"request": "94.130.91.140:65530",
"map": "flatgrass",
"gamemode": "Cerberus",
"version": "26.05.06a",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1778272659,
"last_update": 1778706057,
"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": 41,
"language": "de",
"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/11492196");
$data = json_decode($json, true);
var_dump($data);