面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10979330
json
{
  "response": {
    "fps": 118,
    "fps_avg": 142,
    "entities_count": 113056,
    "world_seed": 80,
    "world_size": 4500,
    "steam_id": "90286588881954840",
    "domain": null,
    "id": 10979330,
    "ip": "172.235.136.198",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Miami",
    "description": "![Dopers 420 - Miami | 2x | Monthly | Kits | BTC Shop](https://lgsm.dopers.net/static/banners/98b65394-a749-4fc1-9b18-a7a7d4d146d7_aa93131d.jpg)\nWelcome to Dopers 420!\r\nJoin our Discord for more information and server status:\r\nhttps://discord.gg/ZHZJgc4aYQ\r\nFeatures:\r\n-No Decay!\r\n-Free & scrap kits (/kit) + Bitcoin kits (/store)\r\n-Scrap and Munchies every in-game 4hr 20min\r\n-Monthly map and BP wipe\r\n-PVP\r\nWe utilize a handful of QoL mods to make your time in Rust more enjoyable. Be respectful and remember to blaze up, it's Dopers 420, baby!\r\nBienvenidos a Dopers 420! No decay y PVP.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780088616,
    "last_online": 1780593635,
    "icon": null,
    "name": "Dopers 420 - Miami | 2x | Monthly | Kits | BTC Shop",
    "connect": "172.235.136.198:28015",
    "request": "172.235.136.198:28017",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 125,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1769901096,
    "last_update": 1780593635,
    "banned": false,
    "wipe": 1778186398,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3921,
    "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/10979330");
$data = json_decode($json, true);
var_dump($data);