面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11260457
json
{
  "response": {
    "fps": 73,
    "fps_avg": 74,
    "entities_count": 69324,
    "world_seed": 1922612086,
    "world_size": 3500,
    "steam_id": 90284754861651970,
    "domain": null,
    "id": 11260457,
    "ip": "72.62.117.65",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Vilnius",
    "description": "![MALVEX RUST [X5 NOLIMIT]](https://i.postimg.cc/Y24BTvnX/Gemini-Generated-Image-xiabnpxiabnpxiab.jpg)\nMALVEX RUST [X5 NOLIMIT] — bu oddiy server emas, bu haqiqiy jang maydoni. Eng kuchlilar qoladi, eng tezkorlar rivojlanadi, eng aqllilar hukmronlik qiladi. Agar o‘zingni kuchli deb hisoblasang, jamoangni yig‘ va MALVEX’da o‘zingni isbotla. Har bir wipe — yangi tarix, har bir raid — yangi drama. Discord: https://discord.gg/malvexrust | Telegram: https://t.me/malvexrust | Donate: https://malvexrust.com | YouTube: https://www.youtube.com/@MALVEXRUST",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776840799,
    "score": 0,
    "last_online": 1776838222,
    "icon": null,
    "name": "MALVEX RUST [X5 NOLIMIT]",
    "connect": "72.62.117.65:28015",
    "request": "72.62.117.65:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2622",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "LT",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1774555192,
    "last_update": 1776840799,
    "banned": false,
    "wipe": 1776460167,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 9054,
    "language": "lt",
    "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/11260457");
$data = json_decode($json, true);
var_dump($data);