JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10922622
json
{
  "response": {
    "fps": 57,
    "fps_avg": 59,
    "entities_count": 112860,
    "world_seed": 1337,
    "world_size": 4500,
    "steam_id": "90286604260269079",
    "domain": null,
    "id": 10922622,
    "ip": "66.51.99.69",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Dallas",
    "description": "![Rusty Saloon | Custom Monuments + QoL | Monthly](https://i.imgur.com/CsX4oLm.png)\nUNDER CONSTRUCTION\r\nCustom Map with the Saloon and Quarterly Blueprint wipe coming April 7th!!/n\r\nRusty Saloon is a monthly vanilla feel server built around a custom 4500 map and a frontier town hub. Quality of Life improvements, no pay to win, and a focus on community driven gameplay./n\r\nThe wasteland is lawless except inside the Saloon, that's where you can come for community hang outs, entertainment, trading, map votes, bounty board and more!\r\nQuarterly BP wipes *April 7th*July 2nd*October 1st*December 31st*\r\n BRAND NEW SERVER  Feb 27, 2026 \r\n UNDER CONSTRUCTION",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780132416,
    "last_online": 1780597836,
    "icon": null,
    "name": "Rusty Saloon | Custom Monuments + QoL | Monthly",
    "connect": "66.51.99.69:28015",
    "request": "66.51.99.69:28016",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1768476985,
    "last_update": 1780597836,
    "banned": false,
    "wipe": 1780596665,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2925,
    "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/10922622");
$data = json_decode($json, true);
var_dump($data);