JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/2243959
json
{
  "response": {
    "fps": 50,
    "fps_avg": 50,
    "entities_count": 231575,
    "world_seed": 1217006265,
    "world_size": 6000,
    "steam_id": "90286642755341335",
    "domain": null,
    "id": 2243959,
    "ip": "116.90.75.195",
    "port": 28015,
    "query": 28016,
    "project_id": null,
    "color": 0,
    "city": "Auckland",
    "description": "![[NZ] The Rose | 10x Biweekly | PVE Only](https://imgur.com/usSED8E)\nWelcome to The Rose 10x PVE!  We've got plenty of fun events, no-fuel /mymini, and 100+ plugins for you to enjoy!  Multiple Events, Shop, Backpacks (Keep on Death & Wipe), XPerience, AutoDoors, ChestStacks, PersonalHeli, SignArtist, Trade, /home, /kit, /bgrade, /up, /voteday, /mymini, /xpstats, /s, /outpost, /vq, /fc and more.  discord link is https://discord.gg/3Zcer42egH  And you can purchase VIP and support us by clicking View Webpage and visiting the store  You can view the bonuses on the Store and in Discord, which also has a live server feed, voice chat channels and a community so you can meet new friends.   We hope you enjoy your time here!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780683257,
    "last_online": 1780689030,
    "icon": null,
    "name": "[NZ] The Rose | 10x Biweekly | PVE Only",
    "connect": "116.90.75.195:28015",
    "request": "116.90.75.195:28016",
    "map": "Procedural Map",
    "gamemode": "Softcore",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "NZ",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1702833852,
    "last_update": 1780689030,
    "banned": false,
    "wipe": 1780613292,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1963,
    "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/2243959");
$data = json_decode($json, true);
var_dump($data);