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

> Access data from drinkhint.com.

**Category:** E-commerce | **Website:** [www.drinkhint.com/](https://www.drinkhint.com/) | **Docs:** [parse.bot/marketplace/53021ad8-492a-441f-bd09-4b27b6dd5b48/drinkhint-com-api](https://parse.bot/marketplace/53021ad8-492a-441f-bd09-4b27b6dd5b48/drinkhint-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-drinkhint-com-api-53021ad8/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_product

Get full details for a single Hint water product by its URL handle. Returns description, pricing, variants, images, and tags. The handle is the URL slug from search results or collection listings (e.g. 'watermelon-hint-water').

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `handle` | string | Yes | Product URL handle/slug (e.g. 'watermelon-hint-water'). Available from search_products or list_collection results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-drinkhint-com-api-53021ad8/get_product \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"handle":"<string>"}'
```

### list_collection

List products in a Hint Water collection with pagination. Collections group products by category (e.g. 'still-bottles', 'sparkling-water', 'variety-packs', 'bundles'). Use 'all' to browse the full catalog.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `collection` | string | No | Collection handle/slug. Known values include: all, still-bottles, still-cans, sparkling-water, variety-packs, bundles, new, seasonals. |
| `limit` | integer | No | Number of products per page (1-250). |
| `page` | integer | No | Page number for pagination (1-based). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-drinkhint-com-api-53021ad8/list_collection \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"collection":"<string>","limit":"<integer>","page":"<integer>"}'
```

### search_products

Search for Hint water products by keyword. Returns up to 10 matching products with pricing and availability. Uses the site's predictive search and matches against product titles, descriptions, and tags.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of products to return. Capped at 10 by the upstream search API. |
| `query` | string | No | Search query text to find products. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-drinkhint-com-api-53021ad8/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","query":"<string>"}'
```
