JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11698846
json
{
  "response": {
    "fps": 39,
    "fps_avg": 40,
    "entities_count": 85490,
    "world_seed": 348266212,
    "world_size": 4000,
    "steam_id": "90286605165355036",
    "domain": null,
    "id": 11698846,
    "ip": "66.51.96.69",
    "port": 28000,
    "query": 28001,
    "color": 0,
    "city": "Ashburn",
    "description": "![TacoNation Server](https://i.ibb.co/TwnSdCM/Rust-Header-Image-Raised.png)\nRules: Have Fun Don't be an entitled, Extremely rude person, no toxicity and be respectful\r\nMainly PVE and PVP is disabled because this is for those who are coming back from a hiatus from rust also for new players.\r\nThis is for TacoNation if you want to join in on the fun talk with OfficiaDogTaco, 1WhiskeyTango1, Malak_Revan on twitch hope to see you guys there",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780599268,
    "last_online": 1780630831,
    "icon": null,
    "name": "TacoNation Server",
    "connect": "66.51.96.69:28000",
    "request": "66.51.96.69:28001",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780227274,
    "last_update": 1780630831,
    "banned": false,
    "wipe": 1780599280,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5561,
    "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/11698846");
$data = json_decode($json, true);
var_dump($data);