JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11511508
json
{
  "response": {
    "fps": 58,
    "fps_avg": 58,
    "entities_count": 73377,
    "world_seed": 1337,
    "world_size": 6000,
    "steam_id": "90286604913165325",
    "domain": null,
    "id": 11511508,
    "ip": "66.51.96.54",
    "port": 28055,
    "query": 28056,
    "color": 0,
    "city": "Ashburn",
    "description": "![Michigan Militia](https://cdn.gameserverkings.com/servers/20432/Michiganmilitia.jpg?165076548)\nHere on Michigan Militia we love to keep our barrels hot and our accuracy tight. With that being said I have added several things to the server that are balanced to help with this to keep you engaged in combat and raiding techniques such as raid bases and rewarding monument events. This is a long run server that values community and looking to grow with a \"quality over quantity\" approach. So if you are tired of the toxic, average joe server come give us a shot to see if this is your fit. Most of us are middle aged adults. See you on the battlefield!\r\nNo BP wipes\r\nYour economic points never wipe. Take your hard work with you wipe to wipe to purchase exclusive content within the server.\r\nPowerless turrets\r\nMonument Events\r\nMonthly server\r\nTo check your coin balance for kits type /balance\r\nType /kit to purchase or view kits\r\nRaidable Bases\r\nBe sure to join Discord on server home page for further questions about the server and to meet the MM family\r\nWe have vendors who sell tugboats. You purchase with coins earned at in game events. The tugboats have most features player boats have and can be taken into deep sea along with minicopter latch feature.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780598007,
    "last_online": 1780608629,
    "icon": null,
    "name": "Michigan Militia",
    "connect": "66.51.96.54:28055",
    "request": "66.51.96.54:28056",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 3,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1779353851,
    "last_update": 1780608629,
    "banned": false,
    "wipe": 1780598461,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1960,
    "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/11511508");
$data = json_decode($json, true);
var_dump($data);