JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/8054387
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 70301,
    "world_seed": 508272242,
    "world_size": 3500,
    "steam_id": "90286577981353989",
    "domain": null,
    "id": 8054387,
    "ip": "83.147.29.10",
    "port": 28023,
    "query": 28024,
    "color": 0,
    "city": "City of London",
    "description": "![Gibberish Rust 2x Vanilla+|No BP wipe|6 max team](https://gibberishrust.com/img/GibberishBanner2.jpg)\nJoin Gibberish!! \r\n Your favorite rust server!! (Even if you dont know it yet!) \r\n Modded server, with active mature, Non-Playing Admins \r\n \r\n - Wipes only forced wipe. \r\n - BP's at least every 2 months. \r\n - Increased gather rates \r\n - Increases components rates \r\n - Faster recycler \r\n - Faster crafting (75% of normal)\r\n - VIP get's access to Skinbox, Colored Names and queue skip. \r\n \r\n For everything else, be sure to check the /info menu in game.\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nrs010aozJ^0S&A81o.s1",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470419,
    "last_online": 1780556434,
    "icon": null,
    "name": "Gibberish Rust 2x Vanilla+|No BP wipe|6 max team",
    "connect": "83.147.29.10:28023",
    "request": "83.147.29.10:28024",
    "map": "Gibberishrust.com",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1741383883,
    "last_update": 1780556434,
    "banned": false,
    "wipe": 1778177730,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2823,
    "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/8054387");
$data = json_decode($json, true);
var_dump($data);