API для Counter-Strike: Source
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1792427182,
"app": {
"id": 5,
"name": "Counter-Strike: Source",
"steam_id": 240,
"url": "counter-strike-source"
},
"color": 0,
"connect": "27.49.10.255:27015",
"country": "PH",
"domain": null,
"game": 240,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 18698746,
"ip": "27.49.10.255",
"language": "tl",
"last_update": 1792523772,
"map": "de_dust2",
"maxplayers": 32,
"name": "Counter-Strike: Source",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27015,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "27.49.10.255:27015",
"secured": false,
"status": false,
"steam_id": "90295255504845840",
"version": "11003710",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Кесон-Сити",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1792523772,
"last_online": 1792427165,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 9537,
"wipe_period": null,
"os": "w",
"region": 255,
"product": "cstrike",
"gametype": "bots",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/18698746");
$data = json_decode($json, true);
var_dump($data);