JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11502044
json
{
  "response": {
    "fps": 243,
    "fps_avg": 240,
    "entities_count": 45817,
    "world_seed": 505294227,
    "world_size": 3000,
    "steam_id": "90286579556362245",
    "domain": null,
    "id": 11502044,
    "ip": "92.53.64.133",
    "port": 28010,
    "query": 28011,
    "color": 0,
    "city": "St Petersburg",
    "description": "![ДЛЯ НОВИЧКОВ | PHOTON RUST | SOLO/DUO | X2 | FRIDAY ](https://photon-rust.pro/assets/headerimage.png)\nPHOTON RUST | SOLO/DUO | X2 | FRIDAY 18:00 MSK\r\n\r\nВайп: пятница 18:00 МСК\r\nBP: каждые 2 недели\r\n\r\nРейты:\r\nДобыча x2\\t|\\tРесы x2\\t|\\tКарьер x2\r\nЛут x2\\t\\t|\\tСпавн +\\t|\\tКомпы x2\r\nПули x2\\t\\t|\\tСтак x2\\t|\\tШкаф x3\r\nБочки x2\\t\\t|\\tЯщик x2\\t|\\tЧасто\r\nКрафт +\\t\\t|\\tПлавка +\\t|\\tПерераб +\r\n\r\nУдобства:\r\n/kit\\t\\t|\\t/skins\\t|\\t/bskin\r\n/help\\t\\t|\\tМетки\\t|\\tGUI\r\nРыба +\\t|\\tF7\\t\\t|\\tАнтичит\r\nDuo\\t\\t|\\tNo P2W\\t|\\tМодер\r\n\r\nDiscord: https://discord.gg/VuPNHbvBAB\r\nСайт: https://photon-rust.pro",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470420,
    "last_online": 1780554634,
    "icon": null,
    "name": "ДЛЯ НОВИЧКОВ | PHOTON RUST | SOLO/DUO | X2 | FRIDAY",
    "connect": "92.53.64.133:28010",
    "request": "92.53.64.133:28011",
    "map": "ДЛЯ НОВИЧКОВ",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207188,
    "last_update": 1780554634,
    "banned": false,
    "wipe": 1778354364,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4841,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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