# Amadeus Location Search (Airports & Cities)

> Amadeus Location Search (Airports & Cities) is a paid API for AI agents from stabletravel.dev, paid per call via x402, $0.0054/call, status unknown (last checked 2026-09-14).

Searches airports and/or cities by keyword, returning matching location records with IATA codes and metadata.

## Facts

- Endpoint: GET https://stabletravel.dev/api/reference/locations
- Price: $0.0054/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amadeus-eef30e3c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HpwHJsV6B55VZUnFURm15

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability amadeus-eef30e3c
```

Example prompt: Search for airports and cities matching the keyword 'London' using Amadeus location data — show both airports and cities, filtered to the UK (country code GB), up to 10 results.

## When to prefer this

Use this endpoint when you need to resolve a human-readable city or airport name into a structured IATA code or Amadeus location ID, especially as a prerequisite step before searching for flights or hotels. Prefer this over hardcoded IATA lookups when the user provides a free-text destination name that may be ambiguous.

## Known failure modes

- Missing required 'keyword' or 'subType' parameters returns a 400 validation error
- Invalid countryCode format returns no results or an error
- Keyword with no matches returns an empty data array
- Rate limiting or payment failure (x402) blocks the request
- Very broad keywords may return truncated result sets requiring pagination

## How this service works

Pay-per-request access to flights, award availability, hotels, activities, and transfers. No auth, no subscriptions.

## Output

An array of location objects matching the keyword, each containing the location name, IATA code, sub-type (AIRPORT or CITY), country, and optionally a traveler popularity score and detailed address metadata.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "view": "LIGHT",
   "keyword": "London",
   "subType": "AIRPORT,CITY",
   "countryCode": "GB",
   "page[limit]": 10
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "subType",
      "keyword"
     ],
     "properties": {
      "sort": {
       "enum": [
        "analytics.travelers.score"
       ],
       "type": "string"
      },
      "view": {
       "enum": [
        "FULL",
        "LIGHT"
       ],
       "type": "string"
      },
      "keyword": {
       "type": "string",
       "description": "Search keyword (city or airport name)"
      },
      "subType": {
       "enum": [
        "AIRPORT",
        "CITY",
        "AIRPORT,CITY"
       ],
       "type": "string",
       "description": "Location sub-type filter"
      },
      "countryCode": {
       "type": "string",
       "description": "ISO 3166-1 country code"
      },
      "page[limit]": {
       "type": "number",
       "description": "Maximum results per page"
      },
      "page[offset]": {
       "type": "number",
       "description": "Results offset"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "data"
     ],
     "properties": {
      "data": {
       "type": "array",
       "items": {}
      },
      "meta": {}
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "name": "CHARLES DE GAULLE",
    "type": "location",
    "address": {
     "cityName": "PARIS",
     "countryCode": "FR"
    },
    "geoCode": {
     "latitude": 49.0097,
     "longitude": 2.5479
    },
    "subType": "AIRPORT",
    "iataCode": "CDG"
   }
  ],
  "meta": {
   "count": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amadeus-eef30e3c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stabletravel.dev](https://www.zero.xyz/host/stabletravel.dev/llms.txt)
