---
title: "Build a durable wego.com search link"
method: GET
path: "/v1/flights/search-link"
tags: ["Flights"]
---

# Build a durable wego.com search link

`GET /v1/flights/search-link`

Builds a shareable wego.com flight-search URL from the caller's own route, dates, cabin and passengers. A pure, stateless string build - no upstream call, no search created. It carries no search-scoped id, so it does not expire: whoever opens it runs the search live.

## Query parameters

- `from` string, required
- `to` string, required
- `fromCity` union
  - boolean
  - '0' | '1' | 'true' | 'false'
- `toCity` union
  - boolean
  - '0' | '1' | 'true' | 'false'
- `fromDate` string, required
- `toDate` string
- `cabin` 'economy' | 'premium_economy' | 'business' | 'first'
- `adults` integer
- `children` integer
- `infants` integer
- `siteCode` string
- `currency` string
- `locale` string

## Response `200`

The durable wego.com search URL.

- object — The durable wego.com search URL.
  - `searchUrl` string, required — A wego.com flight-search URL for this route, dates, cabin and passengers. Opening it runs the search live.
  - `expires` false, required — Always false: the URL carries no search-scoped id, so it keeps working. The prices behind it are whatever a live search returns when it is opened.

## Other responses

- `400` — Invalid query parameters. fromDate must be a real calendar date, not in the past, and within 365 days; toDate must be a real date on or after it. A durable link cannot carry a date no live search can represent.
- `401` — Missing or invalid bearer token.
- `429` — Rate limit exceeded; retry after the `Retry-After` seconds.

---

[API](https://skmtc.net/wego/apis/wego-api.md) · [All operations](https://skmtc.net/wego/apis/wego-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wego/wego-api/revisions/e5d7af502419/schema)
