JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/4984693
json
{
  "response": {
    "fps": 66,
    "fps_avg": 66,
    "entities_count": 194049,
    "world_seed": 304866847,
    "world_size": 4500,
    "steam_id": "90286752292254744",
    "domain": null,
    "id": 4984693,
    "ip": "188.64.33.62",
    "port": 28017,
    "query": 28015,
    "project_id": null,
    "color": 0,
    "city": "Coventry",
    "description": "![Art of Rust - Official dedicated art server](https://i.postimg.cc/8cJrySQF/artofrust1-copy-NEW1.png)\nWelcome to the official Art of Rust!\r\n\r\nThis is a dedicated art and creative building server focused on painting and creativity, We regularly hold art classes and host a monthly server tour to check out all the wonderful builds everyone makes throughout the monthly wipe. \r\nJoin our growing community by clicking the ‘EXTERNAL WEBSITE’ button below.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780594464,
    "last_online": 1780942829,
    "icon": null,
    "name": "Art of Rust - Official dedicated art server",
    "connect": "188.64.33.62:28017",
    "request": "188.64.33.62:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 13,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 66,
    "add_date": 1720204198,
    "last_update": 1780942829,
    "banned": false,
    "wipe": 1780594949,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1204,
    "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/4984693");
$data = json_decode($json, true);
var_dump($data);