{"uid":"cap_e-WUiZuefxZob3YnooFaT","slug":"stabletravel-flightaware-nearby-airports-d52e0697","name":"StableTravel FlightAware Nearby Airports","description":"Get airports near a specific airport","url":"https://stabletravel.dev/api/flightaware/airports/id/nearby","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"},"radius":{"type":"number"},"only_iap":{"type":"boolean"},"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","distance","heading"],"properties":{"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"type":{"type":"string"},"state":{"anyOf":[{"type":"string"},{"type":"null"}]},"heading":{"type":"number"},"code_lid":{"anyOf":[{"type":"string"},{"type":"null"}]},"distance":{"type":"number"},"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","heading":45,"code_lid":"JFK","distance":12.5,"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":{"radius":50,"only_iap":false,"max_pages":1}}},"response":{"links":null,"airports":[],"num_pages":1}},"exampleRequest":{"radius":50,"only_iap":false,"max_pages":1},"tags":["x402"],"displayCostAmount":"0.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ENMsVAeN4WNM--tov4low","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a list of airports near a given airport, sorted by distance, with full airport metadata including IATA/ICAO codes, coordinates, and timezone.","exampleAgentPrompt":"Find all airports within 75 miles of KJFK — include small airfields too, not just IAP airports.","exampleUseCases":null,"resultDescription":"An array of airport objects each containing airport_code, name, city, state, country_code, IATA/ICAO/LID codes, latitude, longitude, elevation, timezone, distance from the reference airport, compass heading, Wikipedia URL, and any alternative airport entries. Also includes pagination links for retrieving additional pages.","failureModes":["Missing or invalid airport ID in the URL path returns a 404 or error response","Radius value out of acceptable range may return an empty airports array or validation error","Pagination cursor mismatch or expiry returns no results or an error","Exceeding max_pages limit truncates results silently","Network or upstream FlightAware API outage returns a 5xx error","Insufficient payment (x402) results in a 402 Payment Required response before data is returned"],"whenToPreferThis":"Use this endpoint when you need to discover airports geographically surrounding a known airport, such as when looking for alternate landing options, nearby regional airports, or building a radius-based airport map. Prefer this over a general airport search when you have a specific reference airport ID and want distance/heading data relative to it.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:51:50.392Z","isFirstParty":false}