# Whiskybase — 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 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-whiskybase-com-api-c0c1cb47/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-whiskybase-com-api-c0c1cb47/get_distilleries \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-whiskybase-com-api-c0c1cb47/get_distillery_whiskies \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-whiskybase-com-api-c0c1cb47/get_marketplace_listings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-whiskybase-com-api-c0c1cb47/get_new_releases \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-whiskybase-com-api-c0c1cb47/get_top_1000_whiskies \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-whiskybase-com-api-c0c1cb47/search_whiskies \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```
