JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/7027801
json
{
  "response": {
    "fps": 54,
    "fps_avg": 51,
    "entities_count": 173293,
    "world_seed": 764362432,
    "world_size": 5250,
    "steam_id": "90286609861718034",
    "domain": null,
    "id": 7027801,
    "ip": "156.236.84.29",
    "port": 28025,
    "query": 28026,
    "color": 0,
    "city": "Dallas",
    "description": "Welcome to Rusty Goats Hybrid!\r\nA high-action War Mode experience with custom RPG elements.\r\n\r\n[ SERVER FEATURES ]\r\n- 50% Upkeep | Solo / Duo / Trio\r\n- Wipe Cycle: Monthly Map & Blueprints\r\n- Active Admins\r\n\r\n[ CUSTOM CONTENT ]\r\n- Raidable Bases | Convoy | Armored Train\r\n- Boss Monsters | Sputnik | Better NPC\r\n- Skill Tree | Jetpacks | Bag of Holding\r\n- Water Bases | Grid Power | Barges\r\n- Auto-Sorter | Skinner | Custom Recyclers\r\n\r\n[ RULES & COMMUNITY ]\r\n- No Cheating, Scripting, or Exploits\r\n- Zero Tolerance for Racism or Toxicity\r\n- English only in Global Chat\r\n- Type !bangs in-game for full command list\r\n\r\nJoin our Discord for support & updates:\r\ndiscord.gg/TjqW7Cwed5",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780606462,
    "last_online": 1780608637,
    "icon": null,
    "name": "Rusty Goats | Hybrid | War Mode | Solo/Duo/Trio",
    "connect": "156.236.84.29:28025",
    "request": "156.236.84.29:28026",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1735073725,
    "last_update": 1780608637,
    "banned": false,
    "wipe": 1780596771,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5701,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/7027801");
$data = json_decode($json, true);
var_dump($data);