面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11695797
json
{
  "response": {
    "revision": "273027",
    "protocol": 1102,
    "gameident": "aeroxrp.sboxrpframework",
    "hidden": false,
    "api": 25,
    "steam_id": "85568392936270767",
    "domain": null,
    "id": 11695797,
    "ip": "37.187.251.69",
    "port": 29000,
    "query": 29001,
    "color": 0,
    "city": "Roubaix",
    "description": null,
    "game": 590830,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780550609,
    "last_online": 1780478554,
    "icon": null,
    "name": "AEROX RP",
    "connect": "37.187.251.69:29000",
    "request": "37.187.251.69:29001",
    "map": "thieves.rpdowntown3t",
    "gamemode": "AEROX RP",
    "version": "273027",
    "numplayers": 0,
    "maxplayers": 128,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FR",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1780225944,
    "last_update": 1780550609,
    "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": 81,
    "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/11695797");
$data = json_decode($json, true);
var_dump($data);