JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11501802
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 209547,
    "world_seed": 1,
    "world_size": 5000,
    "steam_id": "90286604123111429",
    "domain": null,
    "id": 11501802,
    "ip": "185.172.175.236",
    "port": 28105,
    "query": 28106,
    "color": 0,
    "city": "City of London",
    "description": "![Chernobyl Exclusion zone in Rust |Levels|Stacks|BiWeekly|Solo D](https://www.dropbox.com/scl/fi/biztm1s4n9cnfte2xxagn/serverimage.png?rlkey=jtzny901hobup8mqdp230utzj&st=nbxteo1y&dl=1)\nWelcome on Chernobyl Exclusion zone server. There is a almost 1 by 1 Chernobyl zone with Nuclear powerplant, Pripyat, Duga radar and more.\r\n\r\nWhat you can found here?\r\nPlugins like alpha animals, Skill tree, Custom weather system, Quests and more...\r\nWiped BiWeekly\r\nVanilla gather and looting\r\nCustom safe zone and shopping place\r\nMap wipe Biweekly\r\nMax team is 3\r\nSkilltree and BP wipe monthly\r\nNext wipe 18.6\r\n\r\n\r\nNews\r\nBug and prefabs fix\r\nNew islands around map\r\nNew secret epic loot place on map\r\nNew Chernobyl rooms\r\n\r\nMap updating every wipe becouse its early acces now. So i hope you enjoy it here.\r\nIf you want support this project you can found this map on codefling.com\r\n\r\nhttps://codefling.com/maps/chernobyl-exclusion-zone-map-by-tutofire5-early-access",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780596270,
    "last_online": 1780645827,
    "icon": null,
    "name": "Chernobyl Exclusion zone in Rust |Levels|Stacks|BiWeekly|Solo D",
    "connect": "185.172.175.236:28105",
    "request": "185.172.175.236:28106",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 2,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1779207181,
    "last_update": 1780645827,
    "banned": false,
    "wipe": 1780596416,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1673,
    "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/11501802");
$data = json_decode($json, true);
var_dump($data);