List all airports via FlightAware AeroAPI — pay-per-request, no API keys, $0.01/call.
What it does
This endpoint returns a paginated list of all airports sourced from FlightAware's AeroAPI. Each airport record includes ICAO/IATA codes, name, type, elevation, city, state, country, latitude/longitude coordinates, timezone, wiki URL, and alternative airports. The response supports cursor-based pagination via `max_pages` and `cursor` query parameters.
The endpoint is part of StableTravel, a pay-per-request travel API suite that wraps Amadeus GDS and FlightAware AeroAPI behind MPP/x402 micropayments. No API keys, OAuth tokens, or subscriptions are required — payment via USDC on Base, Solana, or Tempo serves as authentication. This specific endpoint costs $0.01 per request. The endpoint is live and returns a 402 MPP payment challenge to unauthenticated callers, confirming it is operational.
The airport list is useful as reference data for resolving airport codes, building airport selectors, or feeding downstream queries to other StableTravel FlightAware endpoints (delays, weather, flights, routes). The full OpenAPI 3.1 schema is published at `/openapi.json` with detailed response types for the `airports` array.
Capabilities
Use cases
- —Build an airport picker or autocomplete by fetching the full airport list
- —Resolve ICAO/IATA codes to airport names, coordinates, and metadata
- —Feed airport codes into downstream flight tracking or delay queries
- —Populate a map with all airports and their geographic coordinates
- —Cross-reference airport alternatives for travel planning agents
Fit
Best for
- —AI travel agents that need airport reference data without managing API keys
- —Applications needing a comprehensive global airport directory via simple GET
- —Developers who want pay-per-call access to FlightAware airport data
Not for
- —Real-time flight tracking (use the /flightaware/flights endpoints instead)
- —Booking flights or hotels (use the /flights or /hotels endpoints)
- —Free or bulk airport data downloads (this is a paid per-request API)
Quick start
npx agentcash fetch "https://stabletravel.dev/api/flightaware/airports"Example
Response
{
"links": {
"next": "/api/flightaware/airports?cursor=abc123"
},
"airports": [
{
"city": "New York",
"name": "John F Kennedy Intl",
"type": "Airport",
"state": "NY",
"code_lid": "JFK",
"latitude": 40.6398,
"timezone": "America/New_York",
"wiki_url": "https://en.wikipedia.org/wiki/John_F._Kennedy_International_Airport",
"code_iata": "JFK",
"code_icao": "KJFK",
"elevation": 13,
"longitude": -73.7789,
"airport_code": "KJFK",
"alternatives": null,
"country_code": "US",
"airport_flights_url": "/airports/KJFK/flights"
}
],
"num_pages": 50
}Endpoint
Quality
Full OpenAPI 3.1 schema with detailed response types, clear pricing ($0.01/call), live 402 MPP challenge confirmed, comprehensive documentation including parameter descriptions and pagination support. Example response is inferred from schema rather than captured live data.
Citations
- —Endpoint costs $0.01 per requesthttps://stabletravel.dev/openapi.json
- —Payment via USDC on Base, Solana, or Tempo; no API keys neededhttps://stabletravel.dev
- —Endpoint is live and returns 402 MPP payment challengehttps://stabletravel.dev/api/flightaware/airports
- —Data sourced from FlightAware AeroAPIhttps://stabletravel.dev/docs
- —Response includes airport_code, code_icao, code_iata, name, type, elevation, city, state, longitude, latitude, timezone, country_code, wiki_url, alternativeshttps://stabletravel.dev/openapi.json