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

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-shopee-co-id-api-89ac2257/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-shopee-co-id-api-89ac2257/get_official_shop_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-shopee-co-id-api-89ac2257/get_official_shops \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-shopee-co-id-api-89ac2257/get_product_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-shopee-co-id-api-89ac2257/get_shop_info \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-shopee-co-id-api-89ac2257/get_trending_search \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-shopee-co-id-api-89ac2257/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-shopee-co-id-api-89ac2257/shop_reliability \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"shopid":"<string>"}'
```
