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

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-lazada-sg-api-df851764/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-lazada-sg-api-df851764/get_category_listings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lazada-sg-api-df851764/get_flash_sale_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lazada-sg-api-df851764/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lazada-sg-api-df851764/get_product_reviews \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lazada-sg-api-df851764/get_seller_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-lazada-sg-api-df851764/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>","sort":"<string>"}'
```
