● Travel Never Stops. Neither Do We. 365 Days a Year.

Flight Aggregator API Design for Measurable Supplier Coverage

Measure how much distinct, bookable inventory each flight supplier adds and decide when to widen or narrow a search.

A travel analyst holds two printed charts next to a window overlooking the airport apron.

A flight aggregator api should answer a commercial question before it answers a technical one: what genuinely additional, bookable choice does each supplier contribute? Counting returned offers is not enough. Two connections can surface the same flights, while a smaller connection may unlock a valuable route, fare condition, or permitted sales channel. Measure that difference before paying for another search.

Coverage Is Incremental

An aggregator can connect to many sources and still offer little distinctive inventory. A single itinerary may appear through several distribution paths with different identifiers, currencies, prices, or labels. Reporting every row as additional coverage inflates the catalog without showing what the traveller could actually choose. A defensible coverage model starts with the customer's eligible search and ends with an offer that can proceed through the intended booking workflow.

Define gross coverage as the set of candidates a supplier returns, usable coverage as the subset meeting policy and data-quality checks, and incremental coverage as the usable choices unavailable from the suppliers already searched. Keep these concepts separate. A supplier may return substantial inventory but contribute little incremental choice; another may return few offers yet resolve an important gap.

Coverage is not the same as confirmed ticketing. A search result can expire, reprice, or fail during subsequent verification. Measure availability at search time and the later validation outcome independently. That distinction prevents a fast response containing fragile prices from looking superior to a slower connection with more reliably confirmable offers.

Useful inventory differs by business: corporate travel may favour flexibility, leisure travel total cost, and regional sellers channel permissions. Define those priorities before ranking providers.

Define Eligible Search Demand

Define Eligible Searches

Start with a canonical search event: origin and destination airports or permitted metropolitan areas, travel dates, journey type, passenger mix, cabin, point of sale, residency where relevant, currency, and requested commercial conditions. Attach a stable search ID and the policy version used to evaluate it. Treat repeated refreshes and user edits as separate attempts only when the methodology says so; otherwise a popular user refreshing ten times can distort supplier performance.

Use representative demand segmented by market, booking horizon, domestic or international travel, passengers, cabin, device, and channel. Report both search counts and demand-weighted results; weighting estimates business impact, while counts expose gaps in uncommon markets.

For supplier s, eligibility share equals searches on which the supplier may legitimately be queried divided by all searches in the defined population. It is not the supplier's response rate. Eligibility depends on contractual permissions, regional access, fare programme qualifications, request support, and the product's own booking capabilities. A prohibited query is not a supplier failure.

Hold Search Conditions Constant

Score suppliers against the same search intent and comparable conditions. If one request accepts checked-bag-inclusive fares and another excludes them, their apparent yield may differ because the requests differ. Store a comparison envelope covering itinerary constraints, time window, cabin, fare requirements, passenger eligibility, acceptable transfer risk, and response deadline. Report coverage outside that envelope separately instead of quietly widening the definition to favour a provider.

Partition the denominator into eligible and attempted, eligible but deliberately not attempted, and ineligible. This separates a supplier's theoretical reach from an orchestration policy that calls it only when needed. The distinction is essential: a provider cannot receive credit for availability on searches it was never tested against, but it should not be penalised for being intentionally skipped by a cost-saving rule.

Normalize Itineraries and Fare Rights

Match the Operated Journey

Airline names and offer IDs are poor deduplication keys. Create an itinerary signature from ordered operating segments: operating carrier, flight number where reliable, origin and destination airports, local departure date and time, arrival time, and cabin. Include intermediate connections and segment order. Marketing codeshare labels should not turn the same operated journey into multiple distinct itineraries. Conversely, different airports, operating legs, meaningful departure windows, or travel days can make two journeys genuinely different.

Be cautious with time changes and schedule updates. A small schedule shift might represent an update to the same flight, not a new product. Define tolerance and identity rules by data quality, and retain the original source attributes for investigation. If an operating carrier or segment is missing, flag uncertain identity and avoid automatically counting the candidate as unique. False uniqueness systematically rewards poor data.

Distinguish Fare Conditions

Within an itinerary, construct a fare-condition signature. Include cabin, included checked and cabin baggage, change permission and penalties, refundability, relevant advance-purchase or traveller restrictions, ticketing construct, and any other conditions material to the intended customer. Preserve unknown values as unknown. Do not interpret missing baggage or refund data as a zero allowance or a restrictive policy without evidence.

Two offers on the same operated journey may be distinct retail choices if one includes a checked bag and changes while the other does not. A lower price for the same itinerary and conditions is not a new itinerary, but it can be a price-improvement event. Track that in a separate ledger, with a consistent total-price comparison covering taxes, mandatory charges, currency conversion assumptions, and permitted payment method.

One provider-specific example illustrates why the display format must not dictate counting. Duffel documents a flat offers response and a grouped itineraries response that organizes shared segments, fare brands, and priced offers; its itinerary representation also handles enabled split-ticket combinations. See Duffel's guide to choosing a search response format. These are Duffel's documented response options, not a universal supplier schema. Normalize whichever shapes a licensed integration actually supports before comparing coverage.

Do not automatically equate a split-ticket combination with a protected single-ticket journey. It may create distinct customer choice, but only if the seller supports the booking, disclosures, servicing, and connection-risk policy. Tag ticketing construct as part of the fare's commercial identity rather than merging unlike obligations under a similar itinerary label.

Instrument the Search Funnel

Record Supplier Outcomes

For every search-supplier pair, log eligibility status, exclusion reason, orchestration decision, request parameters, correlation ID, start time, deadline, completion time, response format, raw candidate count, normalized count, usable count, and incremental count. Include the active commercial permission and policy versions. Keep logs auditable without unnecessary personal data or credentials.

Maintain mutually exclusive top-level outcomes: not eligible, eligible but skipped, attempted and completed, attempted and timed out, attempted and failed, or cancelled because the customer abandoned the search. A completed response with zero matching offers is different from a transport failure. A response received after the display deadline is not timely coverage even if it later adds inventory to a diagnostic dataset.

For attempted requests, measure timely usable response rate as requests returning at least one policy-compliant candidate before the deadline divided by attempts. Separately measure technical completion rate, median and tail latency, zero-result rate, normalization rejection, and post-selection validation success. A completed empty response may be legitimate, so do not classify it as an outage without supporting evidence.

Find the Timeout Source

A shared customer-facing deadline can mask several causes: the orchestration layer may launch a supplier late, the supplier may respond slowly, the network may fail, or the aggregator may complete parsing after the response arrives. Timestamp queue entry, dispatch, first byte, final byte, normalization finish, and presentation cutoff. Label the phase in which the budget was exhausted. Do not blame suppliers for local queueing.

Keep late results in an analytical record with their arrival times, but exclude them from the user-visible timely-coverage numerator. Compare late-result composition with on-time offers to estimate the opportunity cost of an aggressive cutoff. Do not assume a late offer would have been booked: the customer may have moved on, and the price might not survive verification.

When suppliers have unequal sampling probabilities, report the sampled nature of results and avoid treating unobserved inventory as zero. Use randomized exploration on a permissioned fraction of traffic, with explicit cost and latency limits, to assess suppliers normally suppressed by the current policy. Otherwise the system will reinforce its own earlier routing decisions and declare the excluded source unproductive.

Quantify Overlap and Marginal Value

Compute overlap at several levels. Itinerary overlap asks whether two sources return the same operated journey. Fare-condition overlap asks whether they return materially equivalent selling propositions. Price overlap asks whether the incumbent can match the challenger within an agreed total-price threshold. Reporting only one number hides whether a supplier contributes different flights, better rights, or simply alternative prices.

For a defined search cohort, calculate a supplier's marginal distinct-offer yield as usable itinerary-and-condition signatures not already seen from the active comparison set. Calculate search-level lift as the fraction of eligible, comparably tested searches on which the supplier adds at least one useful option. A supplier delivering ten more fare variants on one search should not be mistaken for a supplier solving gaps across ten searches.

Marginal value depends on order. If supplier B and supplier C both return an itinerary absent from A, the first added source receives credit under a sequential accounting rule. Publish the baseline and sequence: for example, B after A, then C after A plus B. For strategic comparisons, supplement this with leave-one-out analysis or a sampled order-averaged attribution so shared incremental inventory does not become a political dispute.

Keep availability lift, condition lift, and price improvement distinct. Availability lift means a new usable itinerary or fare right exists. Condition lift means a materially better restriction or inclusion exists for an otherwise matched trip. Price improvement requires an equivalent comparison and an explicit threshold, such as savings exceeding both a fixed amount and a percentage. The chosen threshold is a product policy, not a supplier property.

Deduplicate within each search, not across unrelated dates or passenger requests. One flight may be the same physical service across two user searches but represent valid coverage in both. For auditing, retain both the per-search signatures and the cohort-level aggregates. Sample manual reviews of ambiguous matches, because small identity errors can materially skew the ranking of suppliers with highly overlapping networks.

Balance Yield, Cost, and Latency

Model Marginal Cost

Search cost can include metered requests, partner fees, compute, data transfer, normalization overhead, and the cost of additional user-visible latency. Where commercial pricing is confidential or not request-based, use an internally approved marginal cost model rather than inventing vendor rates. Separate variable cost from fixed integration and support expense; they answer different decisions.

A useful primary efficiency measure is incremental usable signatures per unit of marginal search spend. Pair it with incremental searches helped per unit of spend, because signature-heavy sources can otherwise dominate. For commercial prioritization, estimate incremental validated selections, bookings, or contribution margin, but label these as observed outcomes only when attribution and sample size support the claim.

Cost per added choice does not capture the entire customer experience. An extra connection might improve the displayed cheapest equivalent fare yet delay the initial results. Track first useful result, time to stable comparison, tail latency, abandonment, and changes in bookability. Treat uncertain causality carefully: a supplier might be correlated with slower searches because it is selected for the hardest markets.

Define a practical efficiency frontier. A provider belongs on it when no alternative policy achieves equal or better useful coverage with both lower marginal cost and lower latency. This avoids reducing all decisions to a single opaque score. Procurement, product, and engineering can debate visible trade-offs rather than argue over an unexplained vendor ranking.

Search Expansion and Suppression

Triggers for Expansion

Begin with a permissioned core supplier set that reliably returns an acceptable initial result. Consider a second wave when the first wave leaves a search empty, lacks a required fare condition, offers poor departure-time diversity, misses an important carrier or connection pattern, or has an unfavourable equivalent total price relative to a defensible internal benchmark. Define each trigger with observable fields and an auditable policy version.

Estimate expected incremental value for the next supplier using historical results from comparable searches, corrected for selective exploration. A rule might require an estimated probability of adding a timely usable choice above a configured threshold, with enough latency budget remaining and an expected incremental benefit above its marginal cost. Choose thresholds from measured demand and economics; there is no universal percentage that makes sense for every market.

Keep a reserved timeout budget for retrieval, normalization, presentation, and customer interaction. Do not launch a late supplier if its probable useful response would arrive after the customer-facing cutoff. Timely, narrower results can beat invisible, late coverage.

Conditions for Suppression

Suppress routine calls on search segments where a supplier repeatedly returns equivalent offers, low validation success, or small incremental lift per cost. Use minimum sample requirements and uncertainty bounds before changing routing. One poor day or a temporary outage should trigger investigation, not a permanent commercial verdict.

Deliberate exclusions should be first-class records: unauthorized point of sale, unsupported passenger type, excluded ticket construct, missing servicing capability, customer preference, insufficient remaining deadline, or cost cap reached. Report the count and reason separately. This lets analysts distinguish a shrinking result set caused by rational policy from genuine loss of supplier coverage.

Keep an exception path for strategic markets and customer obligations. A low-frequency destination, accessibility requirement, or negotiated corporate programme may justify retaining a supplier despite modest aggregate yield. Apply segment-specific protections and periodic review rather than letting a global average erase important minority demand.

Channel and Booking Permissions

Supplier access is conditional, not interchangeable. A fare might be visible under one commercial agreement but not saleable through every agency, geography, customer category, or booking channel. Maintain a permission matrix keyed by supplier, point of sale, seller entity, channel, fare programme, passenger qualification, and permitted servicing workflow. An offer is eligible only when the relevant combination is authorized at the time of search and booking.

Separate permitted to search, permitted to display, permitted to book, and operationally serviceable. A technical response cannot override a commercial restriction. Private or negotiated fares require the applicable entitlement; absence of entitlement should produce an exclusion reason, not a perceived inventory defect. Keep policy evidence, responsible owner, effective dates, and approval history.

For a concrete but provider-specific booking boundary, the Duffel Offers API documentation describes offer expiration and recommends retrieving an offer's current details when a traveller is considering booking. It also states that retrieval does not guarantee availability at booking time. Use this as a reminder to separate search coverage from refreshed and ultimately fulfilled outcomes; do not assume other suppliers share its fields, expiry pattern, or booking flow.

Measure bookability through an appropriately sampled, consented validation funnel: offer displayed, selected, repriced or refreshed where supported, booking attempted, and order confirmed. Record the reason for drop-off without attributing every failure to the supplier. Customer cancellation, payment decline, invalid traveller details, and inventory change are different causes. Do not run speculative live bookings merely to inflate a coverage metric.

Weekly Supplier Decision

Consider an illustrative travel platform evaluating three fictional sources—Alpha, Beta, and Gamma—across 1,000 normalized flight searches in one week. Its baseline is Alpha. Beta is measured after Alpha, and Gamma is measured after Alpha plus Beta on a controlled, permissioned cohort. The numbers below are invented for method demonstration, not supplier benchmarks, industry averages, or observations about any named API.

Each row reports the number of searches contractually and operationally eligible for that source, actual calls, calls returning at least one usable option before the display deadline, distinct itinerary-and-condition signatures seen within comparable search events, and signatures absent from earlier sources in the stated sequence. Spend is illustrative marginal search expense for that row's calls; it excludes fixed development costs. All comparisons use the same passenger, channel, and fare-quality policy.

Hypothetical weekly supplier coverage; sequence: Alpha, Beta, Gamma.
Source Eligible searches Calls Timely usable calls Distinct signatures New signatures Searches helped Marginal spend
Alpha, baseline 850 800 760 2,400 Baseline Baseline $80
Beta, after Alpha 600 500 420 1,500 240 130 $150
Gamma, after Alpha and Beta 400 300 210 900 90 48 $180
Four colleagues compare routes on a large map in a room facing an aircraft stand.

Beta's observed marginal yield is 240 additional signatures divided by $150, or 1.60 signatures per dollar. It helps 130 searched journeys, equivalent to 26% of its 500 attempted searches. Gamma produces 90 divided by $180, or 0.50 signatures per dollar, and helps 48 of 300 attempts, or 16%. These figures do not prove that Beta is intrinsically better: eligibility, route mix, launch order, and deliberate call selection differ.

Now review the funnel. Alpha's timely usable rate is 760/800, or 95%; Beta's is 420/500, or 84%; Gamma's is 210/300, or 70%. Those fractions describe responses containing usable inventory within the deadline, not raw network uptime. Investigators find that some Gamma requests waited in an internal queue before dispatch. The vendor should not be assigned those missed deadlines without phase-level attribution.

For this hypothetical week, the team keeps Alpha as the default, retains Beta as a targeted second wave on eligible searches lacking breadth or a required condition, and narrows Gamma to markets where its observed additions are concentrated. It does not remove Gamma outright. Instead, it authorizes a small randomized eligible cohort to measure what selective routing may have hidden, while engineering corrects queueing and reruns the comparison.

The weekly decision document records the cohort definition, spend model, matching rules, confidence intervals, excluded-search counts, and the version of the widening policy. It also asks whether Beta's added signatures survived selection and refresh more often than Gamma's. If not, the apparent yield advantage may disappear closer to booking. Decisions are provisional until outcomes are stable across representative weeks.

Governance and Weekly Reviews

Review Uncertainty and Rollback

A practical review should begin with demand mix and eligibility changes, then show attempted coverage, timely usable returns, incremental itinerary lift, condition lift, equivalent-price improvements, validation success, marginal spend, and latency. Segment each measure where decisions differ. A single worldwide supplier rank is usually less useful than route-market and channel-level policies.

Give every metric a written definition, numerator, denominator, exclusion treatment, and refresh schedule. Mark insufficient samples rather than displaying false precision. Include uncertainty intervals or bootstrap ranges for search-level lift, especially when relatively few searches drive the apparent difference. Compare like-for-like cohorts or use carefully designed holdouts when policy changes affect which supplier receives traffic.

Assign ownership across functions. Commercial teams verify permissions and economic assumptions. Product teams define what constitutes useful traveller choice. Engineering owns timestamp integrity and identity matching. Operations evaluates whether offers can be fulfilled and serviced. Finance approves marginal cost allocation. A vendor review that excludes any of these perspectives risks optimizing a convenient proxy rather than the complete customer journey.

Make policy changes reversible. Record which routes and channels gain or lose searches, expected benefits, risk limits, owners, activation dates, and rollback triggers. Monitor the post-change results against a holdout, with alerts for empty-search growth, worsening tail latency, booking validation failures, or unexpected entitlement rejections. Dashboard improvement alone does not establish customer benefit.

Coverage Reporting

The final report should be able to answer five plain-language questions: which customer searches each supplier was allowed to serve; which were actually attempted; what distinct, timely, policy-compliant choice appeared; what that extra choice cost; and whether it remained usable when a customer moved toward booking. It should also identify the inventory intentionally excluded, without treating that absence as a provider failure.

That discipline makes a flight aggregator api easier to govern. Expanding search becomes a measured response to a defined gap; narrowing search becomes a documented trade-off rather than an arbitrary cost cut. Most importantly, supplier coverage stops being a contest over raw offer counts and becomes an accountable measurement of useful choice delivered within commercial and operational boundaries.