JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10481775
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 10481775,
    "ip": null,
    "port": null,
    "query": null,
    "project_id": null,
    "color": 0,
    "city": "Kirov",
    "description": "![RAID RUST | Solo/Duo/Trio | Vanilla | RUST+ | (RU/EN)](https://raidrust.ru/wp-content/uploads/raidrust.png)\n(RU):\r\n- Классический Rust без модов.\r\n- Solo/Duo/Trio — без кланов, телепортов и китов.\r\n- Rust+ работает, стабильный сервер и честные вайпы.\r\n- Карта 4250 — идеальный баланс между масштабом и динамикой.\r\n- Настоящее выживание, как задумано Facepunch.\r\n- Два рестарта в сутки — в 05:00 и 17:00 по МСК для стабильной работы сервера.\r\n\r\n(EN):\r\n- Classic Rust — pure vanilla experience.\r\n- Solo/Duo/Trio — no clans, no teleport, no kits.\r\n- Rust+ enabled, stable performance, fair wipes.\r\n- Map size 4250 — perfect balance between scale and action.\r\n- Two daily restarts — at 05:00 and 17:00 MSK for smooth performance.\r\n- True survival, as Facepunch intended.\r\n\r\nhttps://raidrust.ru",
    "game": 252490,
    "owner": 140690,
    "boosts": 1,
    "last_offline": 1772257861,
    "last_online": 1771345213,
    "icon": null,
    "name": "RAID RUST | Vanilla+ X2 Server | RUST+ | (RU/EN)",
    "connect": null,
    "request": null,
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": null,
    "numplayers": 0,
    "maxplayers": 300,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1760731922,
    "last_update": 1772257861,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 12619,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "livedespod",
      "avatar": "no.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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