API для *Drive* -=Solncevo=-
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1789921181,
"app": {
"id": 5,
"name": "Counter-Strike: Source",
"steam_id": 240,
"url": "counter-strike-source"
},
"color": 0,
"connect": "94.23.68.241:33061",
"country": "IT",
"domain": null,
"game": 240,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 16806880,
"ip": "94.23.68.241",
"language": "it",
"last_update": 1789928992,
"map": "cs_militia",
"maxplayers": 64,
"name": "*Drive* -=Solncevo=-",
"numplayers": 0,
"official": null,
"points": 55,
"port": 33061,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 33061,
"request": "94.23.68.241:33061",
"secured": true,
"status": false,
"steam_id": "90293101796678680",
"version": "11003710",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Милан",
"description": null,
"disabled_modules": [],
"gamemode": "Counter-Strike: Source",
"hidden": false,
"last_offline": 1789928992,
"last_online": 1789924979,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 265,
"wipe_period": null,
"coop": "0",
"sv_tags": "dedicated,friendlyfire,public,registered,stats",
"nextlevel": "",
"sv_cheats": "0",
"tv_enable": "0",
"deathmatch": "1",
"listentype": "d",
"sv_alltalk": "0",
"sv_contact": "",
"environment": "l",
"mp_winlimit": "0",
"sv_password": "0",
"sv_pausable": "0",
"tv_password": "1",
"a2s_protocol": 17,
"mp_fraglimit": "0",
"mp_timelimit": "0",
"sv_specnoclip": "0",
"mp_fadetoblack": "0",
"sv_voiceenable": "1",
"mp_friendlyfire": "0",
"players_complete": true,
"tv_relaypassword": "1"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/16806880");
$data = json_decode($json, true);
var_dump($data);