JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/10571381
json
{
  "response": {
    "fps": 48,
    "fps_avg": 52,
    "entities_count": 120646,
    "world_seed": 1,
    "world_size": 4096,
    "steam_id": "90286590822397975",
    "domain": null,
    "id": 10571381,
    "ip": "66.51.96.64",
    "port": 28000,
    "query": 28001,
    "color": 0,
    "city": "Ashburn",
    "description": "RustScape Custom plugin bringing that osrs grind to Rust! \r\n Play2Win - PVE - Deep Sea PvP (Wilderness) - No Raiding -  No Griefing - Very Low Pop - Be Friendly - Remove Tool - SeverRewards - SkipNight - Custom Train Event \r\n /skills - Left click a skill shows best route for leveling. Skill progression saved through wipes. - Milestone Rewards.  - Level Up Rewards. - Agility courses. (ApeAtoll unlocks teleport).  - Plushie drops for some skilling classes.\r\nhttps://discord.gg/TpEtj7cA8g",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780091615,
    "last_online": 1780603833,
    "icon": null,
    "name": "RustScape",
    "connect": "66.51.96.64:28000",
    "request": "66.51.96.64:28001",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1762847056,
    "last_update": 1780603833,
    "banned": false,
    "wipe": 1778200091,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3799,
    "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/10571381");
$data = json_decode($json, true);
var_dump($data);