JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/6125265
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 6125265,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "[{\"id\":\"e63krfwwk\",\"type\":\"image\",\"data\":{\"caption\":\"gm.link/u68202 FAVOURITE RUST #1  [ NoLimit | SemiClassic  |  1\",\"withBorder\":false,\"withBackground\":false,\"stretched\":true,\"file\":{\"url\":\"https://cdn.gamemonitoring.net/images/content/b33f1a12-c220-4f27-b690-45e7e773e1a8.jpg\"}}},{\"id\":\"kjhpx7aam\",\"type\":\"paragraph\",\"data\":{\"text\":\"RU | Рестарт в 23:00 или 7:00 по мск  | \\n\\n| Перерабы , маркеты, нпз в безопасной зоне |\\n\\n|  Снижено содержание на 50 % |  \\n\\n|  Бесплатные скины |  \\n\\n|  Увеличенные стаки |  \\n\\n|  1.5x Добыча ресурсов |  \\n\\n|  Активная и понимающая администрация вайп раз в  месяц |  \\n\\n|  Карта : 2500-5000 |  \\n\\n | Что-бы ознакомиться с правилами сервера посетите наш дискорд \\n\\nсервер !    |  \\n\\nENG\\n\\n|  Restart at 23:00 or 7:00 Moscow time |\\n\\n|  Refineries , markets, refineries in the safe zone | \\n\\n|  reduced content by 50 % |  \\n\\n|  Free /skin |  \\n\\n|  increased stacks | \\n\\n|  1.5 x Resource Extraction |  \\n\\n|  Active and understanding administration | \\n\\n|  Wipe once every month |\\n\\n|  Map : 2500-5000 | \\n\\n| To familiarize yourself with the server rules, visit our discord server! |\"}}]",
    "game": 252490,
    "owner": 68202,
    "boosts": 1,
    "last_offline": 1750457066,
    "last_online": 1741107623,
    "icon": null,
    "name": "FAVOURITE RUST #1  [ NoLimit | SemiClassic  |  1.5x ] 06.02",
    "connect": null,
    "request": null,
    "map": "https://t.me/FavouriteRust",
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 250,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1727883327,
    "last_update": 1750457066,
    "banned": false,
    "wipe": 1739349011,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 13133,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "diman05mn",
      "avatar": "dc21728f-42fc-4f03-9251-a8be41deb944.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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