Counter-Strike: Source
API для [v34][LEON Game Project] [Public] [18+]
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10522912json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10522912,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": null,
"game": 240,
"owner": 142332,
"boosts": 1,
"last_offline": 1764986464,
"score": 0,
"last_online": 1764069015,
"icon": null,
"name": "[v34][LEON Game Project] [Public] [18+]",
"connect": null,
"request": null,
"map": "de_inferno",
"gamemode": "Protected by Kigen's Anti-Cheat",
"version": null,
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1761549391,
"last_update": 1764986464,
"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": 1963,
"language": "ru",
"parked": true,
"app": {
"id": 5,
"steam_id": 240,
"name": "Counter-Strike: Source",
"url": "counter-strike-source"
},
"server_owner": {
"username": "krasikovmais1",
"avatar": "c2989264-1d42-4bf2-bbf7-b533e05a26a7.jpg",
"last_online": 1761924949
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10522912");
$data = json_decode($json, true);
var_dump($data);