JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/3024295
json
{
  "response": {
    "fps": 144,
    "fps_avg": 140,
    "entities_count": 38131,
    "world_seed": 578369846,
    "world_size": 3500,
    "steam_id": "90284802333918238",
    "domain": null,
    "id": 3024295,
    "ip": "129.232.154.36",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Cape Town",
    "description": "![NooBhub Solo||Duo||Trio](https://i.ibb.co/9g3BKwf/banner.png)\nWelcome To NooBhub\r\nA Full set of Rules can be found in info tab ingame.\r\nIf you not willing to read the rules,You not willing to play here.\r\n\r\nBut 3 Main Rules always apply\r\n 1. Be kind\r\n 2. Dont Grief\r\n 3. Dont Be a Dick \r\n\r\nHave Fun!!!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776847399,
    "score": null,
    "last_online": 1776877824,
    "icon": null,
    "name": "NooBhub Solo||Duo||Trio",
    "connect": "129.232.154.36:28015",
    "request": "129.232.154.36:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "ZA",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1708077584,
    "last_update": 1776877824,
    "banned": false,
    "wipe": 1776428128,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3182,
    "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/3024295");
$data = json_decode($json, true);
var_dump($data);