JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/5942032
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 12550,
    "world_seed": 1,
    "world_size": 2000,
    "steam_id": "90283777953560595",
    "domain": null,
    "id": 5942032,
    "ip": "156.236.84.62",
    "port": 28000,
    "query": 28001,
    "color": 0,
    "city": "Dallas",
    "description": "![|NA| Dead Homies |2x| Weekend Raids Only |](https://media.discordapp.net/attachments/1284478671620411402/1289573931027660800/Dead_Homies_RUST_1_2.png?ex=66f950d0&is=66f7ff50&hm=921b8a898f17f2b80536ac32218b023835cbc890e1562dc0b821eca3813bc341&=&format=webp&quality=lossless&width=720&height=360)\nFor the Dead Homies!\r\n Please join our Discord to read the rules and stay up to date on any changes and for wipe schedule!\r\n Weekend Raids ONLY\r\n Team Limit 6\r\n NO PAY TO WIN\r\n 2x Resources\r\n Simple Mods List\r\n More Events",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775194330,
    "score": 0,
    "last_online": 1776510623,
    "icon": null,
    "name": "My Untitled Rust Server",
    "connect": "156.236.84.62:28000",
    "request": "156.236.84.62:28001",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2622",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1726346858,
    "last_update": 1776510623,
    "banned": false,
    "wipe": 1774044397,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3367,
    "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/5942032");
$data = json_decode($json, true);
var_dump($data);