JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11511761
json
{
  "response": {
    "fps": 142,
    "fps_avg": 141,
    "entities_count": 28012,
    "world_seed": 1,
    "world_size": 3000,
    "steam_id": "90286496272257037",
    "domain": null,
    "id": 11511761,
    "ip": "168.100.161.97",
    "port": 28169,
    "query": 28166,
    "color": 0,
    "city": "London",
    "description": "![ELUROTH: Rust & Glory | Medieval PvP | Monthly | EUROPE MAP](https://i.postimg.cc/j2cmkSLT/eluroth-logo-03-head.jpg)\nELUROTH: RUST & GLORY \r\n----------------------------------\r\n[ Primitive Medieval PvP | Europe Map ]\r\n\r\nNo Guns. No Tech Tree. No Shortcuts.\r\nSteel and skill decide your fate.\r\n\r\nMODS & FEATURES:\r\n* Custom Medieval Europe Map\r\n* Bows, Swords & Spears Only\r\n* Naval Combat & Coastal Warfare\r\n* Clans, Kingdoms & Territory Control\r\n* NPC-Guarded Monuments\r\n* In-game Team Finder (LFG/LFM)\r\n\r\nExperience hardcore, skill-based PvP in a world where the loudest sound is the clash of shields.\r\n\r\nMONTHLY WIPES | Steel Decides.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779502413,
    "last_online": 1780602835,
    "icon": null,
    "name": "ELUROTH: Rust & Glory | Medieval PvP | Monthly | EUROPE MAP",
    "connect": "168.100.161.97:28169",
    "request": "168.100.161.97:28166",
    "map": "Custom Map",
    "gamemode": "Primitive",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 10,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779353864,
    "last_update": 1780602835,
    "banned": false,
    "wipe": 1778316524,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4902,
    "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/11511761");
$data = json_decode($json, true);
var_dump($data);