Airport Reference Lookup (OurAirports) avatar

Airport Reference Lookup (OurAirports)

Pricing

$0.50 / 1,000 airport records

Go to Apify Store
Airport Reference Lookup (OurAirports)

Airport Reference Lookup (OurAirports)

Look up airports by IATA, ICAO, ident, name, or country in the public-domain OurAirports dataset, downloaded fresh at run time.

Pricing

$0.50 / 1,000 airport records

Rating

0.0

(0)

Developer

Clearfield Data

Clearfield Data

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

19 hours ago

Last modified

Categories

Features

Limited permissions

Share

Look up airports worldwide by IATA (for example DXB), ICAO (OMDB), local ident, name, or country, and get coordinates, type, municipality, and scheduled-service flags in one dataset. The Actor is useful for travel apps, aviation tools, and any workflow that needs to resolve airport codes to a canonical record without maintaining your own airport database.

Data source and freshness

Data is the public-domain OurAirports airport database, downloaded at run time from the official CSV mirror at https://davidmegginson.github.io/ourairports-data/airports.csv. OurAirports dedicates this dataset to the public domain. The file is fetched fresh on each run, so records follow the current published snapshot (community-maintained, not an official ICAO or IATA product).

Input

Provide at least one of identifiers, nameContains, or country. If identifiers are set, those codes are resolved (IATA, ICAO, GPS code, local code, or OurAirports ident). nameContains, country, types, and scheduledServiceOnly still apply as filters.

FieldTypeRequiredDescriptionExample
identifiersarray of stringsno (one of this, nameContains, or country)IATA (3-letter), ICAO (4-letter), or OurAirports ident codes. Case-insensitive.["DXB", "OMDB", "LHR"]
nameContainsstringnoCase-insensitive substring matched against airport name or municipality."Dubai"
countrystringnoISO 3166-1 alpha-2 country code. When set, only airports in that country are returned."AE"
typesarray of stringsnoOurAirports type filter. Allowed: large_airport, medium_airport, small_airport, heliport, seaplane_base, balloonport, closed.["large_airport"]
scheduledServiceOnlybooleannoIf true, only airports marked as having scheduled airline service (default false).true
maxItemsintegernoMaximum airport records to emit (default 50, min 1, max 20,000).10

Output

Each item is one airport row from the OurAirports CSV, with identifiers, location, and type fields.

Example item from a real local test run (Dubai International):

{
"ident": "OMDB",
"iata_code": "DXB",
"icao_code": "OMDB",
"gps_code": "OMDB",
"local_code": "",
"name": "Dubai International Airport",
"type": "large_airport",
"municipality": "Dubai",
"iso_country": "AE",
"iso_region": "AE-DU",
"continent": "AS",
"latitude_deg": 25.24979,
"longitude_deg": 55.370992,
"elevation_ft": 62,
"scheduled_service": "yes",
"wikipedia_link": "https://en.wikipedia.org/wiki/Dubai_International_Airport",
"home_link": "https://www.dubaiairport.com/"
}

Pricing

This Actor is priced per result at $0.50 per 1,000 results (one result event for each airport row written to the dataset). For example, 200 airports cost $0.10 in result charges ($0.0005 per airport).

Apify also bills platform usage (compute and storage) for the run according to your Apify plan. Result charges and platform usage appear separately on the run.

Use cases

  • Resolve IATA or ICAO codes to coordinates, names, and ISO country codes.
  • Build airport pickers or travel itinerary tools without hosting your own airport table.
  • Filter a country's large and medium airports that have scheduled service.
  • Enrich flight, logistics, or weather records with municipality and elevation.
  • Support aviation research and mapping with a public-domain reference file.
  • Let an AI agent turn a city name or airport code into a structured airport record.

How to use

You can run this Actor from the Apify Console, via the API, from Python or JavaScript, or from an AI agent that speaks MCP.

API

curl "https://api.apify.com/v2/acts/phobia82~airport-reference-lookup/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
-X POST \
-H "Content-Type: application/json" \
-d '{"identifiers":["DXB","OMDB","LHR"],"maxItems":10}'

Replace YOUR_API_TOKEN with an API token from Apify Console → Settings → Integrations. For longer jobs, start a run with the Run Actor endpoint and read the dataset when it finishes.

Python

from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("phobia82/airport-reference-lookup").call(run_input={"identifiers": ["DXB", "OMDB", "LHR"], "maxItems": 10})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

JavaScript

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('phobia82/airport-reference-lookup').call({ identifiers: ["DXB", "OMDB", "LHR"], maxItems: 10 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

AI agents and MCP

Connect the Apify MCP server to an MCP client such as Claude, Cursor, or another compatible agent, then call Actor phobia82/airport-reference-lookup with the same JSON input as the API. The agent receives the dataset items as structured results.

FAQ

Is this legal to use? Yes. OurAirports source data is dedicated to the public domain. The Actor downloads the official public CSV; it does not scrape a website behind a login and does not collect personal data.

Is this an official IATA or ICAO database? No. It is the community OurAirports dataset, which is widely used as a public-domain reference. Identifiers can differ from paid official publications.

Do I have to pass both IATA and ICAO? No. Pass whichever identifiers you have. DXB and OMDB resolve to the same Dubai International record; duplicates in the input still emit that airport once per matching CSV row (typically once).

Can I list every airport in a country? Yes. Set country to an ISO 3166-1 alpha-2 code such as AE or GB, optionally restrict types, and raise maxItems as needed (up to 20,000).

How fresh is the data? The CSV is downloaded at the start of each run from the official OurAirports data mirror, so you get the snapshot published there at that time.

What if an identifier is unknown? It simply produces no row. Other identifiers and filters in the same run still apply.

Limits and known issues

  • The full airports CSV is downloaded on every run, so a small lookup still pays the download time.
  • maxItems is capped at 20,000.
  • This is not a live flight-status, delay, or runway-in-use feed.
  • Some fields (for example local_code or home_link) may be empty in the source CSV.
  • Type and scheduled-service values follow OurAirports conventions, not a government registry.

Support

Questions, incorrect data, or a feature request? Open a ticket on this Actor's Issues tab in Apify Console or on the Actor's Store page. Built by Clearfield Data.