JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11159879
json
{
  "response": {
    "modded": true,
    "fps": 72,
    "fps_avg": 79,
    "entities_count": 139303,
    "world_seed": 1337,
    "world_size": 3500,
    "steam_id": "90284726016709657",
    "domain": null,
    "id": 11159879,
    "ip": "141.11.59.200",
    "port": 10002,
    "query": 9002,
    "color": 0,
    "city": "Johannesburg",
    "description": "![Tsotsi ZA | 10X](https://www.dropbox.com/scl/fi/o8sjp6qpi6ua0vvblcbs6/10X_Chocolate_512x256.png?rlkey=stkmnwoz5vrpn6u5v929u6nps&st=j4o00783&dl=1)\nTsotsi Rust! \r\n\r\n• Team Limit: 8\r\n• Solo/Clan Ranked \r\n• King & Rulers \r\n• Bounties \r\n• PvP Events+ \r\n \r\n◈Website: www.tsotsi.club \r\n◈Discord: Discord.gg/khxYKZZXSn",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776665001,
    "score": 0,
    "last_online": 1776877820,
    "icon": null,
    "name": "Tsotsi ZA | 10X",
    "connect": "141.11.59.200:10002",
    "request": "141.11.59.200:9002",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 8,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "ZA",
    "status": true,
    "votes": 0,
    "points": 64,
    "add_date": 1772228145,
    "last_update": 1776877820,
    "banned": false,
    "wipe": 1776355351,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1288,
    "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/11159879");
$data = json_decode($json, true);
var_dump($data);