Airlines

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#

FieldTypeRequiredDescription
callsignstringNoRadio telephony callsign.
Example: AMERICAN
countrystringYesCountry of registration (alpha-2 code).
Example: US
iatastringYesIATA two-letter airline code.
Example: AA
icaostringNoICAO three-letter airline code.
Example: AAL
namestringYesAirline name.
Example: American Airlines

Endpoints#

Query Parameters

ParameterTypeRequiredDescription
pagequeryintegerNoPage number (1-indexed).
Example: 1
per_pagequeryintegerNoNumber of results per page (1-100).
Example: 20

Response

FieldTypeRequiredDescription
dataobject[]YesThe data items for this page.
paginationobjectYes Pagination metadata in response.
pageintegerYesCurrent page number.
Example: 1
per_pageintegerYesItems per page.
Example: 20
total_itemsintegerYesTotal number of items.
Example: 100
total_pagesintegerYesTotal 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();

Error Responses

StatusDescription
429Rate limit exceeded

Path Parameters

ParameterTypeRequiredDescription
identifierpathstringYesIATA (2 letters), ICAO (3 letters), or airline name

Response

FieldTypeRequiredDescription
callsignstringNoRadio telephony callsign.
Example: AMERICAN
countrystringYesCountry of registration (alpha-2 code).
Example: US
iatastringYesIATA two-letter airline code.
Example: AA
icaostringNoICAO three-letter airline code.
Example: AAL
namestringYesAirline 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();

Error Responses

StatusDescription
404Airline not found