JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/568486
json
{
  "response": {
    "fps": 157,
    "fps_avg": 155,
    "entities_count": 117906,
    "world_seed": 62086981,
    "world_size": 4500,
    "steam_id": "90286612959260694",
    "domain": null,
    "id": 568486,
    "ip": "100.34.110.99",
    "port": 26005,
    "query": 26007,
    "color": 0,
    "city": "Lansdale",
    "description": "![Rusted AK SOLO | DUO](https://www.rustedak.com/images/rustedakheader.jpg)\n* Minis Spawn | Low Upkeep | No Lag \r\n* Half TC upkeep, BPs wipe every month and Killfeed.\r\n* Minicopters spawn on the roads \r\n* Short rules: \r\n     -     Teams can have Allies.\r\n     -     Sharing/combining resources is teaming.\r\n     -     All trades must be of equal value.\r\n     -     Roaming/Raiding/Scouting/Countering or Monuments with other players is teaming.\r\n     -     No VPNs (GFORCE must be whitelisted.)\r\n     -     NO VAC bans or GAME bans allowed No exceptions.\r\n* https://www.RustedAk.com for PVP statistics! \r\n* 30 Turret limit to reduce offline raids * \r\n* Discord https://discord.gg/tj25R63 \r\n* We have our own radio station, feel free to request songs\r\n* Active Admins.\r\n* Need a semi naked female Admin? Go to Discord.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780596270,
    "last_online": 1780648835,
    "icon": null,
    "name": "Rusted AK SOLO | DUO",
    "connect": "100.34.110.99:26005",
    "request": "100.34.110.99:26007",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 2,
    "maxplayers": 250,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1668891361,
    "last_update": 1780648835,
    "banned": false,
    "wipe": 1780596756,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2461,
    "language": "en",
    "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/568486");
$data = json_decode($json, true);
var_dump($data);