# Lazada (Singapore) — 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 browse products on Lazada Singapore with access to detailed product information, customer reviews, seller profiles, and category listings. Discover flash sale deals and explore what sellers are offering all in one place.

**Category:** E-commerce | **Website:** [lazada.sg/](https://lazada.sg/) | **Docs:** [parse.bot/marketplace/df851764-f510-424e-96a4-67bbd05c956b/lazada-sg-api](https://parse.bot/marketplace/df851764-f510-424e-96a4-67bbd05c956b/lazada-sg-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/lazada-singapore/`
**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 category listings

Browse products by category slug. Returns product listings, available filters (brand, service), sort options, and breadcrumb navigation for the category. The slug is auto-prefixed with 'shop-' if not already present.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_slug` | string | Yes | Category URL slug. Can be provided with or without the 'shop-' prefix (e.g. 'shop-smartphones', 'smartphones', 'shop-laptops'). |
| `page` | integer | No | Page number |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/lazada-singapore/get-category-listings \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"category_slug":"<string>","page":"<integer>"}'
```

### Get flash sale products

Retrieve products from Lazada's homepage recommendation/Just For You section. Returns personalized product recommendations with pricing, ratings, sales counts, and tracking info. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

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

### Get product details

Fetch full product details for a given item ID including specifications per SKU, seller information, tracking/pricing metadata, warranty info, delivery options, and reviews summary. The item_id comes from search_products results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `item_id` | string | Yes | Product Item ID (from search_products results[*].itemId) |

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

### Get product reviews

Collect customer reviews for a specific product. Returns paginated reviews with ratings, text content, buyer names, media attachments, and seller replies. 5 reviews per page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `item_id` | string | Yes | Product Item ID (from search_products results[*].itemId) |
| `page` | integer | No | Page number for reviews pagination |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/lazada-singapore/get-product-reviews \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"item_id":"<string>","page":"<integer>"}'
```

### Get seller products

List all products from a specific seller's store. Returns paginated product listings with pricing, ratings, stock information, and discount data. 20 products per page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number |
| `seller_id` | string | Yes | Seller ID (from search_products results[*].sellerId or get_product_details seller.sellerId) |
| `shop_id` | string | Yes | Shop ID (from get_product_details seller.shopId) |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/lazada-singapore/get-seller-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","seller_id":"<string>","shop_id":"<string>"}'
```

### Search products

Full-text search over Lazada.sg product listings. Returns a paginated list of products matching the query keyword, with pricing, ratings, seller info, and images. Supports sort ordering. Each page returns up to 40 products.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |
| `query` | string | Yes | Search keyword (e.g. 'laptop', 'headphones', 'iphone') |
| `sort` | string | No | Sort order for results |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/lazada-singapore/search-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>","sort":"<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.