Skip to content

Aviation API

Every open airport, heliport and airfield on earth with its ICAO, IATA and local codes, coordinates, elevation, country and region, plus every runway with length, width, surface and both end headings. Public-domain data from OurAirports.

API key required OpenAPI API conventions

A complete airport and runway reference: 72,701 airports, heliports, seaplane bases and balloonports, 44,077 runways, 249 countries and 3,987 top-level regions. Each airport carries its ICAO code, IATA code and local code, its type, its latitude and longitude to five decimal places, its elevation in feet, the country and region it sits in, whether it has scheduled airline service, and how many runways it has with the length of the longest. Each runway carries its length and width in feet, its surface as recorded, whether it is lighted or closed, and the designator and true heading of both ends — so KJFK comes back with 04L/22R, 04R/22L, 13L/31R and 13R/31L, headings and all.

The source is OurAirports (ourairports.com/data), a volunteer-maintained register whose terms of use state: "All data is released to the Public Domain, and comes with no guarantee of accuracy or fitness for use." Public domain means there is no attribution requirement and no share-alike clause, so you can use these fields in a commercial product without a licence. We give OurAirports credit anyway. The register is rebuilt from the published CSV dump, which OurAirports regenerates every night; this API reloads it daily and serves responses with a one-hour cache.

What is normalised. Airfields the source marks closed — 13,585 disused strips — are not loaded, so every record here is a landing place the register still considers current. The search-engine filler in the dump (keywords, home_link, wikipedia_link) is dropped. Repeated strings are stored once: `type` and `surface` live in lookup tables and come back through a relation, country and region names and `continent` come from the countries and regions collections, and an airport row itself holds only the short codes `iso_country` ("US") and `iso_region` ("US-NY"). Radio navigation aids and airport frequencies are deliberately not published; this API is airports, runways, countries and regions.

Three questions, one request each. Every airport in Switzerland with scheduled service, biggest first: /v1/aviation/airports?iso_country=CH&scheduled_service=1&sort=-longest_runway_ft. Every runway at New York JFK, with its surface: /v1/aviation/runways?airport_ident=KJFK — or /v1/aviation/airports/KJFK for the airport itself, since the ident is the primary key. Every airfield above 10,000 feet, highest first: /v1/aviation/airports?elevation_ft__gte=10000&sort=-elevation_ft. Add &q=heathrow to search names and municipalities, type=large_airport to narrow by category, or iata_code=JFK to go straight to one airport by its IATA code.

Coverage and honesty. 1,175 large airports, 4,105 medium, 42,825 small, 23,260 heliports, 1,273 seaplane bases and 63 balloonports. 10,616 airports have an ICAO code and 9,052 have an IATA code; the rest have only a local or internal identifier, and those fields come back null rather than guessed. 60,676 have a recorded elevation and 37,420 have at least one runway on file. Nothing in this API is computed from anything but the OurAirports dump: runway_count and longest_runway_ft are counted from the runways collection itself, and every other value is the source's own, validated for range and stored as null when it is missing or impossible.

Calls need a Bodek API key; create one at https://api.bodek.us/keys.

Every call needs a key. Sign in to create one. Bodek API is included with the plans that cover it.

Endpoints

GET /v1/aviation/airports Airports
GET /v1/aviation/airports/{id} A single record
GET /v1/aviation/runways Runways
GET /v1/aviation/runways/{id} A single record
GET /v1/aviation/countries Countries
GET /v1/aviation/countries/{id} A single record
GET /v1/aviation/regions Regions
GET /v1/aviation/regions/{id} A single record

Try it

https://api.bodek.us/v1/aviation/airports?limit=5

        
      

This panel sends no key, so it answers 401 — it is here to show you the shape of a request and the error envelope. Use curl with your own key to see data.

Airports

Every open airport, heliport, seaplane base and balloonport — codes, coordinates, elevation, scheduled service and runway size.

FieldTypeDescriptionFilterSearchSort
ident string The airport's unique OurAirports identifier, e.g. "KJFK" — the ICAO code where the airport has one, otherwise a local or internal code. This is the id in /v1/aviation/airports/{ident}.
name string Full airport name, e.g. "John F. Kennedy International Airport". Matched by the q parameter.
type string Category: large_airport, medium_airport, small_airport, heliport, seaplane_base or balloonport, e.g. "large_airport".
latitude_deg number Latitude in decimal degrees, five places, e.g. 40.63945. Null when the source has no usable position.
longitude_deg number Longitude in decimal degrees, five places, e.g. -73.77932. Null when the source has no usable position.
elevation_ft integer Elevation of the airport above mean sea level in feet, e.g. 13. Range the dump covers is -1266 to 17372; null where no figure is recorded.
iso_country string ISO 3166-1 alpha-2 country code, e.g. "US". Filter on this; /v1/aviation/countries has the names.
country string Country name, e.g. "United States".
continent string Two-letter continent code of the country: AF, AN, AS, EU, NA, OC or SA, e.g. "NA".
iso_region string ISO 3166-2 code of the state, province or canton, e.g. "US-NY".
region string Name of that subdivision, e.g. "New York".
municipality string The city or town the airport serves, e.g. "New York". Matched by the q parameter.
scheduled_service integer 1 when OurAirports records scheduled airline service at this airport, 0 when it does not, e.g. 1.
icao_code string The four-letter ICAO location indicator where the source records one, e.g. "KJFK". Null for the 62,085 airfields with no ICAO code; it equals ident for all but 824 of the rest, so look an airport up by ident.
iata_code string The three-letter IATA code where one exists, e.g. "JFK". Null for airports with no IATA code.
local_code string The national or local identifier, e.g. "JFK" in the US FAA register or "00A" for a small strip. Null where the source has none.
runway_count integer How many runways this airport has in /v1/aviation/runways, e.g. 4.
longest_runway_ft integer Length of the longest runway in feet, e.g. 14511. This is the field to sort by for "the biggest airports"; null when no runway length is on file.
curl "https://api.bodek.us/v1/aviation/airports?limit=5&type=example&q=search+text" \
  -H "Authorization: Bearer $BODEK_API_KEY"

Runways

Every runway at every open airport: length, width, surface, lighting and both ends’ designators and true headings.

FieldTypeDescriptionFilterSearchSort
id integer OurAirports' own runway id, e.g. 269408. This is the id in /v1/aviation/runways/{id}.
airport_ident string The ident of the airport this runway belongs to, e.g. "KJFK". Filter on this to get one airport's runways in a single request.
airport_name string Name of that airport, e.g. "John F. Kennedy International Airport".
iso_country string Country of that airport, e.g. "US" — so "every runway in Iceland" is one request.
length_ft integer Runway length in feet, e.g. 14511. Null when the source records no length.
width_ft integer Runway width in feet, e.g. 200. Null when the source records no width.
surface string The surface exactly as OurAirports records it, e.g. "ASP", "CONC", "TURF" or "GRASS / SOD". The spelling is the source's, not normalised; 647 distinct values appear.
lighted integer 1 when the runway is lit, 0 when it is not, e.g. 1.
closed integer 1 when this runway is closed although the airport is open, 0 otherwise, e.g. 0. 855 runways here are closed.
le_ident string Designator of the low-numbered end, e.g. "04L".
le_heading_deg number True heading of the low-numbered end in degrees, e.g. 31.0. Null when the source has none.
he_ident string Designator of the high-numbered end, e.g. "22R".
he_heading_deg number True heading of the high-numbered end in degrees, e.g. 211.0. Null when the source has none.
curl "https://api.bodek.us/v1/aviation/runways?limit=5&airport_ident=example&q=search+text" \
  -H "Authorization: Bearer $BODEK_API_KEY"

Countries

The 249 country codes used by the airports and regions collections, with names and continents.

FieldTypeDescriptionFilterSearchSort
code string ISO 3166-1 alpha-2 country code, e.g. "CH". This is the value airports.iso_country holds.
name string Country name as OurAirports records it, e.g. "Switzerland".
continent string Two-letter continent code: AF, AN, AS, EU, NA, OC or SA, e.g. "EU".
curl "https://api.bodek.us/v1/aviation/countries?limit=5&name=example&q=search+text" \
  -H "Authorization: Bearer $BODEK_API_KEY"

Regions

Top-level administrative subdivisions — states, provinces, cantons — used by airports.iso_region.

FieldTypeDescriptionFilterSearchSort
code string ISO 3166-2 subdivision code, e.g. "US-NY". This is the value airports.iso_region holds.
name string Subdivision name, e.g. "New York".
continent string Two-letter continent code, e.g. "NA".
iso_country string The country this subdivision belongs to, e.g. "US".
country string Country name, e.g. "United States".
local_code string The subdivision code without its country prefix, e.g. "NY". Null where the source has none.
curl "https://api.bodek.us/v1/aviation/regions?limit=5&continent=example&q=search+text" \
  -H "Authorization: Bearer $BODEK_API_KEY"

Common questions

How do I get access to the Aviation API?

Bodek API is included with the Bodek plans that cover it. Sign in, create a key on the keys page, and send it as an Authorization: Bearer header. A key is scoped to the APIs you pick, carries its own rate limits and expiry, and can be revoked at any time.

What format does it return?

JSON over HTTPS, one GET per collection, with the same filtering, search, sort and paging conventions on every endpoint. An OpenAPI 3.1 description is published at https://api.bodek.us/v1/aviation/openapi.json.

How often does the data change?

It is maintained as production reference data, and responses carry an ETag so an unchanged request comes back as an empty 304. This API was last updated on 26 October 2026.

Limits

  • Up to 200 records per request (limit), 50 by default.
  • Rate limits are set per key, up to 600 requests a minute.
  • Responses are cached for up to 3600 seconds and carry an ETag.