# Whiskybase — 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.

> Search and discover whiskies from a comprehensive database, explore new releases, check marketplace prices and listings, and browse distilleries and their collections. Get instant access to top-rated whiskies, distillery information, and current market data all in one place.

**Category:** Marketplaces | **Website:** [whiskybase.com/](https://whiskybase.com/) | **Docs:** [parse.bot/marketplace/c0c1cb47-ab3a-4943-85e3-6bb1b4d91559/whiskybase-com-api](https://parse.bot/marketplace/c0c1cb47-ab3a-4943-85e3-6bb1b4d91559/whiskybase-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/whiskybase/`
**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 distilleries

List all distilleries in the Whiskybase database. Default mode returns name, country, and whisky count from a single page. When include_location is true, returns paginated results (25 per page) with region, latitude, and longitude fetched from each distillery's shop-tour page. Coordinates are available for distilleries that have a shop-tour page; others return null. Use the page parameter to paginate through results when include_location is enabled.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `include_location` | boolean | No | When true, returns additional location fields (region, latitude, longitude) for each distillery fetched from their shop-tour pages. Results are paginated (25 per page). Use the page parameter to iterate. |
| `page` | integer | No | Page number (1-based) for paginated results when include_location is true. Each page returns 25 distilleries. Ignored when include_location is false. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/whiskybase/get-distilleries \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"include_location":"<boolean>","page":"<integer>"}'
```

### Get distillery whiskies

List all whiskies from a specific distillery. Returns whisky name, age, strength, and rating for each bottle in the distillery's catalogue.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `distillery_id` | string | Yes | Numeric distillery ID extracted from the distillery URL (e.g. '473' from get_distilleries results) |

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

### Get marketplace listings

Browse marketplace buy/sell listings on Whiskybase. Can be filtered by a search keyword. Returns listings with price, seller, and rating information.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | No | Search keyword to filter marketplace listings (e.g. 'Ardbeg', 'Macallan'). Omitting returns all latest listings. |

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

### Get new releases

Fetch the list of latest whisky releases from Whiskybase. Can optionally be filtered by bottling year. Returns release details including age, strength, size, and rating.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `year` | string | No | Bottling year to filter by (e.g. '2024', '2025'). Omitting returns all recent releases. |

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

### Get top 1000 whiskies

Fetch the Whiskybase Top 1000 ranked whiskies. Only whiskies with 15 or more votes are included. Returns rank, name, age, strength, rating, and vote count.

**Estimated cost:** Metered

_No parameters required._

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

### Search whiskies

Full-text search over the Whiskybase bottle database. Returns matching whiskies with name, brand, strength, rating, and photo URL. Sorted by relevance. Results are auto-iterated across pages of 25.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number (1-based) for paginated results. |
| `query` | string | Yes | Search keyword to match against whisky names and brands |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/whiskybase/search-whiskies \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","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.