# Stylishop — 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 search stylishop.com's complete fashion catalog, including products, categories, brands, reviews, and trending data to discover new arrivals and sale items. Get product details, size guides, autocomplete suggestions, and trending search insights to enhance your shopping experience.

**Category:** E-commerce | **Website:** [stylishop.com/](https://stylishop.com/) | **Docs:** [parse.bot/marketplace/4e9594e3-62c9-4ee3-8ebe-1bfb344f3add/stylishop-com-api](https://parse.bot/marketplace/4e9594e3-62c9-4ee3-8ebe-1bfb344f3add/stylishop-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/stylishop/`
**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 autocomplete

Get search autocomplete suggestions for a query prefix. Returns product name suggestions with category and flow information.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search query prefix. |

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

### Get brand products

List products from a specific brand. Returns paginated results filtered by brand name.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `brand_name` | string | Yes | Brand name (case-sensitive, e.g. 'Styli', 'Take Two', 'Libas'). |
| `page` | integer | No | Page number. |
| `page_size` | integer | No | Products per page. |

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

### Get homepage

Get homepage content including banners, promotions, and featured sections. Returns sections for Women, Men, and Kids with banner carousels, product grids, and promotional widgets.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lang` | string | No | Language code. Accepted values: 'en', 'ar'. |

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

### Get new arrivals

Get the latest new arrivals. Convenience endpoint returning the 'new-arrivals-w' context listing with pagination.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number. |
| `page_size` | integer | No | Products per page. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/stylishop/get-new-arrivals \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","page_size":"<integer>"}'
```

### Get product details

Get detailed information for a specific product SKU including images, pricing, sizes, attributes, stock status, and related products.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sku` | string | Yes | Product SKU (numeric string, e.g. '7025556120'). |

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

### Get product reviews

Get customer reviews and ratings for a product. Returns total ratings count, average rating, fit details, and fit insights.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sku` | string | Yes | Product SKU. |

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

### Get sale products

Get products on sale with discounted prices. Returns the sale context listing with pagination.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number. |
| `page_size` | integer | No | Products per page. |

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

### Get size guide

Get size guide/chart for a product. Fetches the product's brand and category info first, then retrieves the matching size chart with international size conversions (EU, UK, US) and measurement tips.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sku` | string | Yes | Product SKU to get size guide for. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/stylishop/get-size-guide \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"sku":"<string>"}'
```

### Get trending searches

Get trending search keywords grouped by country. Returns popular search terms in English and Arabic for each supported country (KSA, UAE, KWT, BHR, QAT).

**Estimated cost:** Metered

_No parameters required._

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

### List brands

List available brands with product counts. Returns brands extracted from the product catalog, sorted by product count descending.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/stylishop/list-brands \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### List categories

Get the full category navigation tree. Returns an array of category pages (Women, Men, Kids) each containing tabs with rows of category links and banners.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lang` | string | No | Language code. Accepted values: 'en', 'ar'. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/stylishop/list-categories \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lang":"<string>"}'
```

### List products

List products in a specific category or context. Returns paginated product listings with filters, totalCount, and category levels. The context_slug identifies a named collection or category rule.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `context_slug` | string | Yes | Context rule ID / slug for product listing (e.g., 'new-arrivals-w', 'spring-edit-w', 'up-to-80-percent-off-w'). |
| `page` | integer | No | Page number. |
| `page_size` | integer | No | Products per page. |
| `sort_by` | string | No | Sort order. Accepted values: 'popularity', 'price_asc', 'price_desc', 'new_arrivals'. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/stylishop/list-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"context_slug":"<string>","page":"<integer>","page_size":"<integer>","sort_by":"<string>"}'
```

### Search products

Search for products by keyword. Returns paginated results with product details including name, brand, SKU, prices, images, and available sizes.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number. |
| `page_size` | integer | No | Products per page. |
| `query` | string | Yes | Search keyword. |

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