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': "^EGB.+_.+$",
'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: ^EGB.+_.+$"
),
));
$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": {
"EHAM_N_GND": {
"frequency": "121.800",
"cid": "1317669",
"planned_tascruise": "0",
"server": "GERMANY2",
"altitude": "0",
"time_logon": "20180501093037",
"realname": "Roel van Schie",
"visualrange": "20",
"time_last_atis_received": "20180501094604",
"latitude": "52.30667",
"protrevision": "100",
"rating": "2",
"longitude": "4.77056",
"facilitytype": "3",
"atis_message": "$ voice1.vatsim-germany.org/eham_n_gnd^Schiphol Ground^Voice ATIS on 132.970^Charts and info www.dutchvacc.nl"
}
}
}