# Alaskaair — 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 Alaska Airlines award flight availability and pricing in miles, including taxes, fees, and seat details across airports and cities. Look up airport and city codes to find the perfect mileage redemption for your next trip.

**Category:** Travel | **Website:** [alaskaair.com/](https://alaskaair.com/) | **Docs:** [parse.bot/marketplace/fa1669b4-a608-4f79-87cc-cfeb171f56bd/alaskaair-com-api](https://parse.bot/marketplace/fa1669b4-a608-4f79-87cc-cfeb171f56bd/alaskaair-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-alaskaair-com-api-fa1669b4/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### search_airports

Search for airport/city codes by name or partial code. Returns matching airports with their IATA codes and group (metro area). Useful for resolving the correct airport code to pass to award flight searches.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Airport code or city name to search (e.g. Tokyo, SFO, London). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-alaskaair-com-api-fa1669b4/search_airports \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

### search_award_flights

Search for award flight availability using Alaska Airlines Mileage Plan miles. Returns all available flights for a given route and date with miles pricing, cash taxes/fees, seats remaining, flight segments with carrier details, aircraft, and amenities. Also includes nearby date pricing calendar when available. Each flight contains multiple fare options (cabin/class combinations) and one or more segments describing the route.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `adults` | string | No | Number of adult passengers. |
| `cabin` | string | No | Cabin class filter: Main, Business, or First. Omitting returns all cabin classes. |
| `date` | string | Yes | Travel date in YYYY-MM-DD format. |
| `destination` | string | Yes | Destination airport IATA code (e.g. LAX, NRT, LHR). |
| `origin` | string | Yes | Origin airport IATA code (e.g. SEA, SFO, LAX). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-alaskaair-com-api-fa1669b4/search_award_flights \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"adults":"<string>","cabin":"<string>","date":"<string>","destination":"<string>","origin":"<string>"}'
```
