s&box
DreamCity Sbox 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11492199json
{
"response": {
"revision": "229660",
"protocol": 1100,
"gameident": "sousoup.darkrp2",
"hidden": false,
"api": 25,
"steam_id": "90285370428767234",
"domain": null,
"id": 11492199,
"ip": "51.77.215.71",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Roubaix",
"description": null,
"game": 590830,
"owner": null,
"boosts": 1,
"last_offline": 1778272659,
"score": 0,
"last_online": 1778706063,
"icon": null,
"name": "DreamCity Sbox",
"connect": "51.77.215.71:27015",
"request": "51.77.215.71:27015",
"map": "thieves.rpdowntown3t",
"gamemode": "DarkRP",
"version": "26.04.29a",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1778272659,
"last_update": 1778706063,
"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": 42,
"language": "fr",
"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/11492199");
$data = json_decode($json, true);
var_dump($data);