JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/10413116
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 110410,
    "world_seed": 0,
    "world_size": 4096,
    "steam_id": "90286566750931992",
    "domain": null,
    "id": 10413116,
    "ip": "91.229.114.2",
    "port": 28035,
    "query": 28037,
    "color": 0,
    "city": "Chicago",
    "description": "Map Wipe: Monthly force wipe @ 4pm EST\r\nBlueprint Wipe: Monthly force wipe\r\n\r\n######################################\r\n\r\nFeatures:\r\n - No VIP kits\r\n - Fog of war map (unlock grids as you discover them)\r\n - No tech tree (find the item to research it)\r\n - Workbenches extend throughout your entire base\r\n - Craftable and lockable vehicles (no air wolf vendor)\r\n - Heavy npcs guarding multiple monuments, heli, and bradley\r\n - Raiding zombies and npcs\r\n - Zombie hordes\r\n - Roaming Bosses\r\n - Tiered raidable bases\r\n - Tiered patrol helicopters (locked to your clan when called in)\r\n - 45 min day 15 min nights\r\n - 0.5x-2x gather rates depending on skills\r\n - 1x loot\r\n - 5x upkeep\r\n - No reasearching or crafting weapons\r\n - No wounded state (if you die you die)\r\n - Extra bradleys at monuments\r\n - Custom monuments\r\n - Instanced quarries and giant excavator\r\n - Auto turrets ignore players but attack npcs\r\n - Lots and lots of zombies...\r\n - Much more\r\n\r\nMore info available at thelastofrust.com\r\nClick the View Webpage button to join our Discord or visit discord.thelastofrust.com",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470420,
    "last_online": 1780588233,
    "icon": null,
    "name": "TheLastOfRust Premium Hardcore PvE Zombie Survival",
    "connect": "91.229.114.2:28035",
    "request": "91.229.114.2:28037",
    "map": "Custom Map",
    "gamemode": "Hardcore",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1759823809,
    "last_update": 1780588233,
    "banned": false,
    "wipe": 1778183255,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3645,
    "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/10413116");
$data = json_decode($json, true);
var_dump($data);