JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/8267599
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 145640,
    "world_seed": 686554301,
    "world_size": 5000,
    "steam_id": "90286422281607185",
    "domain": null,
    "id": 8267599,
    "ip": "104.129.132.91",
    "port": 28018,
    "query": 28022,
    "color": 0,
    "city": "Dallas",
    "description": "Ashen Forge Casual PvP Paradise – Built for chill players who want fun without the hardcore grind! No pay-to-win, no toxicity – just raid, loot, and laugh with friends. \r\n Key Features: \r\n• 2x Gather Rates – Farm faster, play more! \r\n • Custom Stacks & Loot – Bigger hauls, better drops. \r\n • Backpacks – Extra inventory space on the go. \r\n • Better TC – Easy base upgrades & auto-maintenance. \r\n Epic Events: \r\n • Cargo Ship raids \r\n • Harbor battles \r\n • Heavy Excavator \r\n Water (Sub) ops – constant action! \r\n Wipes: Bi-Weekly (Map) – Fresh starts every other Thursday. \r\n Max Group 8 | Vanilla+ Rules | Active Admins \r\n Join the Forge: IP 104.129.132.91 \r\n Come smelt some memories!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780189435,
    "last_online": 1780548633,
    "icon": null,
    "name": "Ashen Forge x2",
    "connect": "104.129.132.91:28018",
    "request": "104.129.132.91:28022",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 140,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1742497718,
    "last_update": 1780548633,
    "banned": false,
    "wipe": 1779376425,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2857,
    "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/8267599");
$data = json_decode($json, true);
var_dump($data);