JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10870864
json
{
  "response": {
    "fps": 53,
    "fps_avg": 50,
    "entities_count": 116538,
    "world_seed": 1337,
    "world_size": 4500,
    "steam_id": "90286491183656968",
    "domain": null,
    "id": 10870864,
    "ip": "51.161.198.78",
    "port": 28030,
    "query": 28031,
    "color": 0,
    "city": "North Sydney",
    "description": "![[AU] Rito 3x |Solo/Duo/Trio/Quad| Just Wiped](https://i.postimg.cc/GtRczJtr/A3C8C094-9F72-43D2-9D9F-592DF2B3540F.png)\n\r\n 🔥 WELCOME TO OUR 3X RUST SERVER 🔥 \r\n  \r\n ⚙️ QUALITY OF LIFE FEATURES \r\n • Faster Recycle Speeds \r\n • Quick Smelt + Furnace Splitter \r\n • Skip Night \r\n • Auto Auth \r\n • No Radiation \r\n • TC Half Upkeep \r\n • Box Sorter \r\n • Custom Stack Sizes \r\n • Instant Barrels \r\n • Random Respawn \r\n  \r\n 📦 LOOT & PROGRESSION \r\n • Better Loot Tables \r\n • 3X Gather Rates \r\n • Locked Crates: 10 Minutes \r\n • Level 1 Blueprints Unlocked \r\n • Shared Blueprints \r\n • Extended Workbench Range \r\n  \r\n 🚁 EXTRAS & EVENTS \r\n • Airfield Events \r\n • Vehicle Licence \r\n • Purchase Minis at Outpost \r\n  \r\n  \r\n 🌍 PLAYER COMMANDS \r\n • Kits \r\n • Teleport Home \r\n • Trade \r\n • Stats \r\n • Mini \r\n • TPR \r\n  \r\n 🔗 COMMUNITY \r\n • Discord Linking",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780340002,
    "last_online": 1780606832,
    "icon": null,
    "name": "My Untitled Rust Server",
    "connect": "51.161.198.78:28030",
    "request": "51.161.198.78:28031",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1768318479,
    "last_update": 1780606832,
    "banned": false,
    "wipe": 1778589669,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4003,
    "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/10870864");
$data = json_decode($json, true);
var_dump($data);