面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10805433
json
{
  "response": {
    "fps": 165,
    "fps_avg": 162,
    "entities_count": 94737,
    "world_seed": 1488,
    "world_size": 4096,
    "steam_id": "90286585513803793",
    "domain": null,
    "id": 10805433,
    "ip": "143.109.149.125",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Stillwater",
    "description": "![RUST Oklahoma - Modded](https://image.myrustserver.com/logo/relykz_66dd37b18555f.jpg)\nServer Type:\r\n- PVP & Roleplay\r\n\r\nServer Rules: \r\n 1) No hacking, cheating, exploiting, etc. \r\n 2) No trolling, griefing, mic abuse, or chat spamming. \r\n 3) We reserve the right to kick and/or ban anyone who violates the server rules. \r\n 4) Enjoy and have a great time!\r\n\r\nServer Modifications:\r\n- Automated Events\r\n- Blueprint Manager\r\n- Gather Manager\r\n- Info Panel\r\n- Private Messages\r\n- Sign Artist\r\n- Stack Modifier\r\n- Team Manager\r\n- Vehicle Decay Protection\r\n- Welcomer\r\n- You've Got Mail",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780473870,
    "last_online": 1780616432,
    "icon": null,
    "name": "RUST Oklahoma - Modded",
    "connect": "143.109.149.125:28015",
    "request": "143.109.149.125:28017",
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1766921272,
    "last_update": 1780616432,
    "banned": false,
    "wipe": 1778467916,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5198,
    "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/10805433");
$data = json_decode($json, true);
var_dump($data);