面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/5273792
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 195241,
    "world_seed": 67830,
    "world_size": 4250,
    "steam_id": "90284732252348426",
    "domain": null,
    "id": 5273792,
    "ip": "131.196.198.41",
    "port": 28010,
    "query": 28015,
    "color": 0,
    "city": "Cotia",
    "description": "![Rustoria.co - BR Main](https://fs.rustoria.co/ctv/b01e1147-b6d5-443a-9af4-6c63a90f52ab.png)\nWipe Schedule:\r\n\\tMap - Thursdays @ 6PM BRT, or when force updates occur.\r\n\\tBPs - Monthly @ Force\r\n\r\nVIP: donate.rustoria.co\r\n\r\nRules:\r\n\\t- No hacking / scripting\r\n\\t- No intentional bug abuse\r\n\\t- No EAC / FP banned alts\r\n\\t- No ban evading\r\n\\t- No racism\r\n\r\nGood performance\r\nActive non playing admins\r\nSeeds are carefully picked\r\n\r\nDiscord: rustoria.co/discord\r\nFull rules: rustoria.co/vanilla/rules",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776765801,
    "score": 0,
    "last_online": 1776850818,
    "icon": null,
    "name": "Rustoria.co - BR Main",
    "connect": "131.196.198.41:28010",
    "request": "131.196.198.41:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 9,
    "maxplayers": 250,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "BR",
    "status": true,
    "votes": 0,
    "points": 63,
    "add_date": 1721505442,
    "last_update": 1776850818,
    "banned": false,
    "wipe": 1776373186,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1209,
    "language": "pt",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/5273792");
$data = json_decode($json, true);
var_dump($data);