Overpass query example

International airports worldwide

A worldwide query without area: every airport tagged as international, with IATA and ICAO codes.

Queries without any location filter search the whole planet. That's fine for rare tags, which Overpass finds quickly through its tag index.

The query

[out:json][timeout:90];
nwr["aeroway"="aerodrome"]["aerodrome"="international"];
out center;

Run it

Running the query…

Live result from overpass.ch, cached for up to 12 hours. Map data © OpenStreetMap contributors (ODbL).

How it works

  1. aeroway=aerodrome is any airport or airfield. aerodrome=international narrows it down.
  2. The iata and icao tags hold the airport codes.

Variations

  • All airports with an IATA code: ["iata"] instead of ["aerodrome"="international"] (much bigger result).
  • Worldwide queries for common tags (shops, trees) are slow. Restrict them to an area.

Run it from your code

curl https://api.overpass.ch/v1/YOUR_API_KEY/interpreter \
  --data-urlencode 'data@query.overpassql'

Save the query as query.overpassql. It works the same in Overpass Turbo, QGIS and JOSM.

More examples

All examples →