JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/2330567
json
{
  "response": {
    "fps": 38,
    "fps_avg": 38,
    "entities_count": 131453,
    "world_seed": 1337,
    "world_size": 4800,
    "steam_id": "90286603903379456",
    "domain": null,
    "id": 2330567,
    "ip": "216.105.171.133",
    "port": 28221,
    "query": 28224,
    "color": 0,
    "city": "Chicago",
    "description": "![OL'Farts Gaming - Rust PVP Vanilla](https://i.postimg.cc/hjpYc8BV/olfartsnewbanner.png)\nWelcome to OL'Farts Gamings Rust  Absolutely No Racist Comments in chat or mic. Do not cry hacks in chat. Report them by pressing F7 and reporting it to facepunch. and report it to us through PM in Discord.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595663,
    "last_online": 1780606229,
    "icon": null,
    "name": "OL'Farts Gaming - Rust PVP Vanilla",
    "connect": "216.105.171.133:28221",
    "request": "216.105.171.133:28224",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 3,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1703792350,
    "last_update": 1780606229,
    "banned": false,
    "wipe": 1780595689,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1762,
    "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/2330567");
$data = json_decode($json, true);
var_dump($data);