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.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionsearch-cheapest-flightExecute the skills CLI command in your project's root directory to begin installation:
Fetches search-cheapest-flight from skyscanner.net/search-cheapest-flight-v8nvut and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate search-cheapest-flight. Access via /search-cheapest-flight in your agent's command palette.
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 environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
0
upvotes
Run in your terminal
0
installs
0
this week
—
stars
| 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 |
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".
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.
.com TLD onlySID=$(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.
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
# 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:
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
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:
Total cost \$([0-9,]+)Flight with ([^.]+)\.Departing from ([^ ]+(?: [^ ]+)*) at (\d{1,2}:\d{2} [AP]M)arriving in (.+?) at (\d{1,2}:\d{2} [AP]M)(?:, (\d+) days? later)?taking (\d+) hours? (\d+) minutes?(Direct|Indirect) flight + with (one|two|three) stops? in ([^.]+)You need to change airports OR Self-transferSponsored cards have the StaticText Sponsored by <Airline> in the heading — skip them when extracting the "headline cheapest" even though they appear in position 1.
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 stops10957 — layover airport ID2606170505 — 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.
browse cloud sessions update "$SID" --status REQUEST_RELEASE
--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.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."Cheapest 32 hours 55 minutes"), useful for a quick price+duration peek without clicking through..com from a US-egress proxy, currency is USD and cannot be changed via URL param — ¤cy=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 flag in the output — it's a critical UX caveat (passenger must collect bags + re-check in at the layover).Sponsored by <Airline> in the card heading. Skip them when finding the "headline cheapest". They appear regardless of sort tab.load.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./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./config/. Capture the URL via browse get url immediately after the post-Select navigation — don't wait for browse snapshot to fail.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.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.{
"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": { ... } }
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ 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.
booking.com/search-hotels-asq6cc
ailabs-393/ai-labs-claude-skills
kostja94/marketing-skills
aaaaqwq/claude-code-skills
agentbay-ai/agentbay-skills
glebis/claude-skills
search-cheapest-flight fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
search-cheapest-flight fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Solid pick for teams standardizing on skills: search-cheapest-flight is focused, and the summary matches what you get after install.
Registry listing for search-cheapest-flight matched our evaluation — installs cleanly and behaves as described in the markdown.
Registry listing for search-cheapest-flight matched our evaluation — installs cleanly and behaves as described in the markdown.
search-cheapest-flight has been reliable in day-to-day use. Documentation quality is above average for community skills.
search-cheapest-flight is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Solid pick for teams standardizing on skills: search-cheapest-flight is focused, and the summary matches what you get after install.
We added search-cheapest-flight from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
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