JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/2310984
json
{
  "response": {
    "fps": 174,
    "fps_avg": 174,
    "entities_count": 104943,
    "world_seed": 243760378,
    "world_size": 4500,
    "steam_id": "90284796808826891",
    "domain": null,
    "id": 2310984,
    "ip": "65.108.204.35",
    "port": 28115,
    "query": 28117,
    "color": 0,
    "city": "Helsinki",
    "description": "Do not expect anything from this server. It could be wiped or changed at any time, even right now as you are reading this!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776830599,
    "score": null,
    "last_online": 1776835219,
    "icon": null,
    "name": "Nordic Rust Development Server 25X | No Decay",
    "connect": "65.108.204.35:28115",
    "request": "65.108.204.35:28117",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 25,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FI",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1703673836,
    "last_update": 1776835219,
    "banned": false,
    "wipe": 1775185866,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2501,
    "language": "fi",
    "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/2310984");
$data = json_decode($json, true);
var_dump($data);