JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/10870131
json
{
  "response": {
    "fps": 48,
    "fps_avg": 59,
    "entities_count": 117767,
    "world_seed": 982423584,
    "world_size": 4500,
    "steam_id": "90286694526498835",
    "domain": null,
    "id": 10870131,
    "ip": "88.198.35.108",
    "port": 28022,
    "query": 28023,
    "project_id": null,
    "color": 0,
    "city": "Nuremberg",
    "description": "![[GER|DEV] RustRentner | EVENTS | SKILLS | MORE](https://dpa.lol/rr/mrs/rust_testserver.png)\nDies ist nur ein Testserver! Wenn Du auf PVE stehst, dann komm einfach auf unseren Hauptserver: [GER|PVE] RustRentner | EVENTS | SKILLS | MORE\r\n\r\nWir sind eine deutschsprachrige Community, daher ist der Zugriff auf D.A.CH. beschränkt, solltest Du von außerhalb kommen und deutsch sprechen, dann melde Dich in unserem Discord zur Freischaltung.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780565063,
    "last_online": 1780874432,
    "icon": null,
    "name": "[GER|DEV] RustRentner | EVENTS | SKILLS | MORE",
    "connect": "88.198.35.108:28022",
    "request": "88.198.35.108:28023",
    "map": "Rust Rentner 2026",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 5,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1768318392,
    "last_update": 1780874432,
    "banned": false,
    "wipe": 1780564946,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 1,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4094,
    "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/10870131");
$data = json_decode($json, true);
var_dump($data);