Counter-Strike: Global Offensive
API für KZ Evolution
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/11252598json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11252598,
"ip": "185.9.145.159",
"port": 27847,
"query": 27847,
"color": 0,
"city": "Moscow",
"description": "[{\"id\":\"vNg597PnY6\",\"type\":\"paragraph\",\"data\":{\"text\":\"В данный момент это только сервер, но в будущем (при наличии отклика) планируется мини-проект по KZ, где все смогут напрыгаться вдоволь. Использую только самые популярные в СНГ карты, пилю моды и собираю фидбек. Жду всех любителей КЗ.\"}}]",
"game": 4465480,
"owner": 182009,
"boosts": 1,
"last_offline": 1776854603,
"score": 5,
"last_online": 1776929411,
"icon": null,
"name": "KZ Evolution",
"connect": "185.9.145.159:27847",
"request": "185.9.145.159:27847",
"map": "kz_spire",
"gamemode": "Counter-Strike: Global Offensive",
"version": "1.38.8.1",
"numplayers": 1,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 1,
"points": 95,
"add_date": 1774296668,
"last_update": 1776929411,
"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": 61,
"language": "ru",
"parked": false,
"app": {
"id": 1629104,
"steam_id": 4465480,
"name": "Counter-Strike: Global Offensive",
"url": "counter-strike-global-offensive"
},
"server_owner": {
"username": "vladick_gladick",
"avatar": "f92e0967-a289-4481-9356-04eea3876d2b.jpg",
"last_online": 1776860565
},
"mods": [
{
"id": 2189,
"name": "LevelRanks"
},
{
"id": 2190,
"name": "Vips"
},
{
"id": 2191,
"name": "Admin"
},
{
"id": 2188,
"name": "Shop"
},
{
"id": 2187,
"name": "CheckCheats"
},
{
"id": 2232,
"name": "skins"
},
{
"id": 2231,
"name": "ws"
},
{
"id": 2256,
"name": "KZ"
}
],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/11252598");
$data = json_decode($json, true);
var_dump($data);