# Flightconnections — 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 with detailed information about pricing, schedules, and layover options to find the best travel connections for your trips. Compare multiple flight choices and their costs in one convenient search.

**Category:** Travel | **Website:** [flightconnections.com/](https://flightconnections.com/) | **Docs:** [parse.bot/marketplace/e481b083-93ee-4756-a8b3-17f69fb01ed2/flightconnections-com-api](https://parse.bot/marketplace/e481b083-93ee-4756-a8b3-17f69fb01ed2/flightconnections-com-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-flightconnections-com-api-e481b083/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### search_flights

Search for one-way flights between two airports on a specific date. Returns flight options with up to one connection, filtered by maximum layover duration. Each result includes pricing in USD, airline codes, departure/arrival times (UTC), total duration in seconds, layover details (connecting airport and wait time), and a booking link. Paginates as a single page of up to 50 results after server-side filtering by stopovers and layover ceiling.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | Yes | Date of flight. Accepted formats: 14Nov2026, 2026-11-14, 14/11/2026. |
| `destination` | string | Yes | Destination airport IATA code (3-letter uppercase, e.g. IAH, IAD, ARN). |
| `max_layover_hours` | number | No | Maximum layover duration in hours for flights with one connection. |
| `origin` | string | Yes | Origin airport IATA code (3-letter uppercase, e.g. ARN, IAD, IAH). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-flightconnections-com-api-e481b083/search_flights \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date":"<string>","destination":"<string>","max_layover_hours":"<number>","origin":"<string>"}'
```
