Skip to content
OSINTtools.io

OpenAIP API

Free, community-maintained worldwide aeronautical database and map of airports, airspaces, navaids, obstacles and reporting points.

Base URL
https://api.core.openaip.net/api
Sign-in
API key
Format
REST
Endpoints
5

Compiled by OSINTtools.io editors from docs.openaip.net · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

OpenAIP is a community database of aeronautical data. Its Core API returns airports, airspaces, navaids, obstacles, reporting points, hang gliding sites, RC airfields and similar records as JSON. An investigator can use it to look up an airfield by name or code, its coordinates, runways, radio frequencies and the airspace around it.

Calls go to https://api.core.openaip.net/api. Every request needs an API client key, created on the API Clients page of an OpenAIP account, sent in the x-openaip-api-key header or the apiKey query parameter. List endpoints are paginated with page and limit.

The docs say rate limits apply to several endpoints and ask clients to cache responses, but give no figures. The data is licensed CC BY-NC 4.0 and the docs ask for an attribution link to openaip.net. Only the read endpoints for airports and airspaces are documented here; the spec also covers navaids, obstacles, reporting points, hang-gliding sites, hotspots, RC airfields and special rules areas, and RFC (change request) POST endpoints.

Quick start

  1. Get a key

    Create an account with OpenAIP and copy your api key. Where to get it

  2. Make your first request

    List airports, filtered by country, type, search text and services.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.core.openaip.net/api/airports' \
      -H 'x-openaip-api-key: YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "page": 1,
      "limit": 1000,
      "totalCount": 1,
      "totalPages": 1,
      "nextPage": null,
      "items": [
        {
          "_id": "0000000000000000000000aa",
          "name": "Example Field",
          "icaoCode": "ZZZZ",
          "country": "CH",
          "type": 2,
          "geometry": {
            "type": "Point",
            "coordinates": [
              8,
              47
            ]
          }
        }
      ]
    }

Authentication

Send your API key in the x-openaip-api-key header of every request.

Create an API client on your OpenAIP profile's API Clients page. The key can also be sent as the apiKey query parameter.

Get a key from OpenAIP

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Limits apply on several endpoints; the docs give no figures

Errors

StatusMeaning
400Bad request
401Authorization information is missing or invalid
403Authenticated, but not permitted to access the resource
404Requested resource was not found

Airports

  • Passive: the target is not contacted

Returns a paginated list. The result has page, limit, totalCount, totalPages, nextPage and items. The search parameter matches name, ICAO code, IATA code and alternative identifier.

Query parameters

searchstring

Case-insensitive match on name, icaoCode, iataCode and altIdentifier

Example: Example Field
countrystring

ISO alpha-2 country code

Example: CH
typeinteger

Airport type code, for example 0 civil/military airport, 1 glider site, 3 international airport (full list in the spec); can be repeated

Example: 0
trafficTypeinteger

0 for VFR, 1 for IFR; can be repeated

Example: 0
pprboolean

If true, only airfields that need prior permission

Example: true
privateboolean

If true, only private airfields

Example: true
updatedAfterstring

URI-encoded ISO 8601 UTC timestamp

Example: 2026-01-01T00:00:00Z
fieldsstring

Comma-separated list of fields to return; all fields if omitted

Example: name,icaoCode,country
sortBystring

Field to sort by

Example: name
sortDescboolean

Sort descending when sortBy is set

Example: trueDefault: false
pageinteger

Page number, starting at 1

Example: 1Default: 1
limitinteger

Items per page; the docs say it usually defaults to 1000

Example: 50
Response fields · 12Show

pageinteger

The requested page

limitinteger

Maximum items per page

totalCountinteger

Total items matching the query

totalPagesinteger

Total pages

nextPageinteger

Next page number, if any

_idstring

Internal document ID

namestring

Airport name

icaoCodestring

ICAO code

iataCodestring

IATA code

countrystring

ISO 3166-1 alpha-2 country code

typeinteger

Airport type code

coordinatesarray

Longitude and latitude

curl 'https://api.core.openaip.net/api/airports' \
  -H 'x-openaip-api-key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "page": 1,
  "limit": 1000,
  "totalCount": 1,
  "totalPages": 1,
  "nextPage": null,
  "items": [
    {
      "_id": "0000000000000000000000aa",
      "name": "Example Field",
      "icaoCode": "ZZZZ",
      "country": "CH",
      "type": 2,
      "geometry": {
        "type": "Point",
        "coordinates": [
          8,
          47
        ]
      }
    }
  ]
}
  • Passive: the target is not contacted

Returns the full record: elevation, traffic types, services, frequencies, runways, hours of operation, contact, remarks, telephone services and images.

Path parameters

idstringrequired

Document reference ID

Example: 0000000000000000000000aa

Query parameters

fieldsstring

Comma-separated list of fields to return

Example: name,runways
Response fields · 10Show

namestring

Airport name

icaoCodestring

ICAO code

valuenumber

Elevation in meters above MSL

pprboolean

Prior permission required

privateboolean

Private airfield

valuestring

Frequency in MHz

namestring

Frequency name

designatorstring

Runway designator

trueHeadinginteger

True heading in degrees

updatedAtstring

Last update, ISO 8601

curl 'https://api.core.openaip.net/api/airports/0000000000000000000000aa' \
  -H 'x-openaip-api-key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "_id": "0000000000000000000000aa",
  "name": "Example Field",
  "icaoCode": "ZZZZ",
  "country": "CH",
  "elevation": {
    "value": 450
  },
  "ppr": false,
  "private": false,
  "frequencies": [
    {
      "value": "123.450",
      "name": "INFO",
      "primary": true
    }
  ],
  "runways": [
    {
      "designator": "09",
      "trueHeading": 90
    }
  ],
  "updatedAt": "2026-01-01T00:00:00.000Z"
}

Airspaces

  • Passive: the target is not contacted

Returns a paginated list in the same wrapper as the airports list. The search parameter matches name and identifier.

Query parameters

searchstring

Case-insensitive match on name and identifier

Example: Example
countrystring

ISO alpha-2 country code

Example: CH
typeinteger

Airspace type code, for example 1 restricted, 2 danger, 3 prohibited, 4 CTR (full list in the spec); can be repeated

Example: 4
icaoClassinteger

ICAO class code, 0 for A through 6 for G, 8 for unclassified/special use; can be repeated

Example: 3
activityinteger

Activity code the airspace is reserved for, for example 1 parachuting; can be repeated

Example: 1
onDemandboolean

Only airspaces activated on demand

Example: true
byNotamboolean

Only airspaces activated by NOTAM

Example: true
fieldsstring

Comma-separated list of fields to return

Example: name,type
pageinteger

Page number, starting at 1

Example: 1Default: 1
limitinteger

Items per page

Example: 50
Response fields · 8Show

totalCountinteger

Total items matching the query

_idstring

Internal document ID

namestring

Airspace name

typeinteger

Airspace type code

icaoClassinteger

ICAO class code

countrystring

ISO country code

upperLimitobject

Upper vertical limit

lowerLimitobject

Lower vertical limit

curl 'https://api.core.openaip.net/api/airspaces' \
  -H 'x-openaip-api-key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "page": 1,
  "limit": 1000,
  "totalCount": 1,
  "totalPages": 1,
  "items": [
    {
      "_id": "0000000000000000000000bb",
      "name": "EXAMPLE CTR",
      "type": 4,
      "icaoClass": 3,
      "country": "CH"
    }
  ]
}
  • Passive: the target is not contacted

Returns the full record: geometry, upper and lower limits, frequencies, transponder settings, activation flags and remarks.

Path parameters

idstringrequired

Document reference ID

Example: 0000000000000000000000bb

Query parameters

fieldsstring

Comma-separated list of fields to return

Example: name,geometry
Response fields · 8Show

namestring

Airspace name

typeinteger

Airspace type code

icaoClassinteger

ICAO class code

onDemandboolean

Activated on demand

byNotamboolean

Activated by NOTAM

geometryobject

Boundary geometry

remarksstring

Free-text remarks

updatedAtstring

Last update, ISO 8601

curl 'https://api.core.openaip.net/api/airspaces/0000000000000000000000bb' \
  -H 'x-openaip-api-key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "_id": "0000000000000000000000bb",
  "name": "EXAMPLE CTR",
  "type": 4,
  "icaoClass": 3,
  "country": "CH",
  "onDemand": false,
  "byNotam": false,
  "remarks": "Example remark",
  "updatedAt": "2026-01-01T00:00:00.000Z"
}

System

  • Passive: the target is not contacted

Returns status 200 when the API is healthy; 500 and 504 signal a server error or a temporarily unavailable service.

Response fields · 1Show

messagestring

Error text, present on 500 and 504 responses

curl 'https://api.core.openaip.net/api/system/health' \
  -H 'x-openaip-api-key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "message": "Server error occurred"
}