JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11260595
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 89494,
    "world_seed": 1337,
    "world_size": 3800,
    "steam_id": "90286604047889426",
    "domain": null,
    "id": 11260595,
    "ip": "162.19.94.146",
    "port": 26015,
    "query": 26017,
    "color": 0,
    "city": "Gravelines",
    "description": "![Rock to Rockets - Solo only Bi-Weekly, no BP wipes. Vanilla.](https://cdn3.mapstr.gg/5853cb6ca527c0eb6e9a5f9572627e5e.png)\nWelcome to Rock to Rockets - Solo Only Bi-Weekly, No BP wipes. \r\n\r\n A brand new server providing a fun and fair Solo Only environment. \r\n\r\n - 2+ Game/VAC bans = Perm Ban \r\n - Game/VAC ban <365 Days old = Ban \r\n\r\n Last Wipe: 04/06/2026 19:00 BST \r\n Next Wipe: 18/06/2026 19:00 BST \r\n\r\n - Custom Anti Teaming system to prevent unfair game play \r\n - Custom Anti Cheat systems to help remove cheaters from the server \r\n - Strong growing Discord Community to assist with building and game play questions \r\n\r\n Join our Discord for more information and to join in with the discussion\r\n\r\n [RS-867611a4]",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780128215,
    "last_online": 1780606827,
    "icon": null,
    "name": "Rock to Rockets - Solo only Bi-Weekly, no BP wipes. Vanilla.",
    "connect": "162.19.94.146:26015",
    "request": "162.19.94.146:26017",
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 5,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 66,
    "add_date": 1774555197,
    "last_update": 1780606827,
    "banned": false,
    "wipe": 1780595782,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1135,
    "language": "fr",
    "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/11260595");
$data = json_decode($json, true);
var_dump($data);