JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11488243
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 11488243,
    "ip": "210.246.215.173",
    "port": 7777,
    "query": 7777,
    "color": 0,
    "city": "Pak Kret",
    "description": null,
    "game": 1766060,
    "owner": 185955,
    "boosts": 1,
    "last_offline": 1775920334,
    "score": 0,
    "last_online": 1776440416,
    "icon": null,
    "name": "Thailand TH Newbie Friendly Settings Easy",
    "connect": "210.246.215.173:7777",
    "request": "210.246.215.173:7777",
    "map": "Main Map",
    "gamemode": null,
    "version": null,
    "numplayers": 3,
    "maxplayers": 8,
    "bots": 0,
    "secured": null,
    "private": null,
    "country": "TH",
    "status": true,
    "votes": 0,
    "points": 84,
    "add_date": 1775452664,
    "last_update": 1776440416,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 1,
    "pvp": 0,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10,
    "language": "th",
    "parked": false,
    "app": {
      "id": 1531516,
      "steam_id": 1766060,
      "name": "HumanitZ",
      "url": "humanitz"
    },
    "server_owner": {
      "username": "f678667776",
      "avatar": "no.jpg",
      "last_online": 1775526370
    },
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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