面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11607314
json
{
  "response": {
    "steam_id": "90286583568979971",
    "domain": null,
    "id": 11607314,
    "ip": "66.51.99.145",
    "port": 28025,
    "query": 27018,
    "color": 0,
    "city": "Dallas",
    "description": "The Official Lounge for the Farming Paradise Community\r\nA central hub for the Farming Paradise community built for fun, competition, and social play beyond the main server.\r\n\r\nCasino\r\n• Jump for scrap\r\n• Gambling leaderboard to track top players\r\n\r\nPvP Arenas\r\n• Nuketown\r\n• Shipment\r\n• Vacant\r\n• Oil Rig\r\n\r\nRacing\r\n• Go-Kart Racing\r\n• Bumper Cars\r\n\r\nA place to chill, compete, and connect with the Farming Paradise community.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779915502,
    "last_online": 1780558236,
    "icon": null,
    "name": "The Farming Paradise Lounge",
    "connect": "66.51.99.145:28025",
    "request": "66.51.99.145:27018",
    "map": "Custom Map",
    "gamemode": "Rust",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915502,
    "last_update": 1780558236,
    "banned": false,
    "wipe": 1778596079,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5588,
    "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/11607314");
$data = json_decode($json, true);
var_dump($data);