JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11219277
json
{
  "response": {
    "oxide": true,
    "modded": true,
    "fps": 5050,
    "fps_avg": 5155,
    "entities_count": 1131,
    "world_seed": 1,
    "world_size": 3200,
    "steam_id": "90284708304494597",
    "domain": null,
    "id": 11219277,
    "ip": "199.83.103.223",
    "port": 11110,
    "query": 11110,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "![CALYPSO RUST | BATTLEFIELD | COMBAT](https://i.imgur.com/aryELXh.png)\nCALYPSO RUST | MAIN | 236 devblog\r\n Rates x2 | MAX 4\r\n FPS | Low ping\r\n News, contests and other info: vk.com/calypsorust\r\n Discord: https://discord.gg/vj87BpUhtJ. \r\n Telegram: t.me/calypsorust.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776710002,
    "score": 0,
    "last_online": 1776822621,
    "icon": null,
    "name": "CALYPSO RUST | BATTLEFIELD | COMBAT",
    "connect": "199.83.103.223:11110",
    "request": "199.83.103.223:11110",
    "map": "MapyDelalBezmolvieCSPv1",
    "gamemode": "Rust: Survival Mode",
    "version": "2271",
    "numplayers": 1,
    "maxplayers": 20,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1772701492,
    "last_update": 1776822621,
    "banned": false,
    "wipe": 1774973191,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4789,
    "language": "de",
    "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/11219277");
$data = json_decode($json, true);
var_dump($data);