JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/8321650
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 8321650,
    "ip": "144.126.129.101",
    "port": 33600,
    "query": 33615,
    "color": 0,
    "city": "St Louis",
    "description": "[\n    {\n        \"id\": \"ahqKEDbWdE\",\n        \"type\": \"paragraph\",\n        \"data\": {\n            \"text\": \"\\nSettle that score, learn a new dinosaur, or just run around biting the air, all on Chaos Theory's The Isle DEATHMATCH server.\\n\\n- Our admins are dedicated and care about YOUR in game experience. Please join our Discord ([discord.gg/chaos-theory](https://discord.gg/chaos-theory)) for more details, including rules, giveaways, events and we hope to see you on our server! Happy Hunting! \\n\\n\"\n        }\n    }\n]",
    "game": 440900,
    "owner": 111257,
    "boosts": 1,
    "last_offline": 1768641773,
    "score": 5,
    "last_online": 1776507611,
    "icon": null,
    "name": "Alista Forest",
    "connect": "144.126.129.101:33600",
    "request": "144.126.129.101:33615",
    "map": "The Exiled Lands",
    "gamemode": "Conan Exiles",
    "version": null,
    "numplayers": 1,
    "maxplayers": 10,
    "bots": 0,
    "secured": true,
    "private": true,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 100,
    "add_date": 1743351030,
    "last_update": 1776507611,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2,
    "language": "en",
    "parked": false,
    "app": {
      "id": 170,
      "steam_id": 440900,
      "name": "Conan Exiles",
      "url": "conan-exiles"
    },
    "server_owner": {
      "username": "MilkyAtlas",
      "avatar": "cade6fdf-d92a-4c63-9362-0e903fdd4981.jpg",
      "last_online": 1743350746
    },
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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