JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/9631406
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 63207,
    "world_seed": 1337,
    "world_size": 5000,
    "steam_id": "90286436756343810",
    "domain": null,
    "id": 9631406,
    "ip": "199.231.185.234",
    "port": 27034,
    "query": 27036,
    "color": 0,
    "city": "Secaucus",
    "description": "![Royal Family Gaming - Creative | Sandbox | Build | NoClip |](https://i.ibb.co/ZRSymTjj/US-Creative.png)\nRoyal Family Gaming | Creative Build Server\r\n\r\nBuild without limits in a fully creative Rust experience. Enjoy unlimited resources, noclip flying, and total freedom to design, test, and perfect your builds.\r\n\r\nFeatures:\r\nInstant Crafting\r\nGod Mode\r\nVehicle Spawning\r\nNo Decay\r\nNo Raids\r\n\r\nFocus purely on creativity with no grinding or restrictions.\r\n\r\nJoin a friendly community and start building your masterpiece today.\r\n\r\nDiscord: discord.gg/RFGaming\r\nSearch Royal Family Gaming for more servers",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778176987,
    "last_online": 1780257633,
    "icon": null,
    "name": "Royal Family Gaming - Creative | Sandbox | Build | NoClip |",
    "connect": "199.231.185.234:27034",
    "request": "199.231.185.234:27036",
    "map": "RFG Creative Build",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1750864481,
    "last_update": 1780257633,
    "banned": false,
    "wipe": 1778176933,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3949,
    "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/9631406");
$data = json_decode($json, true);
var_dump($data);