# Wellcome Hong Kong — 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 browse products from Wellcome Hong Kong's online grocery store, view detailed product information, explore categories, and see what other shoppers are searching for. Discover trending items and get product suggestions to streamline your grocery shopping experience.

**Category:** Food & Dining | **Website:** [wellcome.com.hk/](https://wellcome.com.hk/) | **Docs:** [parse.bot/marketplace/3741457b-8768-4c6c-99a5-c125f419342d/wellcome-com-hk-api](https://parse.bot/marketplace/3741457b-8768-4c6c-99a5-c125f419342d/wellcome-com-hk-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-wellcome-com-hk-api-3741457b/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### browse_category

Browse products within a category by ID. Returns paginated product summaries, hierarchical subcategories (up to 3 levels deep), and available filter facets. Use subcategories from the response to discover narrower category IDs for drill-down.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | Yes | Category ID (e.g., '100002' for Beverages). Top-level categories can be discovered from subcategories in the response. |
| `page` | integer | No | Page number (1-based) |
| `page_size` | integer | No | Results per page |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-wellcome-com-hk-api-3741457b/browse_category \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<string>","page":"<integer>","page_size":"<integer>"}'
```

### get_product_detail

Fetch full product information by SKU ID. Returns brand, category, price, images, structured attributes (origin, storage, specs), active promotions, and HTML/text descriptions. The sku_id is obtained from search_products or browse_category results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sku_id` | string | Yes | Product SKU ID (obtained from search_products or browse_category results) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-wellcome-com-hk-api-3741457b/get_product_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sku_id":"<string>"}'
```

### popular_searches

Current popular/trending search terms on Wellcome. Returns ranked keywords that are currently trending on the platform. No parameters required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-wellcome-com-hk-api-3741457b/popular_searches \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_products

Full-text search over Wellcome's grocery catalog. Supports English and Chinese keywords. Returns paginated product summaries, total counts, and available filter facets (category, brand, origin). Sort by price or new arrivals; default sort is relevance. Each product summary exposes a sku_id for fetching full detail via get_product_detail.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `keyword` | string | Yes | Search keyword (English or Chinese) |
| `page` | integer | No | Page number (1-based) |
| `page_size` | integer | No | Results per page |
| `sort_key` | integer | No | Sort field: 0=default/relevance, 1=price, 2=new arrivals |
| `sort_rule` | integer | No | Sort direction: 0=ascending, 1=descending |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-wellcome-com-hk-api-3741457b/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"<string>","page":"<integer>","page_size":"<integer>","sort_key":"<integer>","sort_rule":"<integer>"}'
```

### search_suggestions

Autocomplete suggestions for a keyword prefix. Returns suggested keywords ranked by relevance score (higher is more relevant). Useful for building type-ahead search UIs.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `keyword` | string | Yes | Search keyword prefix for autocomplete suggestions |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-wellcome-com-hk-api-3741457b/search_suggestions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"<string>"}'
```
