JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/10116833
json
{
  "response": {
    "fps": 79,
    "fps_avg": 71,
    "entities_count": 122149,
    "world_seed": 24,
    "world_size": 4000,
    "steam_id": "90286589793921052",
    "domain": null,
    "id": 10116833,
    "ip": "64.20.48.67",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "Secaucus",
    "description": "![420 US WEST 2X | No Decay | No BP Wipe](https://cdn.discordapp.com/attachments/885989733300322375/892596607005126676/YESSSSSIRRR_4_1024x512.png)\n(WIPED 08MAY-2126HOURS)\r\nThis server FORCE WIPES only, and a daily restart time of 3AM PST. YOU CAN NOW BUY RECYCLERS AT THE ADMIN VENDING MACHINE AT OUTPOST, LOOKS LIKE WORK BENCH BUT IT IS A RECYCLER!\r\n\r\nMods - Gather manager | Stack Size Controller | No Decay \r\n\r\n- Sign Artist | Automatic Authorization | Vehicle Decay Protection \r\n\r\nAll resources stack to 5k.   All Resources are 2x including scrap. \r\n\r\nPlease see discord for more info. Racist / homophobic / toxic individuals will not be tolerated.  \r\n\r\nBe sure to join the server discord for updates.\r\nhttps://discord.gg/XuetQbAAdA All are welcome!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780567467,
    "last_online": 1780588233,
    "icon": null,
    "name": "420 US WEST 2X | No Decay | No BP Wipe",
    "connect": "64.20.48.67:28080",
    "request": "64.20.48.67:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1755725455,
    "last_update": 1780588233,
    "banned": false,
    "wipe": 1778341384,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3531,
    "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/10116833");
$data = json_decode($json, true);
var_dump($data);