JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/8839059
json
{
  "response": {
    "fps": 54,
    "fps_avg": 50,
    "entities_count": 123190,
    "world_seed": 536326825,
    "world_size": 4500,
    "steam_id": "90286578989764622",
    "domain": null,
    "id": 8839059,
    "ip": "23.111.240.213",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "Amsterdam",
    "description": "![Rusty Dream [Raidable Bases|EU-US|PvE|MOD]](https://i.ibb.co/84dcHFYS/Rusty-Dream-landscape-logo-panel.png)\nWelcome to Rusty Dream 2x PVE Server!\r\nWe are a high-performance, lightly modded server. Dedicated to providing an\r\nexcellent PvE Rust game experience to all. This is a family oriented,noobfriendly\r\ncommunity. Our server is a place to explore, build, join events and have\r\nfun. Are you a person who likes action or wants to go on an adventure and\r\nkill NPCs? If you are, then you are in the right place. Please check out are \r\nDiscord for more information. \r\nEvery wipe is a normal map no costume. Map size for this wipe is 4500. BP Wipe, every first of January Full map wipe the first Thursday of every month, BP\r\nwipes only when forced.\r\n---*Rules*---\r\n - No Killing! No Raiding! No Looting! No Trespassing! building damage disabled\r\n - Language  English\r\n - No cheating! Scripting or hacking of any kind! You will get band!\r\n - More rules in game panel that you MUST respect!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780542269,
    "last_online": 1780581633,
    "icon": null,
    "name": "Rusty Dream [Raidable Bases|EU-US|PvE|MOD]",
    "connect": "23.111.240.213:28080",
    "request": "23.111.240.213:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "NL",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1746128979,
    "last_update": 1780581633,
    "banned": false,
    "wipe": 1778178053,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1717,
    "language": "nl",
    "parked": false,
    "app": {
      "id": 252490,
      "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/8839059");
$data = json_decode($json, true);
var_dump($data);