JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11261238
json
{
  "response": {
    "fps": 167,
    "fps_avg": 167,
    "entities_count": 84851,
    "world_seed": 1419182944,
    "world_size": 3500,
    "steam_id": "90284748780365846",
    "domain": null,
    "id": 11261238,
    "ip": "140.114.217.5",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Hsinchu",
    "description": "SERVER FEATURES:\r\n- 5x Gather Rates (Resources, Mining, Cloth)\r\n- 3x Loot Multiplier\r\n- Shared Blueprints (Team & Clan)\r\n- Fast Smelting\r\n\r\n QUALITY OF LIFE:\r\n- Workbench Radius: Build anywhere in your base\r\n- Auto-Sort: One-click chest organization\r\n- Fast Recycler: 5x recycling speed\r\n\r\n WIPE SCHEDULE:\r\n- Map Wipe: The first Thursday of every month \r\n\r\n RULES:\r\n- No cheating or scripting\r\n- Max Team Size: 4\r\n- Respect all players",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776412420,
    "score": 0,
    "last_online": 1776857416,
    "icon": null,
    "name": "[TW/ASIA] 5X | BPSHARE | FAST RECYCLE",
    "connect": "140.114.217.5:28015",
    "request": "140.114.217.5:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 7,
    "maxplayers": 25,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "TW",
    "status": true,
    "votes": 0,
    "points": 75,
    "add_date": 1774555229,
    "last_update": 1776857416,
    "banned": false,
    "wipe": 1775216522,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 436,
    "language": "zh",
    "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/11261238");
$data = json_decode($json, true);
var_dump($data);