JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/2502609
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 120551,
    "world_seed": 0,
    "world_size": 4096,
    "steam_id": "90286605705148440",
    "domain": null,
    "id": 2502609,
    "ip": "91.229.114.2",
    "port": 28019,
    "query": 28021,
    "color": 0,
    "city": "Chicago",
    "description": "Map Wipe: Every two Thursdays @ 4pm EST\r\nBlueprint Wipe: Monthly force wipe\r\n\r\n######################################\r\n\r\nFeatures:\r\n - Fog of war map (unlock grids as you discover them)\r\n - No tech tree (find the item to research it)\r\n - Custom quests and skills themed for our server\r\n - Buy, grow, and sell drugs\r\n - Custom drug raids\r\n - Custom vehicles\r\n - Ability to wipe your blueprints whenever you want\r\n - Workbenches extend throughout your entire base\r\n - Craftable and lockable vehicles (no air wolf vendor)\r\n - Heavy npcs guarding multiple monuments, heli, and bradley\r\n - Raiding zombies and npcs\r\n - Zombie hordes\r\n - Tiered raidable bases\r\n - Tiered patrol helicopters (locked to your team when called in)\r\n - 0.5x-2x gather rates\r\n - custom loot table\r\n - Custom monuments\r\n - Cargo and oil rigs are locked to the first player/clan there\r\n - Instanced quarries and giant excavator\r\n - Auto turrets ignore players but attack npcs\r\n - Lots and lots of zombies...\r\n - Much more\r\n\r\nVIP available at vip.thelastofrust.com\r\nClick the View Webpage button to join our Discord or visit discord.thelastofrust.com",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780601069,
    "last_online": 1780649424,
    "icon": null,
    "name": "TheLastOfRust Hardcore PvE Zombie Survival",
    "connect": "91.229.114.2:28019",
    "request": "91.229.114.2:28021",
    "map": "Custom Map",
    "gamemode": "Hardcore",
    "version": "2627",
    "numplayers": 16,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 67,
    "add_date": 1705488833,
    "last_update": 1780649424,
    "banned": false,
    "wipe": 1780601086,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 784,
    "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/2502609");
$data = json_decode($json, true);
var_dump($data);