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

Skyscanner API Integration for Flight Referral Attribution

Use Skyscanner API tracking for flight referrals. Preserve booking links, handle price changes and measure how travelers reach booking partners.

A woman studies a card with an airplane symbol at a table overlooking airport gates

Skyscanner API Integration for Flight Referral Attribution

A flight comparison page does more than display fares. It helps a traveler compare a journey, select a booking agent, and leave for a booking experience operated elsewhere. For a referral-focused product, that last step is both a user-experience commitment and a measurement boundary. If the outbound link loses its attribution information, the traveler may still reach a booking page while the referring business loses visibility into the referral.

A well-designed skyscanner api integration therefore connects three responsibilities: showing useful flight information before a click, passing the supplied booking link correctly, and recording what happened inside the comparison product. It must also acknowledge that prices and availability can change between search and booking. The objective is not to claim control over a partner's checkout, but to make each handoff accurate, traceable, and understandable.

Define the referral journey before choosing metrics

Start with a simple sequence: a traveler submits an intentional search, the flight interface shows comparable itineraries, the traveler selects an agent, and the browser opens the booking destination. Each step produces different evidence. A search request shows interest; a result impression shows what the interface displayed; an outbound click shows that a traveler chose to proceed. None of these events, alone, proves a completed ticket purchase.

Separate the search session from the booking handoff

The Flights Live Prices API uses a create-and-poll workflow to retrieve results. The initial response can contain an incomplete subset; subsequent polling can add or update results. Treat the search as a changing collection rather than a fixed list captured at the first response. Record when each offer became visible and which version was shown when the traveler clicked.

Use live pricing when the traveler has supplied a specific origin, destination and travel dates. Skyscanner's API usage guidelines require user-generated Live Pricing requests with those details known, rather than unattended automated searches. If dates are missing, request them or consider the indicative-pricing flow instead. This protects both relevance and the quality of resulting traffic.

Do not call a click a booking

Search-to-click measurement belongs to the comparison product: it can measure eligible search sessions, displayed options, selected agents and attempted departures. Post-click outcomes belong to a different evidence system. A booking partner may show a changed fare, request extra details, report a failed payment or complete a transaction; your click event does not reveal which occurred. Affiliate reporting may later provide attributable activity under its own definitions and timing.

Keep the terms explicit in dashboards. Name an outbound event booking-link click, not conversion, unless the latter is clearly defined as a click conversion. If downstream reporting is available, show it in a separate column with its source, reporting period and reconciliation status. This prevents attractive click-through rates from being mistaken for confirmed bookings or guaranteed commission.

Use the documented Skyscanner attribution path

Skyscanner's Flights Live Prices tracking guidance states that it works with Impact to track referred traffic and commission-related reporting. During affiliate onboarding, Impact identifiers are linked by Skyscanner to the partner's API key. Treat this as a prerequisite to verify with the relevant commercial and technical contacts, not something an application can independently activate by fabricating identifiers.

Preserve the supplied deeplink

A result's booking destination is supplied in the API's itinerary or pricing-option data. The link is a handoff artifact, not a string to normalize for aesthetics. Skyscanner explicitly warns against removing or changing link encoding because doing so can break tracking. Do not decode a nested destination and rebuild the redirect yourself, strip apparently unfamiliar parameters, convert it into an airline homepage URL, or silently substitute a generic search link.

Store the booking link with the matching itinerary, pricing option and agent in an appropriately protected server-side record, or keep it in tightly controlled application state. When the user clicks, serve that exact destination. If your product uses a first-party outbound endpoint to record clicks, make it a short, reliable handoff and avoid changes to the destination. Never expose the API key in the browser or a public redirect parameter.

Add campaign context without personal data

The tracking documentation recommends subid2 for additional campaign, keyword or product information. It describes the field as alphanumeric with a maximum of 255 characters, and notes that sharedid can be considered when non-alphanumeric characters are needed. These values can be reviewed in Impact reports. Use compact labels such as summerfare26 or comparedesktop rather than names, emails, phone numbers, booking references or raw search histories.

There is an important distinction between permitted tracking additions and rewriting links. Add an approved tracking field only in the documented location and format, preserving all existing parameters and encoding. Test the final link with the affiliate configuration rather than assuming a generic URL library will retain nested encoding byte for byte. A useful campaign label is not worth damaging the booking handoff.

Make the attribution contract reviewable

Document which application component receives each deeplink, who may append additional tracking context, and who owns the click record. Establish an allowlist for expected redirect hosts and a rule for handling unexpected destinations without transforming valid supplier URLs. Keep versioned examples from authorized test responses for regression testing, but exclude secrets and traveler information. The tracking contract should be understandable without searching through unrelated analytics code.

Build a comparison page that earns an informed click

Good outbound attribution starts before the button. A traveler who understands the itinerary, carrier, stopovers, agent and fare is more likely to make a meaningful choice than someone directed away from a vague promotional card. The interface should make comparisons fair and the handoff deliberate.

Show enough flight detail on every result

Skyscanner's usage guidance specifies core information before an airline or OTA deeplink: origins and destinations for all legs, travel dates, local departure times, direct versus indirect status, stopover counts and airports, carriers, booking agent, and comparison across itineraries. Display the main carrier for each leg without requiring an expansion. Make airport codes understandable through readable place names or accessible explanations.

Handle overnight and international date changes clearly. A flight arriving the following day needs an arrival-day indicator; the guidance explicitly anticipates positive and negative day offsets. Treat currency, passenger count, cabin and baggage or fare conditions carefully, displaying only details actually supported by your data. When a condition is unknown, label it unknown instead of filling the gap with a reassuring assumption.

Keep booking controls specific and visible

Use an obvious agent-and-price link or a visible booking button associated with the selected offer. Skyscanner's rules identify these as the parts of the itinerary box that may initiate an airline or OTA deeplink. Do not make the entire card an invisible referral click target, and do not send travelers directly to these partner deeplinks from banners or newsletters. Provide an unobscured route to fuller itinerary details.

When a traveler proceeds, open the agent in a new, unobscured tab as required by the guidelines. Label the control with meaningful text such as “Continue with Agent A” rather than merely “Go.” Provide a nearby explanation that the traveler will complete any purchase on the booking partner's site and that final price and availability may be checked there.

Model offers, not just flight rows

One itinerary may have multiple agents and prices. The selection should bind together the itinerary identifier, the chosen pricing option, agent identity, displayed currency, displayed price, result revision and exact deeplink. For journeys assembled from separate bookings, the API can provide more than one booking link. Present each necessary handoff distinctly and explain that all parts must be booked separately; do not report one click as completion of the combined trip.

Self-transfer journeys also deserve clear notices about potential baggage collection, recheck requirements and differences in protection. These design decisions are not merely disclaimers: they keep click quality aligned with what travelers expect to receive after leaving the comparison page.

Handle changing prices and unavailable agent offers

Flight results are time-sensitive. A previously displayed fare may become unavailable, an agent may stop returning a quote, or the price may rise before the traveler reaches checkout. A comparison interface should surface those uncertainties rather than promising a fixed amount based on an old result.

Refresh intelligently before the handoff

Skyscanner documents an itinerary price-refresh workflow using a refresh create request followed by polling. Its guidance describes a ten-minute cache period and notes that older sessions can take longer to refresh, with a new search required for sufficiently old sessions. This is a way to request fresher information, not a guarantee that the agent's checkout will reproduce the same fare.

Define a freshness policy based on elapsed time, result status and user action. When a refresh reports a changed price, update the visible amount and show a clear message before the traveler makes a new departure decision. Avoid auto-clicking on their behalf after a refresh. If refresh takes longer, keep the comparison page usable and indicate that the price is being checked without inventing a confirmation.

Give missing offers a graceful state

An absent agent result is not the same as a failed API request. Distinguish a still-running search, a valid result with no offer from that agent, an unavailable itinerary, an expired session and a technical error. Disable an obsolete booking button if its target no longer corresponds to an available quote. Offer a fresh search, another agent for the same itinerary when returned, or alternative flights; do not swap destinations behind the original agent's label.

After a user already clicked, you may not observe the partner's final landing state. Record the fact that the outbound link was initiated and, if your own redirect endpoint failed, record that separate failure. Do not imply that a later missing fare proves the earlier link was broken or that a successful redirect proves the traveler reached payment.

Recommended comparison-page states and their attribution treatment
State Traveler-facing response Measurement rule
Search in progress Display returned results and loading status. Track result visibility separately from session creation.
Price changed Show updated fare and request a new click decision. Attach the price revision to the eventual click.
Agent unavailable Remove or disable that offer; offer legitimate alternatives. Count unavailable offers, not outbound clicks.
Outbound initiated Open the preserved agent deeplink in a new tab. Record click attempt and handoff result separately.
Partner outcome unknown Do not invent a booking confirmation. Leave sale status unconfirmed until supported by reporting.
Two colleagues compare printed documents beside an airport window

Instrument outbound events without hijacking navigation

An outbound event should answer five questions: which search produced the offer, which offer was visible, which agent was chosen, when the choice happened, and whether your system initiated the destination handoff. It should not try to reconstruct the entire traveler identity or intercept the partner checkout.

Use a minimal first-party event model

Define separate events such as flight_search_submitted, itinerary_visible, agent_offer_selected, outbound_handoff_attempted and outbound_handoff_failed. Keep stable definitions across web and mobile implementations. A click record might include an opaque search correlation ID, an opaque selection ID, an internal itinerary key, an agent key, result revision, displayed price and currency, event timestamp, surface identifier and approved campaign label.

Record the displayed price as a measurement snapshot, not a sales value. If the traveler saw one fare and a refresh produced another, retain both observations with timestamps and mark which one accompanied the click. Avoid placing the entire deeplink in broadly accessible analytics logs; URLs can carry sensitive or operational parameters. Store the actual link only where needed for the handoff and troubleshooting.

Make event collection resilient but nonblocking

When the traveler activates a booking control, allow browser navigation rather than waiting on a fragile analytics request. A lightweight first-party endpoint, keepalive request or other supported delivery technique can record the attempt, but must not cause the button to appear unresponsive. If the tracking call fails, handle that as an analytics gap, not a reason to replace or corrupt the booking URL.

Design an idempotency key for each intentional activation so retries do not inflate click totals. Still distinguish repeated deliberate clicks from automatic network retries; the former may represent a genuine user action, while the latter should usually be deduplicated. Record failures in your own redirection layer independently from supplier-side outcomes you cannot directly observe.

Define denominators before publishing rates

Choose whether search-to-click rate means searches with at least one outbound click divided by eligible live-search sessions, or total outbound clicks divided by displayed offers. These are different measures. Publish the formula beside the metric, separate unique search sessions from total clicks, and exclude internal testing and automated traffic under explicit rules.

Skyscanner's usage guidelines discuss an expected range of roughly 5%–20% of user-generated Live Pricing create sessions producing an end-user booking deeplink, depending on product and market. Treat that statement as documented look-to-book guidance, not a performance promise for your site. Measure your own denominator consistently before diagnosing a shortfall.

For reporting accuracy, maintain two timestamps where useful: when the browser recorded the selection and when your collection service accepted it. Network delays, offline retries and clock differences can make those moments diverge. Group activity by an explicitly chosen reporting timezone, and document whether a search spanning midnight belongs to its start date or click date. Reconcile counts at a consistent grain, such as campaign and day, before investigating individual discrepancies. Avoid claiming that one Impact row must match exactly one local event: reporting eligibility, deduplication, timing and the commercial attribution model can differ from your application event model.

Worked hypothetical example: one search, two agents, one referral

Illustrative scenario only: A traveler searches London to Rome for one adult departing 18 March 2027. A comparison page creates a Live Pricing session and shows two agents for a direct itinerary. Agent A initially appears at GBP 142 and Agent B at GBP 150. Both offers have distinct booking links supplied with their respective pricing options. The interface records when each offer appears, but does not call either display a referral.

Several minutes later the traveler selects Agent A. The application refreshes the chosen itinerary and receives a revised Agent A price of GBP 157. It updates the offer, labels the price change, and asks for a fresh decision. The traveler decides that Agent B at GBP 150 is preferable, provided its offer remains available, and presses its visible booking button.

The selection event records the search correlation ID, Agent B, GBP 150 as the displayed selection price, the offer revision, and the campaign label springcompare27. The permitted subid2 tracking context is associated with Agent B's supplied deeplink without rewriting its underlying encoding. The browser opens that exact destination in a new tab. The comparison site's report now contains one search session, two displayed agent offers, one changed-price observation and one Agent B outbound handoff.

Suppose the booking page later quotes GBP 153, and the traveler decides not to buy. Unless an authorized downstream report provides that information, the comparison application cannot know those facts. Its own confirmed result remains one outbound click, not a sale. If Impact later attributes eligible activity to the campaign, report that activity separately with the network's timestamps and definitions. The example demonstrates why precise link preservation and honest metric labels matter more than a misleading end-to-end funnel.

Keep identifiers and reports privacy-conscious

Referral attribution does not require putting traveler identity into an outbound link. The tracking guidance specifically says not to include personally identifiable information such as customer email addresses in tracking parameters. The safest default is an opaque, purpose-limited identifier for your own analytics, paired with a short, nonpersonal campaign label only when a network-facing parameter is justified.

Separate internal correlation from affiliate labels

An internal search correlation ID can connect events inside your application without being exposed to the booking partner. Generate it independently of email addresses, phone numbers or account identifiers. Prefer rotating or expiring identifiers as appropriate to the reporting window, and avoid treating a browser fingerprint as a convenient replacement for consented measurement. A label like flightgridmobile can describe the product surface without naming the traveler.

Define event retention, access controls and deletion procedures before enabling dashboards. Mask or restrict deeplinks in incident logs, because a URL can contain more than a destination name. If you use client-side analytics, check applicable consent and privacy requirements for the markets served; do not assume that participation in an affiliate program overrides those obligations.

For reconciliation, use campaign-level dimensions and aggregated counts where possible. If a more granular matching scheme is genuinely necessary, validate it against the tracking rules, contractual permissions and privacy review first. A technically accepted parameter is not automatically an appropriate container for persistent cross-site identifiers.

Validate behavior across real failure conditions

Testing should follow the complete traveler action, not merely inspect JSON responses. Confirm that create and poll results populate the correct offer cards, each booking button maps to its own agent link, and your analytics event reflects the price actually shown at selection time. Check long deeplinks, already encoded query values and links containing nested destinations without attempting to simplify them.

Use controlled test cases for price increases, decreases, no returned agent offer, refresh timeout, expired search, double-click, network interruption, browser popup restrictions, and a rejected first-party event request. Verify that failures do not generate a false sale or silently redirect to another agent. Check multi-leg and separately booked journeys so the interface shows every required booking action instead of hiding additional links.

Run accessibility checks alongside link checks. Booking controls need discernible names, keyboard focus, visible state changes and readable price-update messages. Screen-reader users should receive the same agent, stopover and date-change information as sighted users. The required “Powered by” Skyscanner logo and link should remain recognizable, correctly sized and accessible without displacing essential itinerary content.

Finally, coordinate an approved live attribution test with the relevant partner contacts. Confirm that the outbound URL remains unchanged apart from documented tracking additions, that campaign labels appear in the expected Impact reporting dimension, and that your internal click timestamps can be compared without assuming instantaneous or one-to-one network reporting.

Turn click data into responsible product improvements

Review the funnel by device, search completeness, itinerary type, agent, result freshness and price-change state. A low click rate may reveal confusing fare presentation, missing itinerary detail, unattractive options or users who were only researching. A high click rate alongside poor downstream results may merit investigation, but neither outcome alone identifies a booking-partner failure.

Analyze operational issues separately: broken first-party redirects, unavailable agent offers, refresh delays, outdated fare labels and duplicate events. These are problems a comparison product can directly test and improve. Treat affiliate-reported activity as an additional layer with its own data latency, eligibility rules and reconciliation process, not as a field that automatically updates your internal click rows into confirmed tickets.

TravelTech365 approaches this kind of integration as a connected design, data and measurement problem. The practical target is a flight comparison experience that gives travelers enough information to choose, respects Skyscanner's supplied booking links, responds clearly when prices change, and produces reporting that distinguishes observed referrals from outcomes controlled by booking partners. That is a stronger foundation for trustworthy flight referral attribution than simply counting button presses.