JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/9765404
json
{
  "response": {
    "fps": 50,
    "fps_avg": 47,
    "entities_count": 126533,
    "world_seed": 1958057728,
    "world_size": 4250,
    "steam_id": "90286733238618118",
    "domain": null,
    "id": 9765404,
    "ip": "85.206.161.166",
    "port": 28555,
    "query": 28557,
    "project_id": null,
    "color": 0,
    "city": "Šiauliai",
    "description": "![PVE RELAX - OLDFARTS.LV](https://oldfarts.lv/server_files/PVE_RELAX_BANNER.jpg)\nPVE Server for older farts! \r\n \r\n - Advanced Skill Tree & level system \r\n - 200+ Raid bases \r\n - Popular event plugins and many more! \r\n \r\n Check our discord or https://oldfarts.lv! \r\n Have fun!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780877054,
    "last_online": 1780932624,
    "icon": null,
    "name": "PVE RELAX - OLDFARTS.LV",
    "connect": "85.206.161.166:28555",
    "request": "85.206.161.166:28557",
    "map": "Rūsētāju pansionāts",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 21,
    "maxplayers": 69,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "LT",
    "status": true,
    "votes": 0,
    "points": 71,
    "add_date": 1752439749,
    "last_update": 1780932624,
    "banned": false,
    "wipe": 1780596093,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 808,
    "language": "lt",
    "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/9765404");
$data = json_decode($json, true);
var_dump($data);