# Amadeus City Search by Keyword

> Amadeus City Search by Keyword is a paid API for AI agents from stabletravel.dev, paid per call via MPP or x402, $0.0054/call, status unknown (last checked 2026-09-13).

Search for cities matching a keyword, optionally filtered by country and including associated airports.

## Facts

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

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-fe7bc0a8
```

Example prompt: Search for cities matching the keyword 'Barcelona' in Spain — include their associated airports in the results.

## When to prefer this

Use this endpoint when you need to resolve a city name or partial name to a structured city record (with IATA city codes) for use in downstream travel lookups like hotel search or flight search. Prefer this over airport search when the user references a city rather than a specific airport, or when you need to discover what airports serve a given city.

## Known failure modes

- Missing required 'keyword' parameter returns validation error
- Invalid countryCode format returns error or empty results
- No cities found for keyword returns empty data array
- Network or upstream Amadeus API timeout
- Invalid 'include' enum value returns error

## How this service works

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

## Output

An array of city objects matching the keyword, each containing city name, city code, country information, and optionally a list of associated airports. Also may include meta pagination info and any warnings.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "keyword": "Paris"
  }
 }
}
```

## 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": [
      "keyword"
     ],
     "properties": {
      "max": {
       "type": "number"
      },
      "include": {
       "enum": [
        "Airports"
       ],
       "type": "string",
       "description": "Include associated airports"
      },
      "keyword": {
       "type": "string",
       "description": "City name keyword"
      },
      "countryCode": {
       "type": "string",
       "description": "ISO 3166-1 country code"
      }
     },
     "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": {},
      "included": {},
      "warnings": {
       "type": "array",
       "items": {}
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "name": "PARIS",
    "type": "location",
    "address": {
     "countryCode": "FR"
    },
    "geoCode": {
     "latitude": 48.8566,
     "longitude": 2.3522
    },
    "subType": "CITY",
    "iataCode": "PAR"
   }
  ],
  "meta": {
   "count": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amadeus-fe7bc0a8/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)
