API для Counter-Strike: Source
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1788554011,
"app": {
"id": 5,
"name": "Counter-Strike: Source",
"steam_id": 240,
"url": "counter-strike-source"
},
"color": 0,
"connect": "81.166.111.109:27019",
"country": "NO",
"domain": null,
"game": 240,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 14559705,
"ip": "81.166.111.109",
"language": "no",
"last_update": 1790376103,
"map": "surf_ski_2",
"maxplayers": 16,
"name": "Counter-Strike: Source",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27019,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27019,
"request": "81.166.111.109:27019",
"secured": true,
"status": false,
"steam_id": "90291239951440914",
"version": "9540945",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Хаугезунд",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1790376103,
"last_online": 1790115787,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 2504,
"wipe_period": null,
"os": "l",
"region": 255,
"product": "cstrike",
"gametype": "bunnyhopping",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14559705");
$data = json_decode($json, true);
var_dump($data);