Point
curl --request GET \
--url https://data.flightportrait.com/v2/point/{lat}/{lon}/{radius}import requests
url = "https://data.flightportrait.com/v2/point/{lat}/{lon}/{radius}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data.flightportrait.com/v2/point/{lat}/{lon}/{radius}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://data.flightportrait.com/v2/point/{lat}/{lon}/{radius}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://data.flightportrait.com/v2/point/{lat}/{lon}/{radius}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://data.flightportrait.com/v2/point/{lat}/{lon}/{radius}")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.flightportrait.com/v2/point/{lat}/{lon}/{radius}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"ac": [
{
"hex": "76cd06",
"flight": "SIA123",
"lat": 1.5,
"lon": 103.8
}
],
"msg": "No error",
"now": 1787924061,
"total": 1,
"ctime": 1787924061,
"ptime": 12.4
}Live
Point
Aircraft within radius nautical miles of a point. Radius is capped at 250. Response is the common v2 envelope (ac, now, total). Fields inside ac come from the aggregator, not the /v1/aircraft allowlist. 502 if the aggregator is down.
GET
/
v2
/
point
/
{lat}
/
{lon}
/
{radius}
Point
curl --request GET \
--url https://data.flightportrait.com/v2/point/{lat}/{lon}/{radius}import requests
url = "https://data.flightportrait.com/v2/point/{lat}/{lon}/{radius}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data.flightportrait.com/v2/point/{lat}/{lon}/{radius}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://data.flightportrait.com/v2/point/{lat}/{lon}/{radius}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://data.flightportrait.com/v2/point/{lat}/{lon}/{radius}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://data.flightportrait.com/v2/point/{lat}/{lon}/{radius}")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.flightportrait.com/v2/point/{lat}/{lon}/{radius}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"ac": [
{
"hex": "76cd06",
"flight": "SIA123",
"lat": 1.5,
"lon": 103.8
}
],
"msg": "No error",
"now": 1787924061,
"total": 1,
"ctime": 1787924061,
"ptime": 12.4
}