JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/10986834
json
{
  "response": {
    "steam_id": "90284406194868246",
    "domain": null,
    "id": 10986834,
    "ip": "160.202.254.161",
    "port": 9876,
    "query": 9877,
    "color": 0,
    "city": "Shiyan",
    "description": null,
    "game": 1604030,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776423820,
    "score": 0,
    "last_online": 1776453142,
    "icon": null,
    "name": "[Moon]4.14[pvp练习]",
    "connect": "160.202.254.161:9876",
    "request": "160.202.254.161:9877",
    "map": "VRisingWorld",
    "gamemode": "0d03957c-4270-48ec-8f04-33ad4320431a",
    "version": "0.0.0.1",
    "numplayers": 0,
    "maxplayers": 120,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1769902657,
    "last_update": 1776453142,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1928,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 55075,
      "steam_id": 1604030,
      "name": "V Rising",
      "url": "v-rising"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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