面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/6125220
json
{
  "response": {
    "fps": 234,
    "fps_avg": 231,
    "entities_count": 8551,
    "world_seed": 1337,
    "world_size": 2600,
    "steam_id": "90286950793098247",
    "domain": null,
    "id": 6125220,
    "ip": "46.174.53.208",
    "port": 20670,
    "query": 20671,
    "project_id": null,
    "color": 0,
    "city": "Moscow",
    "description": "![RUTRUST | NoLimit | 1000x | LOOT+](https://gspics.org/image/IDrEAy)\nСервер с рейтом x1000, мы ждем каждого из вас. Быстрая переплавка в печах и мнгновенный крафт и многое др. /up - автоматическое улучшение построек.\r\n /mymini - спавн коптера. \r\n /nomini - убрать коптер. \r\n /kit - уникальные ты для каждого игрока. \r\n /link - рейд оповещения \r\n /pinfo - посмотреть информацию о привилегиях \r\n /online - узнать онлайн на сервере \r\n /fmenu - система друзей /n /ad  авто-закрытие дверей \r\n Не нужны изучения, турели без электричества, ночная защита от рейда, дополнительный рюкзак.  \r\n WIPE каждую пятницу в 18:00 МСК. DISCORD https://discord.gg/5sBmyqkCQH",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781279640,
    "last_online": 1781342427,
    "icon": null,
    "name": "RUTRUST | NoLimit | 1000x | LOOT+",
    "connect": "46.174.53.208:20670",
    "request": "46.174.53.208:20671",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 300,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1727883313,
    "last_update": 1781342427,
    "banned": false,
    "wipe": 1781280166,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3247,
    "language": "ru",
    "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/6125220");
$data = json_decode($json, true);
var_dump($data);