JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11143012
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 11143012,
    "ip": "194.87.94.172",
    "port": 7777,
    "query": 7777,
    "project_id": null,
    "color": 0,
    "city": "Korolyov",
    "description": null,
    "game": 9000035,
    "owner": 168663,
    "boosts": 1,
    "last_offline": 1777750342,
    "last_online": 1780722034,
    "icon": null,
    "name": "EjNET-RP server [0.3.7]",
    "connect": "194.87.94.172:7777",
    "request": "194.87.94.172:7777",
    "map": "San Andreas",
    "gamemode": "EjNET Rp v7.2.1 Russia",
    "version": "0.3.7-R2",
    "numplayers": 0,
    "maxplayers": 500,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1771081200,
    "last_update": 1780722034,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": true,
    "hide_address": false,
    "hide_query": false,
    "position_game": 37,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 168,
      "steam_id": 9000035,
      "name": "Samp",
      "url": "samp"
    },
    "server_owner": {
      "username": "johnsmithejnet",
      "avatar": "ae8e51ad-1228-47aa-8920-e41c17a08944.png"
    },
    "mods": [
      {
        "id": 2136,
        "name": "EjNET RP v7.2.1"
      }
    ],
    "disabled_modules": []
  }
}

Codebeispiele

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