{"uid":"cap_E27w30i4jpVML1jxOItBS","slug":"flightaware-19c69e05","name":"FlightAware Airport Details by Code","description":"Get detailed information for a specific airport by its code","url":"https://stabletravel.dev/api/flightaware/airports/KMIA","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":{},"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":["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}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{}}},"response":{"city":"Miami","name":"Miami Intl","type":"Airport","state":"FL","code_lid":"MIA","latitude":25.7953611,"timezone":"America/New_York","wiki_url":"http://en.wikipedia.org/wiki/Miami_International","code_iata":"MIA","code_icao":"KMIA","elevation":9,"longitude":-80.2901158,"airport_code":"KMIA","alternatives":[],"country_code":"US","alternate_ident":"MIA","airport_flights_url":"/airports/KMIA/flights"}},"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AFJovEjFi1Wq_WJ2Dw8Yn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns detailed information for a specific airport given its airport code, including location, identifiers, timezone, and related links.","exampleAgentPrompt":"Can you pull up the full details for Miami International Airport — I need its IATA and ICAO codes, coordinates, timezone, and any nearby alternative airports?","exampleUseCases":null,"resultDescription":"A JSON object containing the airport's name, airport code, city, state, country code, latitude, longitude, elevation, timezone, IATA code, ICAO code, LID code, a Wikipedia URL, a link to the airport's flights page, and a list of alternative nearby airports with their codes and city names.","failureModes":["Invalid or unrecognized airport code returns an error or empty result","Airport code for a very small or private airfield may return null for many fields","Network timeout from upstream FlightAware API","Payment failure (x402 USDC payment not processed) returns 402 status","Malformed airport code (wrong format) results in 400 bad request"],"whenToPreferThis":"Use this endpoint when you need structured metadata about a specific airport — including its coordinates, timezone, official codes (IATA/ICAO/LID), and nearby alternatives. Prefer this over general flight search endpoints when the goal is airport identification or enrichment rather than finding flights. Best suited for agents needing to resolve an airport code to human-readable details or geospatial data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:44:21.825Z","isFirstParty":false}