JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/10870951
json
{
  "response": {
    "fps": 30,
    "fps_avg": 25,
    "entities_count": 3869,
    "world_seed": 0,
    "world_size": 1000,
    "steam_id": "90286589121290269",
    "domain": null,
    "id": 10870951,
    "ip": "40.160.20.99",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Reston",
    "description": "![RustGames.gg Lobby 1](https://assets.rustgames.gg/BRANDING/Server_Banner.png)\nWelcome to the RustGames.gg minigame network!\r\n\r\nRules:\r\n• No cheating, scripting, exploiting, or bug abuse.\r\n• No harassment, hate speech, threats, or excessive toxicity.\r\n• No spam, advertising, or impersonation.\r\n• Respect staff decisions and other players.\r\n• Do not intentionally disrupt games, lobbies, queues, or events.\r\n\r\nThis server description only includes the basic rules.\r\nThe full rules, updates, support, appeals, and announcements are available in our Discord.\r\n\r\nJoin the Discord for the complete rule list:\r\nrustgames.gg/discord",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775157138,
    "last_online": 1780575629,
    "icon": null,
    "name": "RustGames.gg Lobby 1",
    "connect": "40.160.20.99:28015",
    "request": "40.160.20.99:28016",
    "map": "RustGames.gg",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 13,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 64,
    "add_date": 1768318493,
    "last_update": 1780575629,
    "banned": false,
    "wipe": 1778487354,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 847,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "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/10870951");
$data = json_decode($json, true);
var_dump($data);