{"uid":"cap_ifUV5o8RjawHcmKO6jsiB","slug":"airlines-reference-route-count-top-airports-by-airline-b7e42cc8","name":"Airlines Reference – Route Count & Top Airports by Airline","description":"Route count and top origin and destination airports for an airline from the old OpenFlights routes snapshot (2017).","url":"https://airlines-reference.x402tookit.com/airline-routes?utm_source=zero.xyz","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"],"type":"string"},"queryParams":{"type":"object","required":["airline"],"properties":{"airline":{"type":"string","description":"IATA/ICAO code or name: BA, BAW, British Airways"},"openflightsId":{"type":"integer","description":"Pick one airline when the code or name is ambiguous"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"source":{"type":["null","string"]},"airline":{"type":["null","object"],"properties":{"iata":{"type":["null","string"]},"icao":{"type":["null","string"]},"name":{"type":["null","string"]},"alias":{},"active":{"type":["boolean","null"]},"country":{"type":["null","string"]},"callsign":{"type":["null","string"]},"openflightsId":{"type":["null","number"]},"routesInSnapshot":{"type":["null","number"]}}},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"routeCount":{"type":["null","number"]},"attribution":{"type":["null","string"]},"airportCount":{"type":["null","number"]},"snapshotDate":{"type":["null","string"]},"codeshareRoutes":{"type":["null","number"]},"topOriginAirports":{"type":["array","null"],"items":{"type":"object","properties":{"routes":{"type":["null","number"]},"airport":{"type":["null","string"]}}}},"topDestinationAirports":{"type":["array","null"],"items":{"type":"object","properties":{"routes":{"type":["null","number"]},"airport":{"type":["null","string"]}}}}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ktm0zuUVOV4pZS9oiedaz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns route count, airport count, codeshare routes, and top origin/destination airports for a given airline from the 2017 OpenFlights snapshot.","exampleAgentPrompt":"How many routes does British Airways (BA) have in the OpenFlights snapshot, and what are their top origin and destination airports?","exampleUseCases":[{"title":"Airline hub analysis for travel research","prompt":"Can you pull up the route count and top origin airports for Lufthansa using their IATA code LH? I want to understand their hub structure."},{"title":"Comparing codeshare routes across carriers","prompt":"How many codeshare routes does United Airlines have in the OpenFlights data? Give me their full route summary including top destinations."},{"title":"Aviation data enrichment for a flight tool","prompt":"I need the route statistics for Emirates — look them up by IATA code EK and give me their total routes, airport count, and busiest destination airports."}],"resultDescription":"Returns a JSON object including the airline's IATA/ICAO codes, name, country, active status, total route count, airport count, codeshare route count, top origin airports (with route counts per airport), top destination airports (with route counts per airport), snapshot date (2017), attribution, and any data quality disclaimers or degradation flags.","failureModes":["Ambiguous airline code or name matching multiple airlines — disambiguate using openflightsId parameter","Airline not found in the 2017 snapshot — returns null or empty result","Inactive or defunct airline with no routes in snapshot — route count may be zero","IATA/ICAO code not recognized — endpoint may return null airline object","Payment failure via x402 protocol — call blocked before reaching the API"],"whenToPreferThis":"Use this endpoint when you need a quick summary of an airline's route footprint — total routes, top hubs, and codeshare activity — based on the 2017 OpenFlights snapshot. Ideal for aviation data enrichment, historical route analysis, or building airline profile cards. Not suitable if you need real-time or post-2017 route data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T12:30:54.903Z","isFirstParty":false,"canonicalSlug":"airlines-reference-route-count-top-airports-by-airline-b7e42cc8"}