# Lightinthebox — 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.

> Browse and discover products across categories on LightInTheBox, search for items, view detailed product information and customer reviews, and check out current flash sale deals. Find exactly what you're looking for with comprehensive product catalogs and real-time pricing updates.

**Category:** E-commerce | **Website:** [lightinthebox.com/](https://lightinthebox.com/) | **Docs:** [parse.bot/marketplace/37c38219-daab-4ba2-81de-f19b8ed2f827/lightinthebox-com-api](https://parse.bot/marketplace/37c38219-daab-4ba2-81de-f19b8ed2f827/lightinthebox-com-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-lightinthebox-com-api-37c38219/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_categories

Retrieve the category list from the site homepage navigation. Returns categories with their display names and full URLs. Categories reflect the current site navigation and may change seasonally.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-lightinthebox-com-api-37c38219/get_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_flash_sale_products

Retrieve products currently on flash sale with discounted pricing. Returns all items in the nearest active flash sale channel including product name, image, sale and original prices, discount percentage, and sold-out status. No input parameters needed.

**Estimated cost:** Metered

_No parameters required._

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

### get_product_details

Fetch detailed product information for a given product ID. Returns pricing (sale and original), available attributes (color, size), variant data, quantity limits, and shipping estimates including processing and delivery times. The info object is keyed by the product ID string.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | Numeric product ID (e.g. '18669138'). Obtain from search_products results URL. |

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

### get_product_reviews

Retrieve paginated customer reviews for a product. Each review includes the reviewer name, star rating (1-5), review text, date, and verification status. Pagination is page-based starting at page 1.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for review pagination, starting at 1. |
| `product_id` | string | Yes | Numeric product ID (e.g. '18669138'). Obtain from search_products results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-lightinthebox-com-api-37c38219/get_product_reviews \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","product_id":"<string>"}'
```

### search_products

Full-text search over the LightInTheBox product catalog by keyword. Returns structured product data extracted from schema.org markup including name, brand, URL, image, pricing offers, and aggregate ratings. Results are a single page of up to ~20 items; no server-side pagination parameter is exposed.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword (e.g. 'dress', 'shoes', 'phone case') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-lightinthebox-com-api-37c38219/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
