JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/9640406
json
{
  "response": {
    "fps": 214,
    "fps_avg": 211,
    "entities_count": 70207,
    "world_seed": 1337,
    "world_size": 3500,
    "steam_id": "90286605100704789",
    "domain": null,
    "id": 9640406,
    "ip": "213.133.102.113",
    "port": 27123,
    "query": 27124,
    "color": 0,
    "city": "Nuremberg",
    "description": "![[DE/EU] DauerDraufRust | PvE-PvP | Custom Events](https://dauerdrauf.com/images/NewHeader.png)\nWelcome to DauerDraufRust! \r\n PvE during the week, PvP on weekends from Fri 20:00 to Sun 20:00 \r\n TC UpKeep50% No BP Wipe \r\n Modded server with events, strong performance, and a friendly community. \r\n Map: Eden Falls\r\n Wipes: Only wipes when necessary long life 1 to 2 months lifespan \r\n CustomLoot! \r\n Are you ready to face off against the bots and prove yourself against other players? \r\n DauerDrauf gives you a unique PvE experience, are you ready? Let's go!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780599268,
    "last_online": 1780603837,
    "icon": null,
    "name": "[DE/EU] DauerDraufRust | PvE-PvP | Custom Events",
    "connect": "213.133.102.113:27123",
    "request": "213.133.102.113:27124",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 250,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1751297539,
    "last_update": 1780603837,
    "banned": false,
    "wipe": 1780599381,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3579,
    "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/9640406");
$data = json_decode($json, true);
var_dump($data);