Return online ATC positions. You can filter output by using REGEX to get specific positions. Output is a JSON string.
Output fields:
info
: key will contain value found
that will display total number of matched positionsresult
: will contain found positions and their detailsUsage
Endpoint: /atc
Request method: GET
Headers:
Header parameter | Description | |
---|---|---|
X-API-Key |
Your unique API key | |
filter |
REGEX-string that will be applied to filter output. If not set - will return all online positions. Refer to manual to get familiar with Python regular expressions. You can also test your expression here. |
Example request:
Python
import requests
url = "https://api.vacc-ua.org/api/atc"
headers = {
'X-API-Key': "123456",
'filter': "^UK.._.+$",
'Cache-Control': "no-cache"
}
response = requests.request("GET", url, headers=headers)
print(response.text)
PHP
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_PORT => "443",
CURLOPT_URL => "https://api.vacc-ua.org/api/atc",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"Cache-Control: no-cache",
"X-API-Key: 123456",
"filter: ^UK.._.+$"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
Example response:
{
"info": {
"found": 1
},
"result": {
"UKBB_GND": {
"cid": 1474225,
"name": "Maxym Dovzhenko",
"callsign": "UKBB_GND",
"frequency": "118.050",
"facility": 3,
"rating": 2,
"server": "GERMANY-1",
"visual_range": 16,
"text_atis": [
"Borispil Ground / Áîðèñïîëü Ðóëåíèå",
"ATIS Information freq 126.70"
],
"last_updated": "2021-04-08T21:17:47.3705616Z",
"logon_time": "2021-04-08T20:20:41.9040642Z"
}
}
}