JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11511609
json
{
  "response": {
    "fps": 55,
    "fps_avg": 53,
    "entities_count": 133553,
    "world_seed": 1438,
    "world_size": 4500,
    "steam_id": "90286438203026442",
    "domain": null,
    "id": 11511609,
    "ip": "59.5.227.195",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Dobong-gu",
    "description": "![[x3~5/PVP] 비버서버 [5/8 초기화]](https://sorrykim.dothome.co.kr/img/rust.png)\n[KR] Beaver Server x3~5 배율 / 기본 베이스 PVP / 온라인 레이드 지향 PVE 레벨링 성장 시스템으로 파밍하고 강해져서 PVP & 온라인 레이드까지 이어지는 전투 중심 서버! 레이드 가능한 NPC 베이스가 맵 곳곳에 생성되며 실제 사람처럼 행동하는 NPC들이 돌아다녀 생존 분위기 극대화! 구글 번역 기반 자동 번역 채팅 지원으로 외국인 유저와도 자유롭게 소통 가능합니다.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779681209,
    "last_online": 1780587037,
    "icon": null,
    "name": "[x3~5/PVP] 비버서버 [5/8 초기화]",
    "connect": "59.5.227.195:28015",
    "request": "59.5.227.195:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "KR",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779353856,
    "last_update": 1780587037,
    "banned": false,
    "wipe": 1778193452,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5244,
    "language": "ko",
    "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/11511609");
$data = json_decode($json, true);
var_dump($data);