Skip to content

Airports API v2 API

by transavia.com

API keyHTTPSTransportation
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
Base URL
https://api.transavia.com/v2/airports
Version
1.0
Endpoints
5
Spec updated
2018-08-24

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://api.transavia.com/v2/airports/" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
JavaScript
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);
Python
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

MethodPathWhat it does
GET/All airports
GET/countrycode/{countryCode}Airport(s) by country code.
GET/nearestNearest 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.

Compare alternatives →

Listed from APIs.guru (CC0).