面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11488918
json
{
  "response": {
    "oxide": true,
    "modded": true,
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 1563,
    "world_seed": 1,
    "world_size": 1000,
    "steam_id": "90286412421174280",
    "domain": "rust.blue-hosting.ru",
    "id": 11488918,
    "ip": "95.217.107.239",
    "port": 10004,
    "query": 10005,
    "color": 0,
    "city": "Helsinki",
    "description": "![{Ru}(EU) RustVolt 2x | NO LIMIT |](https://images.steamusercontent.com/ugc/156904791773120209/6E078CAFD477D528005898331C80BA3C57D77A59/?imw=512&imh=256&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=true)\nЧто вас ждёт: Увеличенный лут ×2 — собирайте ресурсы быстрее и эффективнее! Компоненты ×2 — крафтите в два раза больше! Магазины без КД — торгуйте без ограничений. Полный доступ к командам /setgenes и /skin для каждого игрока. Скип ночи — играйте в удобное время. Вайп каждые 7 дней — новые возможности и старт с чистого листа. Ускоренные печи — занимайтесь крафтом в кайф Устрицы — занимайтесь рыбалкой What awaits you: Increased loot 2х - collect resources faster and more efficiently! Components ×2 - craft twice as much! Stores without cooldown - trade without restrictions. Full access to /setgenes and /skin commands for each player. Skip the night - play at your convenience. Wipe every 7 days - new opportunities and a fresh start. Oysters - go fishing Accelerated Furnaces - Crafting Made Easy",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470420,
    "last_online": 1780585835,
    "icon": null,
    "name": "BLUE HOSTING",
    "connect": "rust.blue-hosting.ru:10004",
    "request": "95.217.107.239:10005",
    "map": "Barren",
    "gamemode": "Survival",
    "version": "2398",
    "numplayers": 0,
    "maxplayers": 120,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FI",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1775918171,
    "last_update": 1780585835,
    "banned": false,
    "wipe": 1780165514,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4684,
    "language": "fi",
    "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/11488918");
$data = json_decode($json, true);
var_dump($data);