Counter-Strike 2
API für ██ ★ legcs2.ru ★
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/3731710json
{
"response": {
"steam_id": null,
"domain": null,
"id": 3731710,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "St Petersburg",
"description": "[{\"id\":\"ys9ob6mkk\",\"type\":\"image\",\"data\":{\"caption\":\"Description\",\"withBorder\":false,\"withBackground\":false,\"stretched\":true,\"file\":{\"url\":\"https://sun9-6.userapi.com/impf/l1zxT1rwVXSzPMtBvoYQfN10l7AxsjVRTkWYyg/6wZP0ge1GNI.jpg?size=1920x768&quality=95&crop=0,0,1920,767&sign=2805f6c0021887c0a7192be0167b9de8&type=cover_group\"}}},{\"id\":\"go41wdc3q\",\"type\":\"paragraph\",\"data\":{\"text\":\"🍀 Наш сайт: legacybattle.ru\\n🍀 Наш дискорд: discord.gg/legacybattle\"}},{\"id\":\"a8dyq5lo6\",\"type\":\"paragraph\",\"data\":{\"text\":\"Плюсы нашего проекта?\\n✅Приятная атомсфера\\n✅Отзывчивая, добрая и адекватная администрация\\n✅Розыгрыши\\n✅Интересные карты\\n✅Сервер без лагов и вылетов\"}}]",
"game": 730,
"owner": 60598,
"boosts": 1,
"last_offline": 1765846823,
"score": 5,
"last_online": 1764968411,
"icon": null,
"name": "██ ★ legcs2.ru ★",
"connect": null,
"request": null,
"map": "awp1",
"gamemode": "Counter-Strike 2",
"version": null,
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1712510992,
"last_update": 1765846823,
"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": 14042,
"language": "ru",
"parked": true,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": {
"username": "offer6923",
"avatar": "c770ff3e-b24e-420a-a27c-a9c9167411d5.jpg",
"last_online": 1738310938
},
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/3731710");
$data = json_decode($json, true);
var_dump($data);