{"uid":"cap_EVFp2RAEgmj231SrVrdW0","slug":"flightaware-f1ef7c4c","name":"FlightAware Airport Directory","description":"List all airports.","url":"https://stabletravel.dev/api/flightaware/airports","method":"GET","headers":{},"bodySchema":{"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","properties":{"cursor":{"type":"string"},"max_pages":{"type":"number"}},"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":["airports"],"properties":{"links":{"type":"object","properties":{"next":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},"airports":{"type":"array","items":{"type":"object","required":["airport_code","name"],"properties":{"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"type":{"type":"string"},"state":{"anyOf":[{"type":"string"},{"type":"null"}]},"code_lid":{"anyOf":[{"type":"string"},{"type":"null"}]},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}]},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"wiki_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"code_iata":{"anyOf":[{"type":"string"},{"type":"null"}]},"code_icao":{"anyOf":[{"type":"string"},{"type":"null"}]},"elevation":{"anyOf":[{"type":"number"},{"type":"null"}]},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}]},"airport_code":{"type":"string"},"alternatives":{"anyOf":[{"type":"array","items":{"type":"object","required":["airport_code"],"properties":{"city":{"type":"string"},"name":{"type":"string"},"airport_code":{"type":"string"}},"additionalProperties":false}},{"type":"null"}]},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"airport_flights_url":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}},"num_pages":{"type":"number"}},"additionalProperties":false}}}}},"responseSchema":{"type":"json","example":{"airports":[{"city":"New York","name":"John F. Kennedy International Airport","type":"Airport","state":"NY","code_lid":"JFK","latitude":40.6413,"timezone":"America/New_York","code_iata":"JFK","code_icao":"KJFK","elevation":13,"longitude":-73.7781,"airport_code":"KJFK","country_code":"US"}],"num_pages":1}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"max_pages":1}}},"response":{"links":{"next":"/airports?max_pages=1&cursor=235c6d41cca7871"},"airports":[{"code":"00A","airport_info_url":"/airports/00A"},{"code":"00AA","airport_info_url":"/airports/00AA"},{"code":"00AK","airport_info_url":"/airports/00AK"},{"code":"00AL","airport_info_url":"/airports/00AL"},{"code":"00AN","airport_info_url":"/airports/00AN"},{"code":"00AR","airport_info_url":"/airports/00AR"},{"code":"00AS","airport_info_url":"/airports/00AS"},{"code":"00C","airport_info_url":"/airports/00C"},{"code":"00CA","airport_info_url":"/airports/00CA"},{"code":"00CL","airport_info_url":"/airports/00CL"},{"code":"00CN","airport_info_url":"/airports/00CN"},{"code":"00F","airport_info_url":"/airports/00F"},{"code":"00FA","airport_info_url":"/airports/00FA"},{"code":"00FL","airport_info_url":"/airports/00FL"},{"code":"00GA","airport_info_url":"/airports/00GA"}],"num_pages":1}},"exampleRequest":{"max_pages":1},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gvhoNpphl3IpwE2wI7cOG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a paginated list of all airports worldwide with their codes, coordinates, and metadata via the FlightAware API.","exampleAgentPrompt":"Can you pull the full list of airports from FlightAware — I want to browse all available airports with their IATA and ICAO codes, coordinates, and city info?","exampleUseCases":null,"resultDescription":"A paginated array of airport objects, each containing airport_code, name, city, state, country_code, IATA code, ICAO code, latitude, longitude, elevation, timezone, Wikipedia URL, airport type, and alternative airports. Also includes pagination links for fetching subsequent pages.","failureModes":["Invalid cursor token returns an error or empty result","max_pages value out of range may cause unexpected truncation","Network timeout if the full airport database is large","Downstream FlightAware API outage returns error response","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need a comprehensive enumeration of all airports in the FlightAware database, especially when you need to build a local lookup table, populate a dropdown, or cross-reference airport codes with geographic metadata. Prefer this over a single-airport lookup when you need bulk data rather than details on one specific airport.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:49:24.757Z","isFirstParty":false}