JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/2311207
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 79796,
    "world_seed": 1337,
    "world_size": 3300,
    "steam_id": "90286603780707350",
    "domain": null,
    "id": 2311207,
    "ip": "156.236.84.33",
    "port": 28014,
    "query": 28015,
    "color": 0,
    "city": "Dallas",
    "description": "![[NA] Willjum's Solo Only | Thursday Wipes](https://media.discordapp.net/attachments/1087970531527102504/1101108762560970852/RustBanner.png)\nWelcome to [NA] Willjum's Solo Only \r\nWe strive to be the best Rust server for solo players. \r\nWe're not just running a server with a solo-only group limit — we’ve also optimized the gameplay experience around it. \r\n\r\nGeneral Information: \r\n- Wipe schedule: Weekly Thursday @ 3PM EST | Monthly BPs \r\n- Map size: 3300 \r\n- Buy VIP: Store.willjum.com \r\n- Join Discord: Discord.gg/willjum \r\n- Advanced custom-made Anti-cheat & Group limit enforcement system \r\n- Active staff \r\n\r\n\r\nGameplay Features: \r\n- Hazmat also has cold protection \r\n- Use /coffin to convert a few large boxes into coffins \r\n- Leaderboards: willjum.com/leaderboard \r\n- Drone Shops, Recyclers & Gambling added to Fishing Villages \r\n- Cozy Custom Outpost (Check out the saloon) \r\n- Optimized Map Generation – We generate 100+ maps each wipe and pick the best one to include all your favorite monuments and build spots on a small map \r\n\r\n\r\nRules: \r\n- Rule #1 — No cheating/exploiting \r\n- Rule #2 — No ban evasion/cheater association \r\n- Rule #3 — No extreme toxicity/spam \r\n- Rule #4 — Don’t impersonate staff or the server \r\n- Rule #5 — Play solo (includes roaming, raiding, farming, traveling) \r\n\r\nFull list of rules: Discord.gg/willjum",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595663,
    "last_online": 1780604423,
    "icon": null,
    "name": "[NA] Willjum's Solo Only | Thursday Wipes",
    "connect": "156.236.84.33:28014",
    "request": "156.236.84.33:28015",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 63,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 86,
    "add_date": 1703673912,
    "last_update": 1780604423,
    "banned": false,
    "wipe": 1780595629,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 557,
    "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/2311207");
$data = json_decode($json, true);
var_dump($data);