Open documentation ↗Overview
Returns all airports
Airports API v2 is a transportation API from transavia.com. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 5 endpoints.
At a glance
- Authentication
- API key
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Transportation
- Base URL
https://api.transavia.com/v2/airports- Version
- 1.0
- Endpoints
- 5
- OpenAPI
- Specification ↗
- Spec updated
- 2018-08-24
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "https://api.transavia.com/v2/airports/" \
-H "Accept: application/json" \
-H "X-API-Key: YOUR_API_KEY"const response = await fetch("https://api.transavia.com/v2/airports/", {
method: "GET",
headers: {
"Accept": "application/json",
"X-API-Key": "YOUR_API_KEY",
},
});
const data = await response.json();
console.log(data);import requests
response = requests.request(
"GET",
"https://api.transavia.com/v2/airports/",
headers={
"Accept": "application/json",
"X-API-Key": "YOUR_API_KEY",
},
timeout=30,
)
print(response.json())Endpoints
| Method | Path | What it does |
|---|---|---|
| GET | / | All airports |
| GET | /countrycode/{countryCode} | Airport(s) by country code. |
| GET | /nearest | Nearest airport(s) by geo coordinates. |
| GET | /nearest/{id} | Nearest airport(s) by airport id. |
| GET | /{id} | Airport by id. |
Questions
Does the Airports API v2 API need an API key?
Yes. The Airports API v2 API uses API key authentication; the documentation explains how to get credentials.
Does the Airports API v2 API support HTTPS?
Yes, the Airports API v2 API is served over HTTPS.
How many endpoints does the Airports API v2 API have?
Its OpenAPI description lists 5 endpoints in version 1.0. All of them are shown on this page.
What are alternatives to the Airports API v2 API?
Other Transportation APIs include airportsapi, Transport for London, England, Uber, Transport for Spain, Amadeus for Developers.
Similar transportation APIs
Compare alternatives →airportsapi
TransportationGet name and website-URL for airports by ICAO code
Transport for London, England
TransportationDiscover TFL APIs
Uber
TransportationUber ride requests and price estimation
Transport for Spain
TransportationPublic trains of Spain
Amadeus for Developers
TransportationTravel Search - Limited usage
Boston MBTA Transit
TransportationStations and predicted arrivals for MBTA
Listed from APIs.guru (CC0).