面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11260754
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 11260754,
    "ip": "88.88.56.74",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Fredrikstad",
    "description": "![FriendlyGaming Community - [Solo/Duo/Trio] - Noob Friendly!](http://mej.no/rust.jpg)\n[*] Server Details [*]\r\n\r\n* Monthly Map & Blueprints Wipe (@ Force Wipe - First Thursday of each month).\r\n* 50 percent less upkeep on TC.\r\n* Active Admins.\r\n* Beginners and noobs are welcome.\r\n\r\n\r\n[*] Teaming Rules [*]\r\n\r\n* Group Limit: 3 (Includes offline).\r\n* Maximum team size is 3. (this includes offline). You may replace a player on your team if you remove them from your team UI, clear TC, code locks, turrets, and remove their bags and beds.\r\n\r\n\r\n[*] Other Rules [*]\r\n\r\n* English only in global chat\r\n* No Cheating/Scripting/Exploiting.\r\n* No Ban evasion/Cheater Association\r\n* No toxicity/spam\r\n* No Griefing\r\n\r\n\r\n[*] Wipe Information [*]\r\n\r\n* Last Wipe: 2nd of April 2026 2026 @ 18:00 UTC\r\n* Next Wipe: 7th of May 2026 @ 18:00 UTC\r\n* This will include blueprints.\r\n\r\n\r\n[*] Discord & Website [*]\r\n\r\n* Join our discord at http://discord.friendlygaming.no\r\n* Website can be found at http://friendlygaming.no",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776987153,
    "score": 0,
    "last_online": 1776181214,
    "icon": null,
    "name": null,
    "connect": null,
    "request": "88.88.56.74:28017",
    "map": null,
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "NO",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1774555204,
    "last_update": 1776987153,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 8969,
    "language": "no",
    "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/11260754");
$data = json_decode($json, true);
var_dump($data);