JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/8122185
json
{
  "response": {
    "fps": 188,
    "fps_avg": 192,
    "entities_count": 165554,
    "world_seed": 619258376,
    "world_size": 4500,
    "steam_id": "90284734194717716",
    "domain": null,
    "id": 8122185,
    "ip": "148.113.198.86",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Montreal",
    "description": "![[US West] Facepunch Premium 2](https://files.facepunch.com/Alistair/124/07/2025/9593/fpos.png)\nThis is an official server owned and operated by Facepunch.\r\n\r\nPeople are free to speak whatever language they like. Don't be surprised if you get banned for being abusive.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775223136,
    "score": 0,
    "last_online": 1776855018,
    "icon": null,
    "name": "[US West] Facepunch Premium 2",
    "connect": "148.113.198.86:28015",
    "request": "148.113.198.86:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 9,
    "maxplayers": 400,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1741879810,
    "last_update": 1776855018,
    "banned": false,
    "wipe": 1775151446,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1868,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/8122185");
$data = json_decode($json, true);
var_dump($data);