# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/lightinthebox/`
**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 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/credits/lightinthebox/get-categories \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/lightinthebox/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 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/credits/lightinthebox/get-product-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/lightinthebox/get-product-reviews \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/lightinthebox/search-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.