JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11771132
json
{
  "response": {
    "fps": 45,
    "fps_avg": 45,
    "entities_count": 96445,
    "world_seed": 493631353,
    "world_size": 4000,
    "steam_id": "90286959151276045",
    "domain": null,
    "id": 11771132,
    "ip": "91.200.102.78",
    "port": 28045,
    "query": 28046,
    "project_id": null,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "![alcatRUST | PvE | HighLoot | x5 | Bots | Kits | And More](https://image.myrustserver.com/logo/phlex_678e53a8c03ea.png)\nSERVER INFO:\r\n\r\nServer-Adress: 91.200.102.78:28045\r\nName: AlcatRust\r\nGather: x5\r\nQuarrys: x5\r\nDurability: 0.1\r\nCraftingController: 2.0\r\nLoot: CustomLoot\r\nStackSize: 100.000\r\nPvE: True\r\nQuickSmelt: True\r\nHomes: 6\r\nTeleports: Unlimited\r\nEvent Start: Needed 1 Player\r\nAuto-Restart: 00:00 PM & 12:00 AM (/srestart status)\r\n\r\n\r\nEvents:\r\n\r\nBuriedTreasure, TreasureBox, PilotEject, PlaneCrash and \r\nRaidable Bases.\r\n\r\nOther:\r\n\r\nBotReSpawn, Shop, ClansGUI, HomeGUI, TeleportGUI, FriendsGUI,\r\nAutomatic-AuthorizationGUI, AutoCodeLock, Remove, TC Better,\r\nKits, Hud, DeathNotes, PowerlessElectronics, RotatingPickups,\r\nItemSkins, BuildingSkins, LockOnRockets, Trade, ZombieHorde \r\nAnd More..\r\n\r\nHave A Nice Game And Play Fair.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781345034,
    "last_online": 1781356231,
    "icon": null,
    "name": "alcatRUST | PvE | HighLoot | x5 | Bots | Kits | And More",
    "connect": "91.200.102.78:28045",
    "request": "91.200.102.78:28046",
    "map": "Procedural Map",
    "gamemode": "Softcore",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780996874,
    "last_update": 1781356231,
    "banned": false,
    "wipe": 1780942670,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6045,
    "language": "de",
    "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/11771132");
$data = json_decode($json, true);
var_dump($data);