JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/8985159
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 56485,
    "world_seed": 1337,
    "world_size": 2800,
    "steam_id": "90286356848704536",
    "domain": null,
    "id": 8985159,
    "ip": "156.236.84.35",
    "port": 28030,
    "query": 28031,
    "color": 0,
    "city": "Dallas",
    "description": "![SUPA RUST | 1.5x | Monthly | No BP Wipes](https://i.imgur.com/YIESu4k.jpeg)\nMonthly Wipes Schedule\r\n  Force Wipes: First Thursday of each month at 1 PM CST,\r\n   T3 Blueprints Wipe: Monthly,\r\n\r\n    ---   Server Features\r\n   No Team Limit,\r\n   Custom Vehicles,\r\n   Custom Events,\r\n   Gather Rates: 1.5x,\r\n   Farm Rates: 1.5x,\r\n   Crafting & Recycling Times: Halved,\r\n   Increased Stack Sizes,\r\n   Smelting Speed: Increased,\r\n   Minicopters: Spawn on roads,\r\n   Vendors: Airwolf Vendor,  Recyclers, and Drone Marketplace available at fishing villages,\r\n   Day/Night Cycle: 5-minute nights and 2-hour days,\r\n   Admin Presence: Active non-playing admins,",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780670011,
    "last_online": 1780138826,
    "icon": null,
    "name": "SUPA RUST | 1.5x | Monthly | No BP Wipes",
    "connect": "156.236.84.35:28030",
    "request": "156.236.84.35:28031",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1746808981,
    "last_update": 1780670011,
    "banned": false,
    "wipe": 1779053633,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 9776,
    "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/8985159");
$data = json_decode($json, true);
var_dump($data);