面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/754178
json
{
  "response": {
    "fps": 105,
    "fps_avg": 108,
    "entities_count": 63665,
    "world_seed": 1548237518,
    "world_size": 3500,
    "steam_id": "90286000695283735",
    "domain": null,
    "id": 754178,
    "ip": "87.98.133.160",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Gravelines",
    "description": "![nN| ©Rusty The Clown | noname.zone](https://noname.zone/uploads/monthly_2021_02/10_10_10_4_ezBKqLk.png.b03eb3dcb0b636e7b49084332a1fc4e5.png)\nWelcome to nN Rust server!\r\nWe are a brand new Rust server, ready to take new players. We have a dedicated population of veteran players ready to help you out!\r\nControlled PVP. KOS only allowed on Puzzle Card Monuments such as Power Plant, Launch Site, Oil Rigs, etc. Under airdrops, Heli, and while Raiding or counter Raiding\r\nMax 4 players per team\r\nBi-Weekly wipe\r\nMake sure you visit our forums to learn more about the rules or go on our Discord https://discord.gg/gTpbhyZAGx\r\nFeel free to visit us at noname.zone to claim your welcome kit.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779298383,
    "last_online": 1780138227,
    "icon": null,
    "name": "nN| ©Rusty The Clown | noname.zone",
    "connect": "87.98.133.160:28015",
    "request": "87.98.133.160:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1676380729,
    "last_update": 1780138227,
    "banned": false,
    "wipe": 1775237325,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2895,
    "language": "fr",
    "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/754178");
$data = json_decode($json, true);
var_dump($data);