# Skywings — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search for flights across Skywings.co.uk by specifying your route, travel dates, cabin class, and trip type to instantly access available options with detailed pricing, flight segments, and baggage allowances. Find and compare multiple flight choices tailored to your travel needs in seconds.

**Category:** Travel | **Website:** [skywings.co.uk/](https://skywings.co.uk/) | **Docs:** [parse.bot/marketplace/98f3f917-14eb-45bc-9011-2ed4807ba26a/skywings-co-uk-api](https://parse.bot/marketplace/98f3f917-14eb-45bc-9011-2ed4807ba26a/skywings-co-uk-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-skywings-co-uk-api-98f3f917/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### search_flights

Search for available flights between two airports. Returns all matching flight options with pricing, segment details (carrier, times, stops, baggage), and search parameters. Each flight result includes outbound and (for round trips) inbound segments with per-leg detail. The upstream API returns all matching results in a single response; there is no pagination. A search with no matching flights returns an empty flights array with total_results=0.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `adults` | string | No | Number of adult passengers (1-9). |
| `cabin_class` | string | No | Cabin class for the flight. |
| `children` | string | No | Number of child passengers (0-9). |
| `departure_date` | string | Yes | Departure date in ISO format YYYY-MM-DD. |
| `destination` | string | Yes | Destination airport or city IATA code (3 letters, e.g. DXB for Dubai International, JFK for New York JFK). |
| `direct_only` | boolean | No | When true, only return direct (non-stop) flights. |
| `infants` | string | No | Number of infant passengers (0-9). |
| `origin` | string | Yes | Origin airport or city IATA code (3 letters, e.g. LON for all London airports, LHR for Heathrow, JFK for New York JFK). |
| `return_date` | string | No | Return date in ISO format YYYY-MM-DD. Required when trip_type is round_trip. |
| `trip_type` | string | No | Type of trip. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-skywings-co-uk-api-98f3f917/search_flights \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"adults":"<string>","cabin_class":"<string>","children":"<string>","departure_date":"<string>","destination":"<string>","direct_only":"<boolean>","infants":"<string>","origin":"<string>","return_date":"<string>","trip_type":"<string>"}'
```
