# Stylishop — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/parse-stylishop-com-api-4e9594e3/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.beta.paywithlocus.com/api/wrapped/parse-stylishop-com-api-4e9594e3/get_autocomplete \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.beta.paywithlocus.com/api/wrapped/parse-stylishop-com-api-4e9594e3/get_brand_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.beta.paywithlocus.com/api/wrapped/parse-stylishop-com-api-4e9594e3/get_homepage \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.beta.paywithlocus.com/api/wrapped/parse-stylishop-com-api-4e9594e3/get_new_arrivals \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.beta.paywithlocus.com/api/wrapped/parse-stylishop-com-api-4e9594e3/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.beta.paywithlocus.com/api/wrapped/parse-stylishop-com-api-4e9594e3/get_product_reviews \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.beta.paywithlocus.com/api/wrapped/parse-stylishop-com-api-4e9594e3/get_sale_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.beta.paywithlocus.com/api/wrapped/parse-stylishop-com-api-4e9594e3/get_size_guide \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.beta.paywithlocus.com/api/wrapped/parse-stylishop-com-api-4e9594e3/get_trending_searches \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.beta.paywithlocus.com/api/wrapped/parse-stylishop-com-api-4e9594e3/list_brands \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.beta.paywithlocus.com/api/wrapped/parse-stylishop-com-api-4e9594e3/list_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.beta.paywithlocus.com/api/wrapped/parse-stylishop-com-api-4e9594e3/list_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.beta.paywithlocus.com/api/wrapped/parse-stylishop-com-api-4e9594e3/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","page_size":"<integer>","query":"<string>"}'
```
