JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/739567
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 56036,
    "world_seed": 1337,
    "world_size": 3000,
    "steam_id": "90286581220530203",
    "domain": null,
    "id": 739567,
    "ip": "212.227.51.185",
    "port": 28016,
    "query": 28017,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "![[EU/NL] DutchRust Vanilla | Original](http://5.9.101.147/rust/dutch1.png)\nWelcome at DutchRust.\r\n- Server is vanilla\r\n- We keep our rules simple and allow you to play the game how you see fit\r\n- However no racism of any kind is tolerated\r\n- Discord: XC9rdA6\r\n- No max teamsize\r\n- No cheats or hacks (steam check)\r\n- Chat language: Dutch or English\r\n- The Server will be mapwiped Biweekly.\r\n- dutchrustserver.nl",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780233854,
    "last_online": 1780569027,
    "icon": null,
    "name": "[EU/NL] DutchRust Vanilla | Original",
    "connect": "212.227.51.185:28016",
    "request": "212.227.51.185:28017",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1675099748,
    "last_update": 1780569027,
    "banned": false,
    "wipe": 1779386291,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1344,
    "language": "de",
    "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/739567");
$data = json_decode($json, true);
var_dump($data);