JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/4649518
json
{
  "response": {
    "fps": 10,
    "fps_avg": 10,
    "entities_count": 129830,
    "world_seed": 1169791325,
    "world_size": 4000,
    "steam_id": "90286603807291402",
    "domain": null,
    "id": 4649518,
    "ip": "85.190.161.35",
    "port": 18000,
    "query": 18001,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "![Lee's 420 24/7 Server DE / EN - PVP | BEGINNER](https://static.nitrado.net/cdn/rust/header.jpg)\nFreundlicher Community-Server mit PVP. Unbewaffnete Nakeds erstmal ansprechen, no kill on sight  Wipe alle 30 Tage.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470419,
    "last_online": 1780600236,
    "icon": null,
    "name": "Lee's 420 24/7 Server DE / EN - PVP | BEGINNER",
    "connect": "85.190.161.35:18000",
    "request": "85.190.161.35:18001",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 20,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1717585821,
    "last_update": 1780600236,
    "banned": false,
    "wipe": 1780595401,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2950,
    "language": "de",
    "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/4649518");
$data = json_decode($json, true);
var_dump($data);