# Shopee (Indonesia) — 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 products from Shopee Indonesia, browse official shops and categories, view trending searches, and get detailed product and shop information. Access comprehensive e-commerce data including product listings, shop profiles, and real-time trending insights directly from Indonesia's leading online marketplace.

**Category:** E-commerce | **Website:** [shopee.co.id/](https://shopee.co.id/) | **Docs:** [parse.bot/marketplace/89ac2257-4fcd-4420-9e28-1d89d74494f8/shopee-co-id-api](https://parse.bot/marketplace/89ac2257-4fcd-4420-9e28-1d89d74494f8/shopee-co-id-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/shopee-indonesia/`
**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 official shop categories

Retrieve the category tree for Shopee Mall official shops. Returns all available category IDs and names that can be used to filter official shops via the get_official_shops endpoint. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

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

### Get official shops

List official shops in Shopee Mall, filtered by category. Returns paginated results with shop name, ID, logo, brand info, and username. Use get_official_shop_categories to discover valid category_id values. Paginates via offset; each page returns up to `limit` shops from the total pool.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | integer | No | Category ID for filtering shops. Obtain valid IDs from get_official_shop_categories endpoint. |
| `limit` | integer | No | Number of shops to return per page. Accepts 5, 10, or 20. |
| `offset` | integer | No | Offset for pagination. Increment by limit to page through results. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/shopee-indonesia/get-official-shops \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<integer>","limit":"<integer>","offset":"<integer>"}'
```

### Get product detail

Retrieve full product details. NOTE: Highly protected by Shopee's anti-bot (90309999).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `itemid` | string | Yes | Item ID |
| `shopid` | string | Yes | Shop ID |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/shopee-indonesia/get-product-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"itemid":"<string>","shopid":"<string>"}'
```

### Get shop info

Retrieve shop/seller information including name, description, ratings, follower count, response metrics, and location. Returns general shop profile data suitable for displaying to users.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `shopid` | string | Yes | Numeric shop ID (e.g. from get_official_shops results). |

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

### Get trending search

Retrieve trending search queries from Shopee Indonesia. Returns popular search terms with associated item IDs, shop IDs, and thumbnail images. Useful for discovering what products are currently popular. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

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

### Search products

Search for products by keyword. NOTE: Highly protected by Shopee's anti-bot (90309999); may return blocked results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Number of items to return |
| `offset` | integer | No | Offset for pagination (newest) |
| `query` | string | Yes | Search keyword |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/shopee-indonesia/search-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","offset":"<integer>","query":"<string>"}'
```

### Shop reliability

Get shop reliability metrics for affiliate creator decision-making. Returns shop rating, response metrics, cancellation rate, follower count, badges, and metadata. All percentages are returned as decimals (e.g. 0.02 = 2%). Includes captured_at timestamp, source, and provider fields. Uses the same underlying shop data as get_shop_info but transforms it into an affiliate-focused reliability scorecard.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `shopid` | string | Yes | Numeric shop ID (e.g. from get_official_shops results or trending search shop_ids). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/shopee-indonesia/shop-reliability \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"shopid":"<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.