面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/633343
json
{
  "response": {
    "steam_id": "90285960768012305",
    "domain": null,
    "id": 633343,
    "ip": "216.126.207.151",
    "port": 28015,
    "query": 28015,
    "color": 0,
    "city": "Poplar",
    "description": "![Rustix EU x10 [Max5|MyMini|Kits|Shop|10x] 30/04](https://i.gyazo.com/994ead8f35db2168830b32936d831397.png)\nWelcome to Rustix 10x NO BPs.\r\n\r\n- SERVER WIPE SCHEDULE\r\n- Every Thursday at 6 PM CET\r\n- First Thursday of the month 8 PM CET (forced wipes)\r\n\r\n- SERVER FEATURES\r\n- 10x Gather Rate\r\n- Skins for everyone\r\n- MyMini/BGrade for everyone\r\n- Clan/Shop/Trade/Kits\r\n- Teleport/Homes/Auto Doors\r\n- Always daytime/No fog or rain\r\n- No cold/Radiations/Instant Craft\r\n- Half Rocket PVP Damage\r\n- Cars spawn ready to use\r\n- Fast Recycling and Smelt\r\n- Custom Loot Tables\r\n- No BPs and no Workbenches\r\n- Custom merged outpost\r\n\r\n- SERVER RULES\r\n- No cheating/exploiting\r\n- Playing with cheaters will result in a ban\r\n- 5 Players team limit\r\n\r\nWebsite : shop.playrustix.com \r\nDiscord : discord.playrustix.com",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779084175,
    "last_online": 1779256215,
    "icon": null,
    "name": "Rustix EU x10 [Max5|MyMini|Kits|Shop|10x] 14/05",
    "connect": "216.126.207.151:28015",
    "request": "216.126.207.151:28015",
    "map": "Rustix Maps FPS+",
    "gamemode": "Rust",
    "version": "2625",
    "numplayers": 9,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 65,
    "add_date": 1669883439,
    "last_update": 1779256215,
    "banned": false,
    "wipe": 1778774370,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 751,
    "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/633343");
$data = json_decode($json, true);
var_dump($data);