JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/6459158
json
{
  "response": {
    "fps": 45,
    "fps_avg": 44,
    "entities_count": 107561,
    "world_seed": 1861606390,
    "world_size": 4250,
    "steam_id": "90286604878811136",
    "domain": null,
    "id": 6459158,
    "ip": "209.126.2.184",
    "port": 28019,
    "query": 28020,
    "color": 0,
    "city": "St Louis",
    "description": "![[US] Redzone101 - PVP|Max8|NoCraft|Random Gather|Kits](https://i.imgur.com/Dw4nTbG.png)\nWelcome to Redzone101!\r\n\r\n• Random Gather\r\n• Max Team: 8\r\n• AlphaLoot Custom Loot Tables\r\n• No Crafting | No Tech Tree\r\n• Clans | Kits | Backpacks\r\n• XPerience | PlayerRanks | Virtual Shop\r\n• Events\r\n• Players receive 5 virtual cash every 10 minutes they play!\r\n• VIP Perks with access to more plugin's\r\n• SignArtist and more\r\n\r\nVisit (https://zonegaming.tebex.io/) for VIP\r\n Visit (https://dsc.gg/zonegaming) for Discord",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780598073,
    "last_online": 1780603836,
    "icon": null,
    "name": "[US] Redzone101 - PVP|Max8|NoCraft|Random Gather|Kits",
    "connect": "209.126.2.184:28019",
    "request": "209.126.2.184:28020",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1730141765,
    "last_update": 1780603836,
    "banned": false,
    "wipe": 1780598353,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3327,
    "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/6459158");
$data = json_decode($json, true);
var_dump($data);