JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/7823200
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 93360,
    "world_seed": 555934536,
    "world_size": 4000,
    "steam_id": 90285683318220820,
    "domain": null,
    "id": 7823200,
    "ip": "157.90.90.95",
    "port": 28025,
    "query": 28026,
    "color": 0,
    "city": "Falkenstein",
    "description": "![Gather x100 Dk/EU Have Fun](https://i.ibb.co/TwnSdCM/Rust-Header-Image-Raised.png)\nJoin a fun pvp server! More and better loot. Mostly no crappy items in Barrels and Boxes.  \r\n Several Cool Plugins /up 1,2,3,4 /home /turret for power on turret/sam /mymini \r\n This Server has RaidProtect and RaidLimit. You will need at leat 3 hours of gaming on the server before being able to raid. Build a base! Players that come just to destroy are not welcomed. \r\n Active Admins! \r\n ENG/DK/GER in Global Chat only. Violations get muted/kicked/banned depending on severity of violation!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778178186,
    "score": 0,
    "last_online": 1778682617,
    "icon": null,
    "name": "Gather x100 Dk/EU Have Fun",
    "connect": "157.90.90.95:28025",
    "request": "157.90.90.95:28026",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 6,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 63,
    "add_date": 1740059705,
    "last_update": 1778682617,
    "banned": false,
    "wipe": 1778178414,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1484,
    "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/7823200");
$data = json_decode($json, true);
var_dump($data);