# Airlinequality — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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.

> Get comprehensive airline and airport reviews, ratings, and photos from Skytrax to compare carrier quality and traveler experiences. Search and browse detailed feedback on specific airlines, view summary ratings, and discover community-submitted photos to make informed travel decisions.

**Category:** Reviews & Ratings | **Website:** [airlinequality.com/](https://airlinequality.com/) | **Docs:** [parse.bot/marketplace/cf6ad87f-d9e3-426d-8353-41bff0187786/airlinequality-com-api](https://parse.bot/marketplace/cf6ad87f-d9e3-426d-8353-41bff0187786/airlinequality-com-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/airlinequality/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get airline list

Get the full list of airlines with their names and slugs. Returns all airlines indexed on the site in a single response. No pagination — all ~580 airlines come in one call.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/airlinequality/get-airline-list \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get airline photos

Get photo gallery for an airline using a review_id obtained from get_airline_summary_ratings. Returns URLs for full-size photos and thumbnails. Each airline's gallery is identified by its review_id, not its slug.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `review_id` | string | Yes | Review ID obtained from get_airline_summary_ratings.review_id (e.g. '156008') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/airlinequality/get-airline-photos \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"review_id":"<string>"}'
```

### Get airline reviews

Get paginated reviews for a specific airline. Returns individual review details including ratings, author, route, cabin class, and category sub-ratings. Supports filtering by cabin class and pagination via page number.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `cabin` | string | No | Filter by cabin class. |
| `limit` | integer | No | Number of reviews per page. |
| `page` | integer | No | Page number for pagination. |
| `slug` | string | Yes | Airline slug from get_airline_list (e.g. 'british-airways', 'emirates') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/airlinequality/get-airline-reviews \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"cabin":"<string>","limit":"<integer>","page":"<integer>","slug":"<string>"}'
```

### Get airline summary ratings

Get summary ratings and review ID for an airline. Returns overall rating out of 10, review count, category breakdown (e.g. Food & Beverages, Seat Comfort), and a review_id that can be used with get_airline_photos to fetch the airline's photo gallery.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Airline slug from get_airline_list (e.g. 'british-airways', 'emirates') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/airlinequality/get-airline-summary-ratings \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### Search reviews

Search for airlines, airports, or reviews by keyword. Supports single and multi-word queries. Returns matching pages with titles, URLs, and text snippets. Results span airline reviews, seat reviews, lounge reviews, and airport reviews.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search query (e.g. 'economy', 'business class Emirates', 'lufthansa') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/airlinequality/search-reviews \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.