search-cheapest-flight

skyscanner.net/search-cheapest-flight-v8nvut · updated May 21, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$browse install skyscanner.net/search-cheapest-flight-v8nvut
0 commentsdiscussion
summary

Search Skyscanner for the cheapest one-way flight between two cities on a given date, returning price, airlines, depart/arrive times + airports, duration, stops, layovers, self-transfer flag, the 7-day nearby-date price strip, and the canonical Skyscanner config-URL deeplink that surfaces OTA/airline provider booking options. Read-only — never books.

skill.md
name
search-cheapest-flight
title
Skyscanner Cheapest Flight Search
description
>- Search Skyscanner for the cheapest one-way flight between two cities on a given date, returning price, airlines, depart/arrive times + airports, duration, stops, layovers, self-transfer flag, the 7-day nearby-date price strip, and the canonical Skyscanner config-URL deeplink that surfaces OTA/airline provider booking options. Read-only — never books.
website
skyscanner.net
category
travel
tags
- flights - travel - skyscanner - search - perimeterx - read-only
source
'browserbase: agent-runtime 2026-05-19'
updated
'2026-05-19'
recommended_method
browser
alternative_methods
- method: browser rationale: >- Skyscanner has no public/free flight-search HTTP API. The site's internal XHR endpoints are gated behind PerimeterX cookies and not exposed in server-rendered HTML. `browse cloud fetch --proxies` returns 200 OK on Skyscanner pages but the HTML is a SPA shell — only the searchParams are server-rendered, never the flight itineraries. Browser-driving the .com TLD with --verified --proxies is the only path that surfaces results.
verified
true
proxies
true

Skyscanner Cheapest Flight Search — Browser Skill

Purpose

Given an origin city, destination, and departure date, return the cheapest one-way flight Skyscanner has for that route on that day — total price, airline(s), depart/arrive times + airports, total duration, stop count + layover airports, and the canonical Skyscanner "config" deeplink that surfaces OTA/airline provider booking options. Read-only; never clicks "Continue to provider" / "Book".

When to Use

  • One-shot "what's the cheapest flight from X to Y on date D?" queries.
  • Daily monitoring of headline cheapest-fare prices across multiple routes.
  • Price-band discovery — the search results page also exposes a 7-day price strip (e.g. "Jun 12 $247, Jun 13 $281, ..."), useful for "is my date cheaper than ±3 days".
  • Anywhere a human would otherwise scroll through Skyscanner results just to copy the top "Cheapest" card.

Workflow

Skyscanner is heavily protected by PerimeterX ("Are you a person or a robot?" / Press & Hold). There is no public/free flight-search HTTP API (the JS bundle's XHR endpoints are gated behind PerimeterX cookies; reverse-engineering them is significantly more expensive than driving the browser). The recommended path is a CDP browser session with stealth + residential proxies, on the .com TLD, with a homepage warmup.

1. Stealth + residential-proxy session, .com TLD only

SID=$(browse cloud sessions create --keep-alive --verified --proxies | node -e "let s='';process.stdin.on('data',c=>s+=c).on('end',()=>process.stdout.write(JSON.parse(s).id))")
export BROWSE_SESSION="$SID"

Both --verified and --proxies are mandatory. A bare session (or --verified without --proxies) hits PerimeterX on the first request.

2. Homepage warmup (CRITICAL)

browse open "https://www.skyscanner.com/" --remote
browse wait timeout 8000 --remote
browse get url --remote

If the URL after wait contains /sttc/px/captcha-v2/, this session is dead — release it and create a new one. Do not try to click the "Press & Hold" button (see gotchas). Roughly 1 in 3 fresh --verified --proxies sessions bypass PerimeterX cleanly on the .com homepage; the rest get walled and stay walled. Plan for retries.

Once the homepage loads, a login modal appears — dismiss it:

browse snapshot --remote   # find the dialog's close-button ref (label "Close" / "Close modal")
browse click "<ref>" --remote
browse wait timeout 3000 --remote

3. Navigate to the search URL

# URL shape: /transport/flights/{origin-iata-or-metro}/{dest-iata-or-metro}/{YYMMDD}/?adultsv2=1&cabinclass=economy&rtn=0&preferdirects=false&ref=home
browse open "https://www.skyscanner.com/transport/flights/lond/del/260615/?adultsv2=1&cabinclass=economy&childrenv2=&ref=home&rtn=0&preferdirects=false" --remote
browse wait load --remote
browse wait timeout 15000 --remote   # live polling completes in 10–25s
browse get url --remote               # verify not redirected to captcha

lond is the Skyscanner metro code for London (all airports: LHR/LGW/STN/LTN/LCY/SEN). del is Delhi (DEL). Use IATA airport codes for single-airport queries (lhr, jfk, etc.) or metro codes for "any airport in city" (lond, nyca, chia, parl, tyoa). The 6-digit date slug is YYMMDD (2026-06-15 → 260615).

Common modal interruptions after wait timeout 15000:

  • "Flexible on your dates?" popover — has a Close button in the snapshot; dismiss it.
  • "Skyscanner never takes a cut" interstitial — appears on the provider/config page (step 6); has a Close button or a "Continue" button.

4. Switch to "Cheapest" sort

The default sort is "Best" (Skyscanner's price/duration blend) and it puts a sponsored card at the top — the actual cheapest result is rarely first. Click the Cheapest tab button (text label: "Cheapest <Xh Ym>" where <Xh Ym> is the lead cheapest duration):

browse snapshot --remote   # find ref labeled "Cheapest 32 hours 55 minutes" or similar
browse click "<ref>" --remote
browse wait timeout 3000 --remote
browse snapshot --remote

5. Read the cheapest itinerary card

Skyscanner renders each itinerary as an a11y link with verbose human-readable text — extract directly from the snapshot rather than reading visible pixels. Look for the first non-sponsored card after switching to Cheapest. Card text format:

Flight option N: Total cost $XXX. Flight with <Airline1>[, <Airline2>]. Departing from <Origin> at <HH:MM AM/PM>, arriving in <Destination> at <HH:MM AM/PM>[, N days later]. <Direct|Indirect> flight taking Xh YYm[ with one stop in <City>][. You need to change airports in <City>]. Carry-on bag info {known|unknown}. Checked bag info {known|unknown}. Prices include taxes and charges.

Regex-extract from the StaticText:

  • Price: Total cost \$([0-9,]+)
  • Airlines: Flight with ([^.]+)\.
  • Depart: Departing from ([^ ]+(?: [^ ]+)*) at (\d{1,2}:\d{2} [AP]M)
  • Arrive: arriving in (.+?) at (\d{1,2}:\d{2} [AP]M)(?:, (\d+) days? later)?
  • Duration: taking (\d+) hours? (\d+) minutes?
  • Stops: (Direct|Indirect) flight + with (one|two|three) stops? in ([^.]+)
  • Self-transfer flag: presence of You need to change airports OR Self-transfer

Sponsored cards have the StaticText Sponsored by <Airline> in the heading — skip them when extracting the "headline cheapest" even though they appear in position 1.

6. Capture the provider deeplink (canonical config URL)

Click the "Select" button on the cheapest itinerary's card. The browser navigates to a deterministic config URL:

https://www.skyscanner.com/transport/flights/{orig}/{dest}/{YYMMDD}/config/{itinerary-key}?adultsv2=1&cabinclass=economy&childrenv2=&ref=home&rtn=0&preferdirects=false

The {itinerary-key} encodes the full itinerary, e.g. 16574-2606151540--32570,-32213-1-10957-2606170505:

  • 16574 — first carrier ID (Skyscanner internal)
  • 2606151540 — depart timestamp (YYMMDDhhmm: Jun 15 2026 15:40)
  • -32570,-32213 — flight number tokens (negative = carrier-encoded)
  • 1 — number of stops
  • 10957 — layover airport ID
  • 2606170505 — arrival timestamp (Jun 17 2026 05:05)
browse click "<select-ref>" --remote
browse wait load --remote
browse wait timeout 8000 --remote
browse get url --remote   # capture the config URL — THIS IS THE "PROVIDER LINK"

Critical: the config page is significantly more aggressively walled by PerimeterX than the search-results page — about 70% of sessions that survived through step 5 get walled on step 6. Capture the config URL via browse get url immediately after navigation; the URL itself is the canonical provider-selection deeplink that a human (or downstream agent on a fresh session) can open to see the OTA/airline price list.

If the snapshot does render on the config page (rare), the provider list appears as a series of cards: <Provider> $X — Select. Common providers seen for LON→DEL: Trip.com, Kiwi.com, MyTrip, Mytrip.com, Etihad direct, Emirates direct, British Airways direct, Air India direct. Do not click "Continue to <provider>" — that starts the booking flow.

7. Release the session

browse cloud sessions update "$SID" --status REQUEST_RELEASE

Site-Specific Gotchas

  • READ-ONLY. Never click "Continue to <provider>" or "Book" on the config page — that initiates the booking flow.
  • PerimeterX is the dominant blocker. Verified across 4 iterations: 2 of 4 fresh --verified --proxies sessions made it past PerimeterX on the .com homepage; the other 2 were walled immediately and stayed walled. There is no known way to recover a walled session in this sandbox — release and create a new one.
  • .com is the only TLD that works under US-egress proxies. .net (Skyscanner's primary brand domain) hits PerimeterX on every request. .co.uk was tested once — also walled. The US .com site is the most permissive entry point.
  • Don't try to solve the captcha. The PerimeterX "Press & Hold" challenge requires a true 4–5 second mousedown event; browse click emits a single press-release. The accessible-challenge button (small icon to the left of "Press & Hold") also failed to clear the wall in testing. Detect via URL pattern /sttc/px/captcha-v2/ and immediately release the session.
  • browse cloud fetch --proxies returns 200 on Skyscanner pages — but the HTML is a SPA shell. The initial server-rendered HTML contains only window["__internal"] = { searchParams: {...} } (the query, never the results). Flight data is loaded entirely client-side via XHR endpoints that are not referenced in the HTML and require PerimeterX cookies. Plain-HTTP scraping is not a viable shortcut for results extraction.
  • window["__internal"] is JS, not JSON. If you do parse the embedded shell config for the searchParams (e.g. to read the resolved originEntityId/destinationEntityId), strip undefined literals before JSON.parse (s.replace(/:\s*undefined\b/g, ":null")) — they're not legal JSON.
  • Default sort is "Best", and "Best" puts a sponsored card in position 1. Always click the Cheapest tab before extracting the headline cheapest. The lead-card widget at the top of the results page also exposes Cheapest's headline duration without sorting (e.g. "Cheapest 32 hours 55 minutes"), useful for a quick price+duration peek without clicking through.
  • Currency is locked by the TLD + egress IP geo. On .com from a US-egress proxy, currency is USD and cannot be changed via URL param — &currency=GBP is silently ignored. For GBP pricing you need a UK egress proxy on .net (which is more aggressively walled). Document the currency in the output.
  • "Self-transfer" itineraries are the cheapest tier on LON→DEL. The cheapest result observed (2026-06-15) was a $278 self-transfer via Istanbul on AJet + IndiGo, requiring an airport change in Istanbul (32h 55m total). The cheapest direct would have cost ~$436 (10h 31m, sorted as "Best"). Always preserve the self_transfer flag in the output — it's a critical UX caveat (passenger must collect bags + re-check in at the layover).
  • Sponsored cards show Sponsored by <Airline> in the card heading. Skip them when finding the "headline cheapest". They appear regardless of sort tab.
  • Modal interruptions that block snapshot reads:
    • "Flexible on your dates?" — pops up over results ~1–3s after load.
    • "Skyscanner never takes a cut" — interstitial on the config page.
    • Login modal on the homepage. All have an unambiguous Close button in the snapshot tree.
  • Live polling: the results page polls multiple providers and re-sorts as new prices arrive. Always wait wait load + wait timeout 15000 before snapshot. Reading too early returns a partial result set.
  • browse wait load is short — it returns within 1s after the page-load event fires. The 15s timeout after wait load is doing the actual work of waiting for the XHR-driven result polling to complete.
  • The config URL is stable and shareable. A user (or another agent on a fresh session) can open the canonical /config/{itinerary-key} URL directly to see the provider list — no session state required. The itinerary-key is the authoritative reference for that specific itinerary.
  • The config page is more heavily walled than the search results page. Even sessions that breezed past PerimeterX on the homepage + results page often get walled when navigating to /config/. Capture the URL via browse get url immediately after the post-Select navigation — don't wait for browse snapshot to fail.
  • Metro codes: lond (London all), nyca (New York all), chia (Chicago all), lax (Los Angeles all is laxa), parl (Paris all), tyoa (Tokyo all). For single-airport, use the IATA code lowercased (lhr, jfk, cdg). The site will redirect single-airport codes to the right URL.
  • Confirmed dead ends — don't try these:
    • PerimeterX captcha solving via browse click on the Press & Hold button — does nothing.
    • m.skyscanner.net (mobile) — also fully behind PerimeterX.
    • skyscanner.com/g/conductor/v1/fps3/search/ direct HTTP — endpoint exists but rejects unauthenticated requests.
    • Reading flight results from the initial server-rendered HTML — only search params, never itineraries.

Expected Output

{
  "success": true,
  "query": {
    "origin": "LON",
    "origin_label": "London (Any)",
    "destination": "DEL",
    "destination_label": "New Delhi (DEL)",
    "depart_date": "2026-06-15",
    "trip_type": "one-way",
    "cabin_class": "economy",
    "adults": 1
  },
  "cheapest": {
    "price": 278,
    "currency": "USD",
    "airlines": ["AJet", "IndiGo"],
    "depart_airport": "STN",
    "depart_airport_label": "London Stansted",
    "depart_time_local": "15:40",
    "arrive_airport": "DEL",
    "arrive_airport_label": "Delhi Indira Gandhi International",
    "arrive_time_local": "05:05",
    "arrive_day_offset": 2,
    "duration_minutes": 1975,
    "stops": 1,
    "layover_cities": ["Istanbul"],
    "self_transfer": true,
    "self_transfer_note": "You need to change airports in Istanbul",
    "config_url": "https://www.skyscanner.com/transport/flights/lond/del/260615/config/16574-2606151540--32570,-32213-1-10957-2606170505?adultsv2=1&cabinclass=economy&childrenv2=&ref=home&rtn=0&preferdirects=false"
  },
  "lead_card_summary": {
    "best": { "price": 436, "duration_minutes": 615 },
    "cheapest": { "price": 278, "duration_minutes": 1975 },
    "fastest": { "price": 783, "duration_minutes": 510 }
  },
  "price_strip_nearby_dates": [
    { "date": "2026-06-12", "price": 247, "is_low": true },
    { "date": "2026-06-13", "price": 281 },
    { "date": "2026-06-14", "price": 261 },
    { "date": "2026-06-15", "price": 278, "selected": true },
    { "date": "2026-06-16", "price": 255 },
    { "date": "2026-06-17", "price": 247, "is_low": true },
    { "date": "2026-06-18", "price": 265 }
  ],
  "total_results": 382,
  "error_reasoning": null
}

Failure shapes:

// PerimeterX wall on homepage (session dead — retry with a fresh session)
{ "success": false, "reason": "anti_bot_wall_homepage", "url": "https://www.skyscanner.com/sttc/px/captcha-v2/...", "error_reasoning": "..." }

// PerimeterX wall on results or config page (results captured up to wall)
{ "success": false, "reason": "anti_bot_wall_search" | "anti_bot_wall_config", "partial": { ...whatever was captured... } }

// Zero matching itineraries
{ "success": false, "reason": "no_flights", "query": { ... } }
how to use search-cheapest-flight

How to use search-cheapest-flight on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add search-cheapest-flight
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$browse install skyscanner.net/search-cheapest-flight-v8nvut

The skills CLI fetches search-cheapest-flight from GitHub repository skyscanner.net/search-cheapest-flight-v8nvut and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/search-cheapest-flight

Reload or restart Cursor to activate search-cheapest-flight. Access the skill through slash commands (e.g., /search-cheapest-flight) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

Task Automation & Efficiency

Automate repetitive workflows and reduce manual effort

Example

Generate reports, summarize documents, draft communications

Save 3-5 hours per week on routine tasks

Knowledge Enhancement

Learn new skills, understand complex topics, get expert guidance

Example

Explain concepts, provide examples, suggest learning resources

Accelerate learning and skill development by 2x

Quality Improvement

Enhance output quality through reviews, suggestions, and refinements

Example

Review drafts, suggest improvements, catch errors

Improve work quality by 30-40% with less effort

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client with skill support
  • Clear understanding of task or problem to solve
  • Willingness to iterate and refine outputs

Time Estimate

15-45 minutes depending on use case complexity

Installation Steps

  1. 1.Install skill using provided installation command
  2. 2.Test with simple use case relevant to your work
  3. 3.Evaluate output quality and relevance
  4. 4.Iterate on prompts to improve results
  5. 5.Integrate into regular workflow if valuable

Common Pitfalls

  • Expecting perfect results without iteration
  • Not providing enough context in prompts
  • Using skill for tasks outside its intended scope
  • Accepting outputs without review and validation

Best Practices

✓ Do

  • +Start with clear, specific prompts
  • +Provide relevant context and constraints
  • +Review and refine all outputs before using
  • +Iterate to improve output quality
  • +Document successful prompt patterns

✗ Don't

  • Don't use without understanding skill limitations
  • Don't skip validation of outputs
  • Don't share sensitive information in prompts
  • Don't expect skill to replace human judgment

💡 Pro Tips

  • Be specific about desired format and style
  • Ask for multiple options to choose from
  • Request explanations to understand reasoning
  • Combine AI efficiency with human expertise

When to Use This

✓ Use When

Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.

✗ Avoid When

Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.

Learning Path

  1. 1Familiarize yourself with skill capabilities and limitations
  2. 2Start with low-risk, non-critical tasks
  3. 3Progress to more complex and valuable use cases
  4. 4Build expertise through regular use and experimentation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.674 reviews
  • Benjamin Farah· Dec 28, 2024

    search-cheapest-flight fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Valentina Bansal· Dec 28, 2024

    search-cheapest-flight fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Diego Bhatia· Dec 28, 2024

    Solid pick for teams standardizing on skills: search-cheapest-flight is focused, and the summary matches what you get after install.

  • Sophia Srinivasan· Dec 24, 2024

    Registry listing for search-cheapest-flight matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Shikha Mishra· Dec 12, 2024

    Registry listing for search-cheapest-flight matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Ganesh Mohane· Dec 8, 2024

    search-cheapest-flight has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Diego Rao· Dec 4, 2024

    search-cheapest-flight is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Tariq Kim· Nov 23, 2024

    Solid pick for teams standardizing on skills: search-cheapest-flight is focused, and the summary matches what you get after install.

  • Isabella Verma· Nov 19, 2024

    We added search-cheapest-flight from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Benjamin Lopez· Nov 19, 2024

    We added search-cheapest-flight from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

showing 1-10 of 74

1 / 8