Airport Directory

Airports, heliports and seaplane bases worldwide from OurAirports: IATA, ICAO and local codes, name, type, coordinates, elevation, country, region, city, scheduled airline service, website and Wikipedia links, joined with each airport's runways (length, width, surface, lighting).

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usPlaces, 25 fieldsv1.0

Data from davidmegginson.github.io/ourairports-data/

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Searchoptional
Words in the airport's name, city or other names, such as Toronto or Heathrow; each word must match the start of a word.
Example: Toronto
Codesoptional
IATA or ICAO codes, such as ["YYZ", "CYTZ"]; local and GPS codes also work when no airport has that IATA or ICAO code. One per line, or separated by commas.
Example: YYZ, CYTZ
Countryoptional
Only airports in this country, as a two-letter code such as CA.
Example: CA
Regionoptional
Only airports in this province or state, as an ISO 3166-2 code such as CA-ON or US-NY.
Example: CA-ON
Typesoptional
Kinds of places to return; empty for every kind except closed airports. One per line, or separated by commas.
Scheduled service onlyoptional
Only airports with scheduled airline service.
Include runwaysoptional
Add each airport's runways with length, width, surface, lighting and heading.

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/airport-directory/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/airport-directory/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"search":"Toronto"},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

searchtext
Words in the airport's name, city or other names, such as Toronto or Heathrow; each word must match the start of a word.
example: Toronto
codeslist
IATA or ICAO codes, such as ["YYZ", "CYTZ"]; local and GPS codes also work when no airport has that IATA or ICAO code.
example: YYZ, CYTZ
countrytext
Only airports in this country, as a two-letter code such as CA.
example: CA
regiontext
Only airports in this province or state, as an ISO 3166-2 code such as CA-ON or US-NY.
example: CA-ON
typeslist
Kinds of places to return; empty for every kind except closed airports.
example: large_airportone of: large_airport, medium_airport, small_airport, heliport, seaplane_base, balloonport, closed
scheduled_service_onlyyes/no
Only airports with scheduled airline service.
default: falseexample: true
include_runwaysyes/no
Add each airport's runways with length, width, surface, lighting and heading.
default: trueexample: true

What's in each record

25 fields: 24 here, 1 technical one under Technical details.

Basics

  • Ident

    OurAirports' code for the place: the ICAO code when there is one, otherwise a local or made-up code.

    Example CYYC

  • Iata code

    Three-letter IATA code used on tickets, such as YYZ.

    Example YYC

  • Icao code

    Four-letter ICAO code, such as CYYZ.

    Example CYYC

  • GPS code

    Code used in GPS units and flight planning.

    Example CYYC

  • Local code

    National code, such as the FAA code in the United States.

    Example CYEG

  • Name

    Name of the airport, heliport or seaplane base.

    Example Calgary International Airport

  • Type

    Kind of place: large_airport, medium_airport, small_airport, heliport, seaplane_base, balloonport or closed.

    Example large_airport

  • Elevation ft

    Elevation above sea level in feet.

    Example 3,557

  • Continent

    Continent code: AF, AN, AS, EU, NA, OC or SA.

    Example NA

  • Municipality

    City or town the place serves.

    Example Calgary

  • Has scheduled service

    Yes when airlines fly scheduled service from it.

    Example Yes

  • Keywords

    Other names and codes people use for it, such as YTO or Malton.

    Example McCall Field

  • Runways count

    Number of runways that are not closed; filled with include_runways.

    Example 3

  • Longest runway ft

    Length of the longest runway that is not closed, in feet; filled with include_runways.

    Example 14,000

  • Runways

    Runways, longest first, each with designation (such as 05/23), length_ft, width_ft, surface, is_lighted, is_closed and heading_deg.

    Example 2 items: {} | {}

Location

  • Latitude

    Latitude of the place, for a map.

    Example 51.118822

  • Longitude

    Longitude of the place, for a map.

    Example -114.009933

  • Country code

    Two-letter country code, such as CA.

    Example CA

  • Country

    Country name in English.

    Example Canada

  • Region code

    Province or state as an ISO 3166-2 code, such as CA-ON.

    Example CA-AB

  • Region

    Province or state name, such as Ontario.

    Example Alberta

Technical detailsField names and types for developers, and the 1 field hidden above

Hidden by default

This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.

  • ID idOurAirports' own number for the place.

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
urllinkLink3 of 3
identtextIdent3 of 3
iata_codetextIata code3 of 3
icao_codetextIcao code3 of 3
gps_codetextGPS code3 of 3
local_codetextLocal code1 of 3
nametextName3 of 3
typetextType3 of 3
latitudenumberLatitude3 of 3
longitudenumberLongitude3 of 3
elevation_ftnumberElevation ft3 of 3
continenttextContinent3 of 3
country_codetextCountry code3 of 3
countrytextCountry3 of 3
region_codetextRegion code3 of 3
regiontextRegion3 of 3
municipalitytextMunicipality3 of 3
has_scheduled_serviceyes or noHas scheduled service3 of 3
websitelinkWebsite3 of 3
wikipedia_urllinkWikipedia link3 of 3
keywordslistKeywords2 of 3
runways_countnumberRunways count3 of 3
longest_runway_ftnumberLongest runway ft3 of 3
runwayslistRunways3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordNameIdentIata codeIcao codeGPS codeLocal codeTypeElevation ftContinentMunicipalityHas scheduled serviceKeywordsRunways countLongest runway ftRunwaysLatitudeLongitudeCountry codeCountryRegion codeRegionLinkWebsiteWikipedia link
1Calgary International AirportCYYCYYCCYYCCYYC—large_airport3,557NACalgaryYesMcCall Field314,0004 items: Designation: 17L/35R · Length ft: 14000 · Width ft: 200 | Designation: 17R/35L · Length ft: 12675 · Width ft: 20051.118822-114.009933CACanadaCA-ABAlbertaourairports.com/airports/CYYC/calgaryairport.comen.wikipedia.org/wiki/Calgary_International_Airport
2Edmonton International AirportCYEGYEGCYEGCYEGCYEGlarge_airport2,373NAEdmontonYes—211,0002 items: Designation: 02/20 · Length ft: 11000 · Width ft: 200 | Designation: 12/30 · Length ft: 10200 · Width ft: 20053.3097-113.580002CACanadaCA-ABAlbertaourairports.com/airports/CYEG/edmontonairports.comen.wikipedia.org/wiki/Edmonton_International_Airport
3Halifax / Stanfield International AirportCYHZYHZCYHZCYHZ—large_airport477NAHalifaxYesRobert L. Stanfield International Airport210,5002 items: Designation: 05/23 · Length ft: 10500 · Width ft: 200 | Designation: 14/32 · Length ft: 7700 · Width ft: 20044.880798-63.508598CACanadaCA-NSNova Scotiaourairports.com/airports/CYHZ/hiaa.caen.wikipedia.org/wiki/Halifax_International_Airport

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • The data comes from OurAirports (ourairports.com), a volunteer-edited open dataset in the public domain. It is refreshed daily but comes with no guarantee of accuracy and must not be used for navigation.
  • Codes, websites and cities are often empty for small airfields and heliports: about 9,000 of the 86,000 places have an IATA code and about 11,000 an ICAO code.
  • Closed airports are left out unless types includes closed, and entries OurAirports marks as duplicates are always left out.
  • Every run reads the whole worldwide table (about 13 MB, plus 4 MB of runways), so even a one-airport lookup takes 10 to 20 seconds and sometimes longer; turn include_runways off when you do not need runways.
  • At most 10,000 records per run, larger airports first; narrow by country, region or type to reach the rest.
  • Runway lengths and widths are in feet, and surfaces are the codes volunteers entered (ASP, CON, TURF, GRVL and so on).

Version history

A run uses the live version unless the request names another one with version.