JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11189623
json
{
  "response": {
    "fps": 126,
    "fps_avg": 127,
    "entities_count": 97746,
    "world_seed": 1460478867,
    "world_size": 4250,
    "steam_id": "90284791457849347",
    "domain": null,
    "id": 11189623,
    "ip": "103.193.81.11",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "Sydney",
    "description": "![RustyCore 2x | Monthly | Noob Friendly](https://imgur.com/RqXd7cH.png)\nBP Wipe - Monthly - Force Wipe\r\n\r\n\r\n› Noob Friendly\r\n› 2x Loot\r\n› 50% Upkeep\r\n\r\nRules:\r\n› No cheating\r\n› No exploiting of any kind \r\n› No recent VAC or game banned accounts (Under 90 days)\r\n› No ban evading alts\r\n› No racism/hate speech",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776820396,
    "score": 0,
    "last_online": 1776828624,
    "icon": null,
    "name": "RustyCore 2x | Monthly | Noob Friendly",
    "connect": "103.193.81.11:28080",
    "request": "103.193.81.11:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1772699062,
    "last_update": 1776828624,
    "banned": false,
    "wipe": 1775198841,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4759,
    "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/11189623");
$data = json_decode($json, true);
var_dump($data);