Aircraft
curl --request GET \
--url https://data.flightportrait.com/v1/aircraftimport requests
url = "https://data.flightportrait.com/v1/aircraft"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data.flightportrait.com/v1/aircraft', 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/v1/aircraft",
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/v1/aircraft"
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/v1/aircraft")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.flightportrait.com/v1/aircraft")
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{
"now": 1787924061,
"aircraft": [
{
"hex": "76cd06",
"flight": "SIA123",
"t": "A359",
"r": "9V-SHF",
"lat": 1.5,
"lon": 103.8,
"alt_baro": 6325,
"gs": 285.9,
"track": 85.4,
"category": "A5",
"squawk": "2136",
"seen": 0.2,
"seen_pos": 1.1
}
]
}Live
Aircraft
Aircraft the network hears right now. Fields: hex, flight, t, r, lat, lon, alt_baro, gs, track, category, squawk, seen, seen_pos. 503 if the snapshot is older than 60 seconds.
GET
/
v1
/
aircraft
Aircraft
curl --request GET \
--url https://data.flightportrait.com/v1/aircraftimport requests
url = "https://data.flightportrait.com/v1/aircraft"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data.flightportrait.com/v1/aircraft', 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/v1/aircraft",
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/v1/aircraft"
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/v1/aircraft")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.flightportrait.com/v1/aircraft")
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{
"now": 1787924061,
"aircraft": [
{
"hex": "76cd06",
"flight": "SIA123",
"t": "A359",
"r": "9V-SHF",
"lat": 1.5,
"lon": 103.8,
"alt_baro": 6325,
"gs": 285.9,
"track": 85.4,
"category": "A5",
"squawk": "2136",
"seen": 0.2,
"seen_pos": 1.1
}
]
}Response
OK