JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11501208
json
{
  "response": {
    "fps": 55,
    "fps_avg": 60,
    "entities_count": 136557,
    "world_seed": 0,
    "world_size": 5000,
    "steam_id": "90286577188776971",
    "domain": null,
    "id": 11501208,
    "ip": "5.189.135.15",
    "port": 28015,
    "query": 25574,
    "color": 0,
    "city": "Lauterbourg",
    "description": "Welcome to Sunny with Chaos\r\n\r\n-= SERVER =-\r\n- HARDCORE PVE MODE\r\n- Tech-tree has been disabled.\r\n- Mini and Scrap Heli's disabled\r\n- Everything else is vanilla\r\n\r\n-= WIPE INFO =-\r\n- Map Wipes: Monthly\r\n- BP Wipes: Monthly\r\n\r\n-= RULES =-\r\n- Don't be a douche\r\n- Enjoy!\r\n\r\nDiscord: https://discord.gg/eKM94Bumwx",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780538665,
    "last_online": 1780582240,
    "icon": null,
    "name": "Sunny with Chaos | PVE Hardcore",
    "connect": "5.189.135.15:28015",
    "request": "5.189.135.15:25574",
    "map": "Procedural Map",
    "gamemode": "Hardcore",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 25,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207169,
    "last_update": 1780582240,
    "banned": false,
    "wipe": 1780016397,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4763,
    "language": "fr",
    "parked": false,
    "app": {
      "id": 252490,
      "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/11501208");
$data = json_decode($json, true);
var_dump($data);