API für Valve Counter-Strike 2 south_africa Server (srcds1026-jnb1.213.

JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/5964476
json
{
  "response": {
    "steam_id": "90284231741773846",
    "domain": null,
    "id": 5964476,
    "ip": "155.133.238.35",
    "port": 27160,
    "query": 27160,
    "color": 0,
    "city": "Johannesburg",
    "description": null,
    "game": 730,
    "owner": null,
    "boosts": 1,
    "last_offline": 1773701522,
    "score": 0,
    "last_online": 1775943067,
    "icon": null,
    "name": "Valve Counter-Strike 2 south_africa Server (srcds1026-jnb1.213.",
    "connect": "155.133.238.35:27160",
    "request": "155.133.238.35:27160",
    "map": "graphics_settings",
    "gamemode": "Counter-Strike 2",
    "version": "1.41.4.1",
    "numplayers": 0,
    "maxplayers": 64,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "ZA",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1726414221,
    "last_update": 1775943067,
    "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": 8051,
    "language": "en",
    "parked": false,
    "app": {
      "id": 2,
      "steam_id": 730,
      "name": "Counter-Strike 2",
      "url": "counter-strike-2"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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