JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/10824739
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 10824739,
    "ip": null,
    "port": null,
    "query": null,
    "project_id": null,
    "color": 0,
    "city": "Auckland",
    "description": "[{\"id\":\"99h923cLf6\",\"type\":\"paragraph\",\"data\":{\"text\":\"LaggedLegends is a heavily modded DayZ server in New Zealand, it has the mods MMG, Paragon, Snafu, and more. it has full  pvp with no traders, it has enhanced loot, extra weapons, and rare clothing.\\n\\n\"}}]",
    "game": 221100,
    "owner": 156366,
    "boosts": 1,
    "last_offline": 1768456276,
    "last_online": 1767591652,
    "icon": null,
    "name": "LaggedLegends | no trader | new server | MMG | paragon",
    "connect": null,
    "request": null,
    "map": "chernarusplus",
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 30,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "NZ",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1767318955,
    "last_update": 1768456276,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": 1,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 14118,
    "language": "en",
    "parked": true,
    "app": {
      "id": 63,
      "steam_id": 221100,
      "name": "DayZ",
      "url": "dayz"
    },
    "server_owner": {
      "username": "charlie_mitchell",
      "avatar": "a0841426-84ac-4269-a5f1-ad8414d97dce.jpg"
    },
    "mods": [
      {
        "id": 1615,
        "name": "CF"
      }
    ],
    "disabled_modules": []
  }
}

Codebeispiele

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