API для Counter-Strike
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794679919,
"app": {
"id": 3,
"name": "Counter-Strike",
"steam_id": 10,
"url": "counter-strike"
},
"color": 0,
"connect": "46.214.126.85:27015",
"country": "RO",
"domain": null,
"game": 10,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20125321,
"ip": "46.214.126.85",
"language": "ro",
"last_update": 1794887769,
"map": "de_dustyaztec",
"maxplayers": 32,
"name": "Counter-Strike",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27015,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "46.214.126.85:27015",
"secured": false,
"status": false,
"steam_id": "90297470426438676",
"version": "1.1.2.7",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Floreşti",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794887769,
"last_online": 1794679872,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 99836,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "cstrike",
"gametype": null,
"dedicated": false
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20125321");
$data = json_decode($json, true);
var_dump($data);