JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/10973466
json
{
  "response": {
    "fps": 40,
    "fps_avg": 40,
    "entities_count": 16852,
    "world_seed": 1743453499,
    "world_size": 2000,
    "steam_id": "90285058084827141",
    "domain": null,
    "id": 10973466,
    "ip": null,
    "port": null,
    "query": null,
    "project_id": null,
    "color": 0,
    "city": "Helsinki",
    "description": "[{\"id\":\"WfqJo0uSC6\",\"type\":\"image\",\"data\":{\"caption\":\"Rust.pain | SMALL MAP | VANILLA | WIPE 28.01\",\"withBorder\":false,\"withBackground\":false,\"stretched\":false,\"file\":{\"url\":\"https://i.yapx.ru/cyGQA.png\"}}},{\"id\":\"zX_wAkFNRE\",\"type\":\"paragraph\",\"data\":{\"text\":\"Rust.Pain on BEAST hardware! i9-9900K | DDR4 RAM | SSD | 1Gbps — NO LAGS!\"}},{\"id\":\"nTXa6nv6Xt\",\"type\":\"paragraph\",\"data\":{\"text\":\"> Vanilla, small map (2000)\\n\\n> Animals, NPCs, events 100% WORK \\n\\n> Resources x1 \\n\\n> Auto-ban CHEATERS | Rust+ \\n\\n> Discord server: https://dsc.gg/rustpain  \\n\\n JUMP IN NOW — Weekly Wipe SOON!\"}},{\"id\":\"SpXk_zdOh1\",\"type\":\"paragraph\",\"data\":{\"text\":\"Rust Pain — pain for enemies only!\"}}]",
    "game": 252490,
    "owner": 164089,
    "boosts": 1,
    "last_offline": 1778306542,
    "last_online": 1777420814,
    "icon": null,
    "name": "Rust.pain | SMALL MAP | VANILLA | WIPE 24.04",
    "connect": null,
    "request": null,
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FI",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1769705281,
    "last_update": 1778306542,
    "banned": false,
    "wipe": 1777034653,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": true,
    "hide_address": true,
    "hide_query": true,
    "position_game": 13560,
    "language": "fi",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "rustpain4u",
      "avatar": "8135deef-5a63-4979-a361-a6b8c7075370.png"
    },
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/10973466");
$data = json_decode($json, true);
var_dump($data);