JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/805902
json
{
  "response": {
    "fps": 205,
    "fps_avg": 203,
    "entities_count": 94513,
    "world_seed": 45678934,
    "world_size": 4000,
    "steam_id": "90286568540515333",
    "domain": null,
    "id": 805902,
    "ip": "45.92.36.104",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Maidenhead",
    "description": "We are a relaxed server with rules in place to promote a chilled-out environment\r\n\r\nJoin our Discord! Go to https://discord.gg/99P4H5r8cX or type /discord in chat for a copy/pastable link!\r\n\r\nServer Info:\r\nMap + BP wipe: Monthly - next wipe Thursday 2nd April\r\nTeam size limit: 3     Gather rate: 3x     Stack sizes: 5x\r\nExtra loot in crates & barrels (except Bradley & Heli)\r\nCraft time (except explosives), smelting speed, decay speed & base upkeep all reduced by 50%\r\n\r\nSelected plugins: AutoPlant, BGrade, BuildingWorkbench, Backpacks, ExtendedRecycler, NPCTaxi, GUIShop, SpawnMini, Skinbox, Sign Artist, SortButton & more!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780592003,
    "last_online": 1780519829,
    "icon": null,
    "name": "00_merlin_Solo",
    "connect": "45.92.36.104:28015",
    "request": "45.92.36.104:28016",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1684353922,
    "last_update": 1780592003,
    "banned": false,
    "wipe": 1780514747,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10197,
    "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/805902");
$data = json_decode($json, true);
var_dump($data);