# OpenAIP API reference

> 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…

Source: https://osinttools.io/apis/openaip/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/openaip/

- Base URL: https://api.core.openaip.net/api
- Authentication: API key in the `x-openaip-api-key` header. Get a key: https://www.openaip.net/ Create an API client on your OpenAIP profile's API Clients page. The key can also be sent as the apiKey query parameter.
- Rate limits: Limits apply on several endpoints; the docs give no figures
- Vendor docs: https://docs.openaip.net/
- OpenAPI spec: https://api.core.openaip.net/api/system/specs/v1/schema.json

## Overview

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.

## Errors

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

## Airports

### List airports, filtered by country, type, search text and services.

`GET /airports`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `search` | query | string | no | Case-insensitive match on name, icaoCode, iataCode and altIdentifier Example: Example Field |
| `country` | query | string | no | ISO alpha-2 country code Example: CH |
| `type` | query | integer | no | 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 |
| `trafficType` | query | integer | no | 0 for VFR, 1 for IFR; can be repeated Example: 0 |
| `ppr` | query | boolean | no | If true, only airfields that need prior permission Example: true |
| `private` | query | boolean | no | If true, only private airfields Example: true |
| `updatedAfter` | query | string | no | URI-encoded ISO 8601 UTC timestamp Example: 2026-01-01T00:00:00Z |
| `fields` | query | string | no | Comma-separated list of fields to return; all fields if omitted Example: name,icaoCode,country |
| `sortBy` | query | string | no | Field to sort by Example: name |
| `sortDesc` | query | boolean | no | Sort descending when sortBy is set Example: true |
| `page` | query | integer | no | Page number, starting at 1 Example: 1 |
| `limit` | query | integer | no | Items per page; the docs say it usually defaults to 1000 Example: 50 |

Response fields:

- `page` (integer): The requested page
- `limit` (integer): Maximum items per page
- `totalCount` (integer): Total items matching the query
- `totalPages` (integer): Total pages
- `nextPage` (integer): Next page number, if any
- `items[]._id` (string): Internal document ID
- `items[].name` (string): Airport name
- `items[].icaoCode` (string): ICAO code
- `items[].iataCode` (string): IATA code
- `items[].country` (string): ISO 3166-1 alpha-2 country code
- `items[].type` (integer): Airport type code
- `items[].geometry.coordinates` (array): Longitude and latitude

```bash
curl 'https://api.core.openaip.net/api/airports' \
  -H 'x-openaip-api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "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
        ]
      }
    }
  ]
}
```

### Get one airport by document ID, with runways, frequencies and services.

`GET /airports/{id}`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Document reference ID Example: 0000000000000000000000aa |
| `fields` | query | string | no | Comma-separated list of fields to return Example: name,runways |

Response fields:

- `name` (string): Airport name
- `icaoCode` (string): ICAO code
- `elevation.value` (number): Elevation in meters above MSL
- `ppr` (boolean): Prior permission required
- `private` (boolean): Private airfield
- `frequencies[].value` (string): Frequency in MHz
- `frequencies[].name` (string): Frequency name
- `runways[].designator` (string): Runway designator
- `runways[].trueHeading` (integer): True heading in degrees
- `updatedAt` (string): Last update, ISO 8601

```bash
curl 'https://api.core.openaip.net/api/airports/0000000000000000000000aa' \
  -H 'x-openaip-api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "_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

### List airspaces, filtered by country, type, ICAO class and activity.

`GET /airspaces`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `search` | query | string | no | Case-insensitive match on name and identifier Example: Example |
| `country` | query | string | no | ISO alpha-2 country code Example: CH |
| `type` | query | integer | no | Airspace type code, for example 1 restricted, 2 danger, 3 prohibited, 4 CTR (full list in the spec); can be repeated Example: 4 |
| `icaoClass` | query | integer | no | ICAO class code, 0 for A through 6 for G, 8 for unclassified/special use; can be repeated Example: 3 |
| `activity` | query | integer | no | Activity code the airspace is reserved for, for example 1 parachuting; can be repeated Example: 1 |
| `onDemand` | query | boolean | no | Only airspaces activated on demand Example: true |
| `byNotam` | query | boolean | no | Only airspaces activated by NOTAM Example: true |
| `fields` | query | string | no | Comma-separated list of fields to return Example: name,type |
| `page` | query | integer | no | Page number, starting at 1 Example: 1 |
| `limit` | query | integer | no | Items per page Example: 50 |

Response fields:

- `totalCount` (integer): Total items matching the query
- `items[]._id` (string): Internal document ID
- `items[].name` (string): Airspace name
- `items[].type` (integer): Airspace type code
- `items[].icaoClass` (integer): ICAO class code
- `items[].country` (string): ISO country code
- `items[].upperLimit` (object): Upper vertical limit
- `items[].lowerLimit` (object): Lower vertical limit

```bash
curl 'https://api.core.openaip.net/api/airspaces' \
  -H 'x-openaip-api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "page": 1,
  "limit": 1000,
  "totalCount": 1,
  "totalPages": 1,
  "items": [
    {
      "_id": "0000000000000000000000bb",
      "name": "EXAMPLE CTR",
      "type": 4,
      "icaoClass": 3,
      "country": "CH"
    }
  ]
}
```

### Get one airspace by document ID, with geometry and vertical limits.

`GET /airspaces/{id}`

- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Document reference ID Example: 0000000000000000000000bb |
| `fields` | query | string | no | Comma-separated list of fields to return Example: name,geometry |

Response fields:

- `name` (string): Airspace name
- `type` (integer): Airspace type code
- `icaoClass` (integer): ICAO class code
- `onDemand` (boolean): Activated on demand
- `byNotam` (boolean): Activated by NOTAM
- `geometry` (object): Boundary geometry
- `remarks` (string): Free-text remarks
- `updatedAt` (string): Last update, ISO 8601

```bash
curl 'https://api.core.openaip.net/api/airspaces/0000000000000000000000bb' \
  -H 'x-openaip-api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "_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

### Check whether the API is healthy.

`GET /system/health`

- Footprint: 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:

- `message` (string): Error text, present on 500 and 504 responses

```bash
curl 'https://api.core.openaip.net/api/system/health' \
  -H 'x-openaip-api-key: YOUR_API_KEY'
```

Example response (500):

```json
{
  "message": "Server error occurred"
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
