# Daraz (Nepal) — 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 for products on Daraz Nepal and access detailed product information, homepage data, and current flash sale offerings all in one place. Get real-time product details, pricing, and promotional content to help you find exactly what you're looking for on Nepal's leading e-commerce platform.

**Category:** E-commerce | **Website:** [daraz.com.np/](https://daraz.com.np/) | **Docs:** [parse.bot/marketplace/d33d35e3-b4a2-4ad2-adae-60576f0b588d/daraz-com-np-api](https://parse.bot/marketplace/d33d35e3-b4a2-4ad2-adae-60576f0b588d/daraz-com-np-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-daraz-com-np-api-d33d35e3/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_flash_sale_products

Retrieve products currently on flash sale from the Daraz Nepal homepage. Returns items with title, original price, discounted price, discount percentage, stock levels, sold count, and sale timing. Flash sales rotate periodically and may return an empty list between sale windows.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-daraz-com-np-api-d33d35e3/get_flash_sale_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_homepage_data

Fetch the Daraz Nepal homepage layout including banner sliders, countdown modules, featured categories, app download config, page metadata, and internationalization strings. Returns the full page configuration as rendered by the CMS.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-daraz-com-np-api-d33d35e3/get_homepage_data \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_product_details

Retrieve comprehensive details for a specific product by its full Daraz Nepal URL. Returns product title, brand, description, highlights, SKU options and variants, image galleries per SKU, stock/pricing info per SKU, and site configuration. The URL can be obtained from search_products results (itemUrl field, prefixed with 'https:').

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full product URL on Daraz Nepal (e.g. 'https://www.daraz.com.np/products/<product-slug>-i<item_id>.html'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-daraz-com-np-api-d33d35e3/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### search_products

Full-text search over Daraz Nepal product listings. Supports filtering by price range, category, and sort order. Returns paginated results with product name, price, discount, rating, seller info, images, and available category filters. Each page returns up to 40 items.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | No | Category ID to filter results. |
| `page` | integer | No | Page number for pagination. |
| `price` | string | No | Price range filter in format 'min-max' (e.g. '100-500', '10000-25000'). |
| `query` | string | Yes | Search keyword (e.g. 'laptop', 'smartphone'). |
| `sort` | string | No | Sort order for results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-daraz-com-np-api-d33d35e3/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","page":"<integer>","price":"<string>","query":"<string>","sort":"<string>"}'
```
