API для CrankCity | Play
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1789921181,
"app": {
"id": 5,
"name": "Counter-Strike: Source",
"steam_id": 240,
"url": "counter-strike-source"
},
"color": 0,
"connect": "188.165.184.118:36929",
"country": "FR",
"domain": null,
"game": 240,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 16806874,
"ip": "188.165.184.118",
"language": "fr",
"last_update": 1789931385,
"map": "de_dust",
"maxplayers": 64,
"name": "CrankCity | Play",
"numplayers": 0,
"official": null,
"points": 70,
"port": 36929,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 36929,
"request": "188.165.184.118:36929",
"secured": true,
"status": false,
"steam_id": "90293102003872770",
"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": 1789931385,
"last_online": 1789923415,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 133,
"wipe_period": null,
"coop": "0",
"sv_tags": "friendlyfire",
"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/16806874");
$data = json_decode($json, true);
var_dump($data);