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

> Access real-time Anthropologie sale data to browse discounted products, view discount statistics, and search for specific items across their current promotions. Get detailed product information including pricing, availability, and savings amounts to find the best deals.

**Category:** E-commerce | **Website:** [anthropologie.com/](https://anthropologie.com/) | **Docs:** [parse.bot/marketplace/02105a30-2ae5-4f82-8bc3-e5431b249098/anthropologie-com-api](https://parse.bot/marketplace/02105a30-2ae5-4f82-8bc3-e5431b249098/anthropologie-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-anthropologie-com-api-02105a30/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### calculate_discount_stats

Calculate average discount percentage across multiple pages of sale items. Analyzes up to the specified number of pages and returns aggregate statistics.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `max_pages` | integer | No | Maximum number of pages to analyze (each page has up to 72 products). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-anthropologie-com-api-02105a30/calculate_discount_stats \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"max_pages":"<integer>"}'
```

### get_product_details

Get detailed product information by URL, including price, description, colors, reviews, and availability. Requires a valid Anthropologie product URL or path.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Product URL or path (e.g. 'https://www.anthropologie.com/shop/product-slug' or '/shop/product-slug'). |

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

### get_sale_product_count

Get the total number of products currently on sale at Anthropologie. Returns a single integer count reflecting the live sale catalog size.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-anthropologie-com-api-02105a30/get_sale_product_count \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_sale_products

Get a paginated list of sale products with names, prices, URLs, and discount percentages. Each page returns up to 72 products.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (1-based). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-anthropologie-com-api-02105a30/get_sale_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### search_products

Search for products by keyword query across the Anthropologie catalog. Returns matching products with name, URL, and price. Results are returned as a single page.

**Estimated cost:** Metered

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

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