JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11677277
json
{
  "response": {
    "fps": 93,
    "fps_avg": 89,
    "entities_count": 123266,
    "world_seed": 1405865,
    "world_size": 4500,
    "steam_id": "90286425606189086",
    "domain": null,
    "id": 11677277,
    "ip": "173.234.137.174",
    "port": 28215,
    "query": 28216,
    "color": 0,
    "city": "Slough",
    "description": "![[EU] Balboa's World 2x Monthly|Solo/Duo|No BP Wipe|Noob Friendl](https://i.ibb.co/Q6DH9FH/banner-new.png)\n1Welcome to Balboa's World.\r\n• QOL Plugins Only.  No P2W\r\n• Active Non-Playing Admins.\r\n• Offline Raid Protection \r\n• NPC Raidable Bases anytime \r\n• 2x Gather/Loot/Recycling/Crafting\r\n• Increased Workbench Range.\r\n• 50% upkeep \r\n• Mini's Spawn On The Road \r\n• Skin Box \r\n• In Game Events\r\n• Max 2 Players Per Team.\r\n• Map Wipe 1st Thursday Of The Month 19:00 GMT, New Map Every Wipe",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780216200,
    "last_online": 1780263029,
    "icon": null,
    "name": "[EU] Balboa's World 2x Monthly|Solo/Duo|No BP Wipe|Noob Friendl",
    "connect": "173.234.137.174:28215",
    "request": "173.234.137.174:28216",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1780216200,
    "last_update": 1780263029,
    "banned": false,
    "wipe": 1778179938,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2584,
    "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/11677277");
$data = json_decode($json, true);
var_dump($data);