JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/3776363
json
{
  "response": {
    "fps": 51,
    "fps_avg": 48,
    "entities_count": 137133,
    "world_seed": 2147483647,
    "world_size": 4600,
    "steam_id": "90286657195295774",
    "domain": null,
    "id": 3776363,
    "ip": "136.243.74.233",
    "port": 28025,
    "query": 28026,
    "project_id": null,
    "color": 0,
    "city": "Falkenstein",
    "description": "The most funny PVP BUILD/Creative Battlefield server.'\r\n'It\\'s total WARZONE and FUN.'\r\n''\r\n' Fight and Build base. Show us your skills'\r\n'  the best hardware on market with NVME GEN4'\r\n' All items'\r\n' Unlimited Ammo'\r\n' Unlimited resources and components'\r\n' No decay '\r\n' RAIDABLE BASES'\r\n' Spawn all vehicles '-' minicopter, scrap heli, etc.'\r\n' AutoKits, so you dont need to spawn all equipment every time you login '-' Build, Raid, Monument.'\r\n' All monuments to learn puzzles, Always day'\r\n' All BPs'\r\n' Instant Craft'\r\n' skip night vote'\r\n' jetpack'\r\n'3 tiers of heli and BRADLEY!'\r\n'All casino items '–' free of cost, even big wheel. Build your own casino at your base or do public casino for others!'\r\n' Many custom events'\r\n''\r\n'Its totally unique, no other server is giving you this opportunity.'\r\n''\r\n'WIPED 4th June 2026 '\r\n''\r\n'Slots will be increased automatically once needed.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780715652,
    "last_online": 1780900230,
    "icon": null,
    "name": "RUSTADDICTED.COM PVP BUILD CREATIVE | All items and BPs",
    "connect": "136.243.74.233:28025",
    "request": "136.243.74.233:28026",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1712765452,
    "last_update": 1780900230,
    "banned": false,
    "wipe": 1780597186,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2833,
    "language": "de",
    "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/3776363");
$data = json_decode($json, true);
var_dump($data);