s&box
[US] MauveRP | Crime | Economy | Roleplay 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11490025json
{
"response": {
"revision": "239722",
"protocol": 1101,
"gameident": "mauve.mauve_rp",
"mapident": "rpdowntown3t",
"hidden": false,
"api": 25,
"steam_id": "85568392936172964",
"domain": null,
"id": 11490025,
"ip": "45.45.238.3",
"port": 27015,
"query": 27016,
"color": 0,
"city": "Chicago",
"description": null,
"game": 590830,
"owner": null,
"boosts": 1,
"last_offline": 1778095386,
"score": 0,
"last_online": 1778703017,
"icon": null,
"name": "[US] MauveRP | Crime | Economy | Roleplay",
"connect": "45.45.238.3:27015",
"request": "45.45.238.3:27016",
"map": "rpdowntown3t",
"gamemode": "MauveRP",
"version": "26.05.06a",
"numplayers": 11,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 78,
"add_date": 1777143108,
"last_update": 1778703017,
"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": 3,
"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/11490025");
$data = json_decode($json, true);
var_dump($data);