JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/3433245
json
{
  "response": {
    "fps": 198,
    "fps_avg": 199,
    "entities_count": 164351,
    "world_seed": 13825,
    "world_size": 5000,
    "steam_id": "90286592361699357",
    "domain": null,
    "id": 3433245,
    "ip": "54.36.224.200",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "London",
    "description": "![RustyWorld 'OnlyUp|SkillTree|Skins|Kits|Events|More'](https://cdn3.mapstr.gg/bd8eb1b3a95a0196bc810342c7da7431.png)\nWelcome To RustyWorld\r\n\r\nJoin The Community - Have fun, Make friends, Play with streamers\r\n\r\nJoin our Discord 'discord.com/invite/tzhW4ZKhDy' we have a small community that loves playing other games as well as Rust",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780574678,
    "last_online": 1780575632,
    "icon": null,
    "name": "RustyWorld 'OnlyUp|SkillTree|Skins|Kits|Events|More'",
    "connect": "54.36.224.200:28080",
    "request": "54.36.224.200:28015",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1710496094,
    "last_update": 1780575632,
    "banned": false,
    "wipe": 1778232453,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2613,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "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/3433245");
$data = json_decode($json, true);
var_dump($data);