Retrieve information about commercial airlines, including IATA/ICAO codes, callsigns, and country of registration.
Standards Used
- IATA
- ICAO
- ISO 3166-1
Identifier Lookup#
Airlines can be looked up by IATA code, ICAO code, or name. IATA codes are the primary identifier; not all airlines have ICAO codes (primarily regional or cargo carriers).
The Airline object#
| Field | Type | Required | Description |
|---|---|---|---|
| callsign | string | No | Radio telephony callsign. Example: AMERICAN |
| country | string | Yes | Country of registration (alpha-2 code). Example: US |
| iata | string | Yes | IATA two-letter airline code. Example: AA |
| icao | string | No | ICAO three-letter airline code. Example: AAL |
| name | string | Yes | Airline name. Example: American Airlines |
Endpoints#
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| pagequery | integer | No | Page number (1-indexed). Example: 1 |
| per_pagequery | integer | No | Number of results per page (1-100). Example: 20 |
Response
| Field | Type | Required | Description |
|---|---|---|---|
| data | object[] | Yes | The data items for this page. |
| pagination | object | Yes | Pagination metadata in response. |
| page | integer | Yes | Current page number. Example: 1 |
| per_page | integer | Yes | Items per page. Example: 20 |
| total_items | integer | Yes | Total number of items. Example: 100 |
| total_pages | integer | Yes | Total number of pages. Example: 5 |
Example Request
const response = await fetch(
'https://worlddataapi.com/v1/airlines?page=1&per_page=20',
{
headers: {
'X-API-Key': 'YOUR_API_KEY'
}
}
);
const data = await response.json();import requests
response = requests.get(
'https://worlddataapi.com/v1/airlines',
params={
'page': 'eyJpZCI6MTB9',
'per_page': 'eyJpZCI6MTB9'
},
headers={
'X-API-Key': 'YOUR_API_KEY'
}
)
data = response.json()curl "https://worlddataapi.com/v1/airlines?page=1&per_page=20"
-H "X-API-Key: YOUR_API_KEY"Error Responses
| Status | Description |
|---|---|
| 429 | Rate limit exceeded |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| identifierpath | string | Yes | IATA (2 letters), ICAO (3 letters), or airline name |
Response
| Field | Type | Required | Description |
|---|---|---|---|
| callsign | string | No | Radio telephony callsign. Example: AMERICAN |
| country | string | Yes | Country of registration (alpha-2 code). Example: US |
| iata | string | Yes | IATA two-letter airline code. Example: AA |
| icao | string | No | ICAO three-letter airline code. Example: AAL |
| name | string | Yes | Airline name. Example: American Airlines |
Example Request
const response = await fetch(
'https://worlddataapi.com/v1/airlines/example',
{
headers: {
'X-API-Key': 'YOUR_API_KEY'
}
}
);
const data = await response.json();import requests
response = requests.get(
'https://worlddataapi.com/v1/airlines/example',
headers={
'X-API-Key': 'YOUR_API_KEY'
}
)
data = response.json()curl "https://worlddataapi.com/v1/airlines/example"
-H "X-API-Key: YOUR_API_KEY"Error Responses
| Status | Description |
|---|---|
| 404 | Airline not found |