面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/740410
json
{
  "response": {
    "fps": 182,
    "fps_avg": 174,
    "entities_count": 71082,
    "world_seed": 10244920,
    "world_size": 3500,
    "steam_id": "90286580190366743",
    "domain": null,
    "id": 740410,
    "ip": "142.132.156.73",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Falkenstein",
    "description": "PvE Server with Active Admins\r\nWipes: Monthly Map Wipe on Forcewipe\r\nNo Blueprint wipes\r\nMap Size: 5.000k\r\n\r\nRules:\r\n* No Racism, abusive and hate speech.\r\n* No cheating or exploits.\r\n* No griefing\r\n* No Spam.\r\n* Don't advertise other servers\r\n\r\nMods:\r\n* True PvE\r\n* Extended Industrial\r\n* Zones\r\n* Clans\r\n* RaidMe\r\n* Vehicle Locks\r\n* Buyable Tugboats\r\n* Kits\r\n* Improved StackSizes\r\n* RemoverTool",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779160371,
    "last_online": 1780583435,
    "icon": null,
    "name": "Blake's PvE | Monthly | No BP wipe | PvP Zones | Low Upkeep",
    "connect": "142.132.156.73:28015",
    "request": "142.132.156.73:28017",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1675100140,
    "last_update": 1780583435,
    "banned": false,
    "wipe": 1778176634,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2513,
    "language": "de",
    "parked": false,
    "app": {
      "id": 252490,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/740410");
$data = json_decode($json, true);
var_dump($data);