Skip to content

Airport & City Search API

by amadeus.com

No authHTTPSTransportation
Open documentation ↗

Overview

Before using this API, we recommend you read our **[Authorization Guide](https://developers.amadeus.com/self-service/apis-docs/guides/authorization-262)** for more information on how to generate an access token. Please also be aware that our test environment is based on a subset of the production, in test this API only contains data from the United States, Spain, United Kingdom, Germany and India.

Airport & City Search is a transportation API from amadeus.com. It needs no API key. It is served over HTTPS. Its OpenAPI description documents 2 endpoints.

At a glance

Authentication
No auth
HTTPS
Yes
CORS
Unknown
Base URL
https://test.api.amadeus.com/v1
Version
1.2.3
Endpoints
2
Spec updated
2023-03-24

Make a first request

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

cURL
curl -X GET "https://test.api.amadeus.com/v1/reference-data/locations" \
  -H "Accept: application/json"
JavaScript
const response = await fetch("https://test.api.amadeus.com/v1/reference-data/locations", {
  method: "GET",
  headers: {
    "Accept": "application/json",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://test.api.amadeus.com/v1/reference-data/locations",
    headers={
    "Accept": "application/json",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/reference-data/locationsReturns a list of airports and cities matching a given keyword.
GET/reference-data/locations/{locationId}Returns a specific airports or cities based on its id.

Questions

Does the Airport & City Search API need an API key?

No. The Airport & City Search API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

Does the Airport & City Search API support HTTPS?

Yes, the Airport & City Search API is served over HTTPS.

How many endpoints does the Airport & City Search API have?

Its OpenAPI description lists 2 endpoints in version 1.2.3. All of them are shown on this page.

What are alternatives to the Airport & City Search API?

Other Transportation APIs include airportsapi, Transport for London, England, Uber, Transport for Spain, Amadeus for Developers.

Compare alternatives →

Listed from APIs.guru (CC0).