JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11596839
json
{
  "response": {
    "fps": 58,
    "fps_avg": 56,
    "entities_count": 96208,
    "world_seed": 1748778664,
    "world_size": 4000,
    "steam_id": "90286421409440798",
    "domain": null,
    "id": 11596839,
    "ip": "15.235.214.63",
    "port": 2261,
    "query": 2262,
    "color": 0,
    "city": "Singapore",
    "description": "![Wizard of Rust PVE 1X |Events|Raids|Skins|Custom](https://cdn3.mapstr.gg/cd6c90e08ace46dac06d729fd36854b7.png)\n\r\n▶ We also have a Wizard of Rust PVE UK Server 2X \r\n▶ Monthly Wipe & Blueprint Wipe\r\n▶ PvE Server • Purge 24h Before Wipe\r\n▶ Prizes for reaching the Leaderboards\r\n▶ Scrap-Based Economy (Buy items with scrap)\r\n\r\n▶ Custom Content:\r\n- Karuza Custom Vehicles\r\n- Raidable Bases (5 Unique 300+Tiers)\r\n- Custom Bradley (4 Tiers)\r\n- Tiered Attack Heli Signals (8 Levels)\r\n- Jet Event • Cargo Train • Airfield Event\r\n- Custom Music Radio Channels\r\n\r\n▶ QoL & Features:\r\n- Shop • Kits • Leaderboard\r\n- Build in Deepsea open 24/7 \r\n- Skinbox • Zombie Hordes • Monument Npc • Crocs and Panthers \r\n- Instant Craft • Instant Barrels\r\n- Recycler / Virtual Recycler\r\n- Instant Airdrops • VoteDay\r\n- Furnace Splitter • Remove Tool\r\n- Bigger Backpacks (Restore on Death)\r\n- Larger Stacks • Stack Loot Chests\r\n- Auto Turret Limit Removed\r\n- Tool Cupboard Upgrade\r\n- Sign Artist\r\n▶ And much more!\r\n>>> Click on the external website to join our discord <<<",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780572216,
    "last_online": 1780236634,
    "icon": null,
    "name": "Wizard of Rust PVE 1X |Events|Raids|Skins|Custom",
    "connect": "15.235.214.63:2261",
    "request": "15.235.214.63:2262",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 69,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "SG",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779358599,
    "last_update": 1780572216,
    "banned": false,
    "wipe": 1778203863,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 12052,
    "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/11596839");
$data = json_decode($json, true);
var_dump($data);