JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11511726
json
{
  "response": {
    "fps": 230,
    "fps_avg": 228,
    "entities_count": 66516,
    "world_seed": 352165132,
    "world_size": 3500,
    "steam_id": "90286579908459531",
    "domain": null,
    "id": 11511726,
    "ip": "66.51.99.89",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Dallas",
    "description": "Summit Rust | Where Players Come First\r\n\r\nSummit Rust 2x Monthly Solo/Duo\r\n\r\nWipe Date: N/A\r\nBlueprint Wipes: Never\r\n\r\nWelcome to Summit Rust, a 2x Solo/Duo experience built around fair play, performance, and an active, supportive staff team.\r\n\r\nFeatures:\r\n- 2x gathering and loot\r\n- Competitive PvP\r\n- Active admins\r\n- Monthly wipes\r\n- Optimized performance\r\n- Kits & Events\r\n\r\nJoin our Discord for support and announcements.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779353862,
    "last_online": 1780564832,
    "icon": null,
    "name": "Summit Rust 2x | Monthly | Solo/Duo",
    "connect": "66.51.99.89:28015",
    "request": "66.51.99.89:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779353862,
    "last_update": 1780564832,
    "banned": false,
    "wipe": 1778883825,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5257,
    "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/11511726");
$data = json_decode($json, true);
var_dump($data);