JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/10871201
json
{
  "response": {
    "fps": 76,
    "fps_avg": 75,
    "entities_count": 102550,
    "world_seed": 206213133,
    "world_size": 4250,
    "steam_id": "90286592445435921",
    "domain": null,
    "id": 10871201,
    "ip": "8.36.254.194",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Salina",
    "description": "![[420 CHILL] FRIENDLY | HALF DECAY | SHORTER NIGHTS](http://tekkennetwork.com/rust/420_Cmain.png)\nSolo/Duo/Trio/Quad ONLY | Recyclers & Limited No Offline Raids\r\n\r\nCome chill in a laid back, 'vanilla-ish' Rust community. Noob friendly with short 50/10 day/night cycles, Z-Levels, Lootable Recyclers, Raidable Bases, Convoy Event, Harbor Event, Vehicle Decay changes, Scrap in TC Offline Protection!\r\n\r\n                                                              \r\n\r\n          Visit www.fourtwentychill.com for Server Rules and access to our Discord.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780607655,
    "last_online": 1780605036,
    "icon": null,
    "name": "[420 CHILL] FRIENDLY | HALF DECAY | SHORTER NIGHTS",
    "connect": "8.36.254.194:28015",
    "request": "8.36.254.194:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 60,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1768318536,
    "last_update": 1780607655,
    "banned": false,
    "wipe": 1778178096,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 9628,
    "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/10871201");
$data = json_decode($json, true);
var_dump($data);