# StableTravel Airport Info by Code

> StableTravel Airport Info by Code is a paid API for AI agents from StableTravel at stabletravel.dev, paid per call via MPP, $0.030000/call, status unknown (last checked 2026-10-12).

Returns detailed airport information (name, location, codes, timezone, elevation) for a given airport identifier

## Facts

- Endpoint: GET https://stabletravel.dev/api/flightaware/airports/:id?utm_source=zero.xyz
- Price: $0.030000/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Provider: StableTravel
- Docs: https://stabletravel.dev
- Website: https://stabletravel.dev
- Tags: amadeus, flightaware, flights, hotels, activities, transfers, travel, data, web
- Canonical page: https://www.zero.xyz/c/stabletravel-id-be01d34a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8XKYyb6Me5knwYpQbLUG-

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 stabletravel-id-be01d34a
```

Example prompt: Can you pull up all the details for LAX — full name, city, coordinates, timezone, IATA and ICAO codes, and any nearby alternative airports?

## When to prefer this

Use this endpoint when you need structured metadata about a specific airport — such as its official name, geographic coordinates, timezone, ICAO/IATA codes, or nearby alternatives — given a known airport identifier. Prefer this over flight-search endpoints when the goal is airport lookup/enrichment rather than finding flights.

## Known failure modes

- Invalid or unknown airport code returns a 404 or empty result
- Malformed airport ID causes a 400 bad request
- Some fields (city, state, latitude, longitude, elevation, timezone, wiki_url) may be null if not available for the airport
- Rate limiting or payment failure returns a 402 or 429 error
- Network timeout on FlightAware upstream returns a 503

## How this service works

Get airport info by code

## Output

Returns a structured airport object including the official airport name, IATA/ICAO/LID codes, city, state, country code, latitude, longitude, elevation, timezone, a Wikipedia URL, a link to the airport's flight page on FlightAware, and a list of alternative nearby airports with their codes and cities.

## Example request

```json
{
 "id": "KJFK",
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {}
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "id",
  "input"
 ],
 "properties": {
  "id": {
   "type": "string",
   "description": "Airport identifier (ICAO, IATA, or LID code), e.g. 'KJFK'"
  },
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "airport_code",
  "alternate_ident",
  "code_icao",
  "code_iata",
  "code_lid",
  "name",
  "type",
  "elevation",
  "city",
  "state",
  "longitude",
  "latitude",
  "timezone",
  "country_code",
  "wiki_url",
  "airport_flights_url",
  "alternatives"
 ],
 "properties": {
  "city": {
   "type": "string"
  },
  "name": {
   "type": "string"
  },
  "type": {
   "type": "string"
  },
  "state": {
   "type": "string"
  },
  "code_lid": {
   "type": "string"
  },
  "latitude": {
   "type": "number"
  },
  "timezone": {
   "type": "string"
  },
  "wiki_url": {
   "type": "string"
  },
  "code_iata": {
   "type": "string"
  },
  "code_icao": {
   "type": "string"
  },
  "elevation": {
   "type": "number"
  },
  "longitude": {
   "type": "number"
  },
  "airport_code": {
   "type": "string"
  },
  "alternatives": {
   "type": "array",
   "items": {
    "type": "unknown"
   }
  },
  "country_code": {
   "type": "string"
  },
  "alternate_ident": {
   "type": "string"
  },
  "airport_flights_url": {
   "type": "string"
  }
 }
}
```

## More

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