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

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/urbanoutfitters/`
**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 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/credits/urbanoutfitters/get-category-listing \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/urbanoutfitters/get-product-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/urbanoutfitters/get-sale-item-count \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/urbanoutfitters/search-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>","size":"<integer>","sort":"<string>","start":"<integer>"}'
```

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