面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11189583
json
{
  "response": {
    "fps": 59,
    "fps_avg": 57,
    "entities_count": 59180,
    "world_seed": 845057325,
    "world_size": 3300,
    "steam_id": "90286693687576607",
    "domain": null,
    "id": 11189583,
    "ip": "51.161.198.101",
    "port": 28030,
    "query": 28031,
    "project_id": null,
    "color": 0,
    "city": "North Sydney",
    "description": "![[AU] Rust PVE  |  |HOME TP  | NO RAIDING | NO KILLING | NOOB FR](https://i.ibb.co/TwnSdCM/Rust-Header-Image-Raised.png)\nwelcome to our server No pressure, no rush — just you, your friends, and endless building possibilities. Explore the map without the constant threat of getting killed or raided Perfect for relaxed Rust sessions.\" \r\n 1. Home tp 2. shop /s 3.Quick smelt 4. better stacks.4 quarrys lock to you when use them.5",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780602866,
    "last_online": 1780933235,
    "icon": null,
    "name": "[AU] Rust PVE  |  |HOME TP  | NO RAIDING | NO KILLING | NOOB FR",
    "connect": "51.161.198.101:28030",
    "request": "51.161.198.101:28031",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1772699060,
    "last_update": 1780933235,
    "banned": false,
    "wipe": 1780602923,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 1,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4618,
    "language": "en",
    "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/11189583");
$data = json_decode($json, true);
var_dump($data);