Airports

Retrieve information about airports worldwide, including IATA/ICAO codes, coordinates, and elevation.

Standards Used

  • IATA
  • ICAO
  • IANA TZDB
  • ISO 3166-1
  • ISO 3166-2

Units#

Elevation is returned in meters, not feet. While aviation often uses feet, meters aligns with SI units and our coordinate data.

The Airport object#

FieldTypeRequiredDescription
countrystringYesCountry (alpha-2 code).
Example: US
elevationinteger (int32)YesElevation in meters.
Example: 4
iatastringYesIATA three-letter code.
Example: JFK
icaostringNoICAO four-letter code.
Example: KJFK
latitudenumber (double)YesLatitude in decimal degrees.
Example: 40.6413
longitudenumber (double)YesLongitude in decimal degrees.
Example: -73.7781
namestringYesAirport name.
Example: John F. Kennedy International Airport
regionstringNoRegion (ISO 3166-2 code).
Example: US-NY
timezonestringYesIANA timezone.
Example: America/New_York

Endpoints#

Query Parameters

ParameterTypeRequiredDescription
countryquerystringNoFilter by country (alpha-2 code).
Example: US
regionquerystringNoFilter by region (ISO 3166-2 code).
Example: US-CA
pagequeryintegerNoPage number (1-indexed).
Example: 1
per_pagequeryintegerNoNumber of results per page.
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/airports?country=US&region=US-CA',
  {
    headers: {
      'X-API-Key': 'YOUR_API_KEY'
    }
  }
);

const data = await response.json();

Error Responses

StatusDescription
400Missing country or region parameter
404Country or region not found
429Rate limit exceeded

Path Parameters

ParameterTypeRequiredDescription
identifierpathstringYesIATA (3 letters) or ICAO (4 letters) airport code

Response

FieldTypeRequiredDescription
countrystringYesCountry (alpha-2 code).
Example: US
elevationinteger (int32)YesElevation in meters.
Example: 4
iatastringYesIATA three-letter code.
Example: JFK
icaostringNoICAO four-letter code.
Example: KJFK
latitudenumber (double)YesLatitude in decimal degrees.
Example: 40.6413
longitudenumber (double)YesLongitude in decimal degrees.
Example: -73.7781
namestringYesAirport name.
Example: John F. Kennedy International Airport
regionstringNoRegion (ISO 3166-2 code).
Example: US-NY
timezonestringYesIANA timezone.
Example: America/New_York

Example Request

const response = await fetch(
  'https://worlddataapi.com/v1/airports/example',
  {
    headers: {
      'X-API-Key': 'YOUR_API_KEY'
    }
  }
);

const data = await response.json();

Error Responses

StatusDescription
404Airport not found