JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/479582
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 12428,
    "world_seed": 1337,
    "world_size": 6000,
    "steam_id": "90286592733156352",
    "domain": null,
    "id": 479582,
    "ip": "208.52.152.170",
    "port": 28034,
    "query": 28035,
    "color": 0,
    "city": "Dallas",
    "description": "![Tommygun's Escape From Rust | US | Solo Duo | Aim Train | EFR](https://cdn.discordapp.com/attachments/1102135134758645782/1102153311752298516/EFR_titlescreen.jpg)\nESCAPE FROM RUST\r\n\r\nGear up for a two-week arms race where you climb the food-chain and risking your hard-earned gains to get ahead!\r\n\r\nFeatures full recreations of classic Escape From Tarkov maps such as Customs and Factory.\r\nNo scav-cooldown / free basic kits all day!\r\n\r\ndiscord.gg/tommygun",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779502413,
    "last_online": 1780583442,
    "icon": null,
    "name": "Tommygun's Escape From Rust | US | Solo Duo | Aim Train | EFR",
    "connect": "208.52.152.170:28034",
    "request": "208.52.152.170:28035",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1637450601,
    "last_update": 1780583442,
    "banned": false,
    "wipe": 1780574830,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2437,
    "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/479582");
$data = json_decode($json, true);
var_dump($data);