面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10948424
json
{
  "response": {
    "steam_id": "90286609473565717",
    "domain": null,
    "id": 10948424,
    "ip": "115.42.46.147",
    "port": 28025,
    "query": 28027,
    "color": 0,
    "city": "Los Angeles",
    "description": "![PEN ISLAND | NoDecay | Custom Skins | Events](https://i.imgur.com/01EfAzp.png)\nNo Decay, No Upkeep, No Blueprint Wipes, No MLRS  \r\n Custom Skins, Noob Friendly, Advanced Anti-cheat, Vanilla Plus, Zombies \r\n PEN ISLAND has been active since 2016. \r\n Wipe Cycle on the first Thursday of the month!  \r\n Raid protection enabled for the first 7 days of wipe \r\n \r\n Horses and Mini Copters will spawn randomly on map \r\n Daily Server Restart 4AM MST \r\n No Tolerance for Toxicity. \r\n \r\n Furnace, Refinery and Vehicles can be code locked \r\n Sam sites and Turrets are automatically linked to TC \r\n Better Elevators (Max floor increased) \r\n Better Electricity and Better Hydro Systems (Increased Performance) \r\n Extended Crafting Menu \r\n Crashed Plane Event \r\n Meteor Showers \r\n ---------------------------------------------------------------------------------------------------------------------- \r\n IN GAME COMMANDS \r\n SkinBox - /skinbox \r\n Switch Base Repair mode - /br \r\n Rewards - /gifts \r\n Activate Minicopter Light - E key \r\n \r\n ITEMS FOR SALE AT BANDIT CAMP, OUTPOST, RANCH, FISHING VILLAGE \r\n Test Generator \r\n BiPlane (at Ranch or Airfield  \r\n Scientist Suit \r\n Ninja Suit \r\n Surgeon Scrubs \r\n Ghost Costume \r\n Blue Jump Suit \r\n Sickle \r\n Graveyard Fence \r\n Boom Box \r\n Coffin \r\n Wood Tea",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780605263,
    "last_online": 1780647029,
    "icon": null,
    "name": "PEN ISLAND | NoDecay | Custom Skins | Events",
    "connect": "115.42.46.147:28025",
    "request": "115.42.46.147:28027",
    "map": "Procedural Map",
    "gamemode": "Rust",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1768511312,
    "last_update": 1780647029,
    "banned": false,
    "wipe": 1780605534,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3906,
    "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/10948424");
$data = json_decode($json, true);
var_dump($data);