JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/6233840
json
{
  "response": {
    "fps": 74,
    "fps_avg": 75,
    "entities_count": 76284,
    "world_seed": 1337,
    "world_size": 3500,
    "steam_id": "90284390405955603",
    "domain": null,
    "id": 6233840,
    "ip": "104.128.48.138",
    "port": 25571,
    "query": 27023,
    "color": 0,
    "city": "Chicago",
    "description": "![2x RustWipes.net - Solo/Duo/Trio](https://github.com/tsmith165/rust_data/blob/main/global/rust_header_new.jpg?raw=true)\nEnjoy faster progression and intense action with a doubled resource rate.\r\n\r\nWipes: Bi-weekly on Thursdays/Sundays @ 10AM PST (or when forced)\r\nBP Wipe: Monthly\r\nBase Pop: 300+ players | Map size: 3500 \r\n\r\nSUPPORT: discord.gg/6fBzfsNTY7\r\nSTORE: rustwipes.net/kits\r\nSERVERS: rustwipes.net/servers\r\nDISCORD: discord.gg/6fBzfsNTY7\r\n\r\nWhat to expect:\r\n    - Active, non-playing admins ensuring a top-tier experience\r\n    - Custom stat tracking for KDR, gambling, and resources\r\n    - Advanced anti-cheat measures\r\n    - Combined Outpost/Bandit for reduced lag\r\n    - Tastefully edited procedural maps\r\n    - Hosted on powerful dedicated servers with custom plugins\r\n\r\nNote: Group size limit is 3, and resource rate is 2x.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1771946492,
    "score": 0,
    "last_online": 1776367825,
    "icon": null,
    "name": "2x RustWipes.net - Solo/Duo/Trio",
    "connect": "104.128.48.138:25571",
    "request": "104.128.48.138:27023",
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 300,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1728486239,
    "last_update": 1776367825,
    "banned": false,
    "wipe": 1775386583,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3377,
    "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/6233840");
$data = json_decode($json, true);
var_dump($data);