Alliances
curl --request GET \
--url https://data.flightportrait.com/v1/alliancesimport requests
url = "https://data.flightportrait.com/v1/alliances"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data.flightportrait.com/v1/alliances', 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/alliances",
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/alliances"
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/alliances")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.flightportrait.com/v1/alliances")
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{
"alliances": [
{
"slug": "star-alliance",
"name": "Star Alliance",
"website_url": "https://www.staralliance.com",
"source_url": "https://www.staralliance.com/members",
"source_checked_at": "2026-08-29",
"n_members": 25,
"n_members_observed": 20,
"n_airlines": 26,
"n_routes": 4200,
"n_legs": 3100,
"n_flights": 90000,
"n_countries": 120,
"n_airframes": 2400
}
]
}{
"error": "rate_limited",
"detail": "slow down"
}Reference
Alliances
Global alliances and how much of each we have observed. Member counts are official. Route, flight, and airframe counts are observed lower bounds. Rate: 300 per 600 s (bucket refdata). Cache: 1 h edge.
GET
/
v1
/
alliances
Alliances
curl --request GET \
--url https://data.flightportrait.com/v1/alliancesimport requests
url = "https://data.flightportrait.com/v1/alliances"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data.flightportrait.com/v1/alliances', 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/alliances",
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/alliances"
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/alliances")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.flightportrait.com/v1/alliances")
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{
"alliances": [
{
"slug": "star-alliance",
"name": "Star Alliance",
"website_url": "https://www.staralliance.com",
"source_url": "https://www.staralliance.com/members",
"source_checked_at": "2026-08-29",
"n_members": 25,
"n_members_observed": 20,
"n_airlines": 26,
"n_routes": 4200,
"n_legs": 3100,
"n_flights": 90000,
"n_countries": 120,
"n_airframes": 2400
}
]
}{
"error": "rate_limited",
"detail": "slow down"
}Response
OK