APIHub
Back to Explore

Airports API v2

The Airports API v2 offers read‑only access to worldwide airport data, allowing you to retrieve all airports, look up airports by IATA code or by up to three ISO‑3166‑1 country codes, and find the nearest airports either by geographic coordinates or by a reference airport, with optional distance and result‑limit parameters.

Transportation
apiKeyHeader
HTTPS
CORS: Unknown
Description enriched
Visit official documentation

Latency

1134ms p95

Uptime

100.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
GET

/

All airports

GET

/countrycode/{countryCode}

Airport(s) by country code.

  • countryCode (path, required) — Comma-separated list of country codes (2-character ISO 3166-1). More than 3 country codes is not allowed.
GET

/nearest

Nearest airport(s) by geo coordinates.

  • latitude (query) — Latitude in decimals, lower than -90.0 and higher than 90.0 is not allowed.
  • longitude (query) — Longitude in decimals, lower than -180.0 and higher than 180.0 is not allowed.
  • maxDistanceInKm (query) — Maximum distance in kilometers, lower than 1 and higher than 500 is not allowed. If not set, max value is applied.
  • limit (query, limit) — Limits the result, lower than 0 is not allowed. If not set, the result is not limited.
GET

/nearest/{id}

Nearest airport(s) by airport id.

  • id (path, required) — Airport (IATA code) to search nearest airports for.
  • maxDistanceInKm (query) — Maximum distance in kilometers, lower than 1 and higher than 500 is not allowed. If not set, max value is applied.
  • limit (query, limit) — Limits the result, lower than 0 is not allowed. If not set, the result is not limited.
GET

/{id}

Airport by id.

  • id (path, required) — Airport code (3-character IATA code).

5 endpoints auto-detected

Authentication

This API uses an API key, passed in the "apikey" header. No OAuth required.

curl -X GET \
  "https://api.transavia.com/v2/airports/" \
  -H "apikey: YOUR_API_KEY"

api.transavia.com · HTTPS only