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

> Find and browse thousands of cocktail recipes with ratings and user reviews, search drinks by ingredient or category, and read curated articles about spirits and mixology. Get detailed recipe instructions, comments from other users, and expert content all in one place.

**Category:** Food & Dining | **Website:** [liquor.com/](https://liquor.com/) | **Docs:** [parse.bot/marketplace/bced1556-427d-4828-8958-18575252a42a/liquor-com-api](https://parse.bot/marketplace/bced1556-427d-4828-8958-18575252a42a/liquor-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-liquor-com-api-bced1556/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_article

Fetch full content of an editorial article or guide by its URL slug or full URL. Returns headline, author, publication date, and body text.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url_or_slug` | string | Yes | Article URL slug (e.g. 'articles/mojito') or full URL |

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

### get_recipe

Fetch a single cocktail recipe by its URL slug or full URL. Returns structured recipe data including title, ingredients, instructions, ratings, timing, and the article_id needed to retrieve user comments via the comments sub-resource.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url_or_slug` | string | Yes | Recipe URL slug (e.g. 'recipes/margarita') or full URL |

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

### get_recipe_comments

Retrieve user comments and reviews for a specific recipe via its article_id (returned by get_recipe). Returns comments with author info, text, timestamps, and vote counts.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `article_id` | string | Yes | The article_id from get_recipe response (e.g. '4787239') |

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

### list_recipes_by_category

Browse recipes by category slug or full URL. Returns recipe and article cards in the given category as a single page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | Yes | Category slug (e.g. 'cocktail-and-other-recipes-4779343') or full URL |

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

### search_recipes

Full-text search across liquor.com recipes and articles. Returns matching results with titles, URLs, and thumbnails in a single page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword (e.g. 'mojito', 'whiskey sour', 'margarita') |

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