JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/10622689
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 164804,
    "world_seed": 1337,
    "world_size": 4000,
    "steam_id": 90286515969708060,
    "domain": null,
    "id": 10622689,
    "ip": "194.50.234.140",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "City of London",
    "description": "![RFL 2.0 | Pure PvE [MOD] - NO Killing,Raiding or Looting](https://i.imgur.com/tFqLBRj.png)\nWelcome to RFL MOD! \r\n \r\nWe are a modded PvE server committed to delivering an exceptional PvE Rust gaming experience for all players. \r\n \r\n- No Killing! No Raiding! No Looting! No Trespassing! \r\n- Language - English \r\n- Noob Friendly! \r\n- Custom Events - Including over 75 Raidable Bases, Bradley Guards, and more! \r\n- Active Admins and helpful community \r\n- Decay, upkeep and building damage disabled \r\n- Discord Community! - https://discord.gg/QhYuhvYRgf \r\n- Online Store! \r\n- Full map wipe the first Thursday of every month, BP wipes only when forced",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780403056,
    "last_online": 1780588829,
    "icon": null,
    "name": "RFL 2.0 | Pure PvE [MOD] - NO Killing,Raiding or Looting",
    "connect": "194.50.234.140:28015",
    "request": "194.50.234.140:28016",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 2,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1763330613,
    "last_update": 1780588829,
    "banned": false,
    "wipe": 1778176813,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1249,
    "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/10622689");
$data = json_decode($json, true);
var_dump($data);