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

> Search Urban Outfitters' catalog to find products and browse categories, then view detailed information including prices, descriptions, color and size availability for each item. Check current sale counts and discover what's trending across the store's product lineup.

**Category:** E-commerce | **Website:** [urbanoutfitters.com/](https://urbanoutfitters.com/) | **Docs:** [parse.bot/marketplace/2f2a480a-d146-4006-8f59-8e71df7f444f/urbanoutfitters-com-api](https://parse.bot/marketplace/2f2a480a-d146-4006-8f59-8e71df7f444f/urbanoutfitters-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-urbanoutfitters-com-api-2f2a480a/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_category_listing

Get product listings for a specific category by its URL slug. Returns paginated results with the same structure as search. Categories include 'womens-clothing', 'mens-clothing', 'sale', 'vinyl-records-cassettes', and others visible in site navigation.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_slug` | string | Yes | Category URL slug (e.g. 'womens-clothing', 'sale', 'mens-clothing', 'vinyl-records-cassettes') |
| `size` | integer | No | Number of results per page |
| `sort` | string | No | Sort option: 'price-asc', 'price-desc', 'newest' |
| `start` | integer | No | Starting index for pagination (0-based offset) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-urbanoutfitters-com-api-2f2a480a/get_category_listing \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_slug":"<string>","size":"<integer>","sort":"<string>","start":"<integer>"}'
```

### get_product_details

Get comprehensive product details including color/size availability and stock levels. Returns the product name, brand, price, URL, and an array of available colors, each with an array of sizes showing stock count and availability status. The product_slug comes from search or category listing URLs (the path segment after /shop/).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_slug` | string | Yes | Product URL slug from a product URL path after /shop/ (e.g. 'bdg-front-runner-mid-rise-baggy-jort') |

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

### get_sale_item_count

Get items currently on sale site-wide. Returns the sale category listing with a total count and an array of discounted products. Equivalent to browsing the /sale category page.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-urbanoutfitters-com-api-2f2a480a/get_sale_item_count \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_products

Full-text search over Urban Outfitters product catalog by keyword. Returns paginated results with product names, prices, images, and URLs. Pagination uses a start offset. Each result is a lightweight summary; use get_product_details for full color/size availability.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword (e.g. 'dresses', 'jackets', 'vinyl') |
| `size` | integer | No | Number of results per page |
| `sort` | string | No | Sort option: 'price-asc', 'price-desc', 'newest' |
| `start` | integer | No | Starting index for pagination (0-based offset) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-urbanoutfitters-com-api-2f2a480a/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>","size":"<integer>","sort":"<string>","start":"<integer>"}'
```
