面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/6746551
json
{
  "response": {
    "fps": 69,
    "fps_avg": 70,
    "entities_count": 163430,
    "world_seed": 1337,
    "world_size": 4500,
    "steam_id": "90286390089713695",
    "domain": null,
    "id": 6746551,
    "ip": "104.129.132.9",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Dallas",
    "description": "![US AdventureLand PVE Skills/Raidable Bases/Custom Vehicles!](https://i.ibb.co/XyjKD0h/Untitled-2.png)\nAdventureland is a Modded PVE SERVER with Monthly Map and BP Wipe - Noobs Welcome!\r\nCustom Vehicles, Ridable Drones, Skill Tree tons of fun stuff!!\r\nNo Limit on Teams\r\nWe are a very engaging and friendly community!\r\nENGLISH ONLY the only way we communicate is in ENGLISH\r\nYou MUST call your Monument/Landmark IE @Cargo or @Launch or @Silo etc\r\nRaidable Bases with almost 100 custom Bases\r\nNo Stealing from other players, their bases, horses, & Vehicles.\r\nPlease join our friendly community!\r\nNo Toxicity!!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778176987,
    "last_online": 1780147222,
    "icon": null,
    "name": "US AdventureLand PVE Skills/Raidable Bases/Custom Vehicles!",
    "connect": "104.129.132.9:28015",
    "request": "104.129.132.9:28016",
    "map": "Atlanta TWD By Gruber!",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 3,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1732640691,
    "last_update": 1780147222,
    "banned": false,
    "wipe": 1778177435,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2627,
    "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/6746551");
$data = json_decode($json, true);
var_dump($data);