# Thredup — 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 and browse ThredUp's secondhand fashion inventory to find specific items and view detailed product information like pricing, condition, and sizing. Get smart search suggestions to discover similar styles and refine your thrifting experience.

**Category:** Marketplaces | **Website:** [thredup.com/](https://thredup.com/) | **Docs:** [parse.bot/marketplace/af4fe6b1-b568-4c64-af96-02e8e3ed4943/thredup-com-api](https://parse.bot/marketplace/af4fe6b1-b568-4c64-af96-02e8e3ed4943/thredup-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-thredup-com-api-af4fe6b1/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_product_details

Retrieve full details for a specific item using its item number or product URL. Returns comprehensive product information including measurements, condition details, characteristics, photos, and pricing. Either item_number or product_url must be provided; item_number takes precedence when both are given.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `item_number` | string | No | ThredUp item number (e.g., '220010202') |
| `product_url` | string | No | Full ThredUp product page URL |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-thredup-com-api-af4fe6b1/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"item_number":"<string>","product_url":"<string>"}'
```

### get_search_suggestions

Get search autocomplete suggestions and interpretations for a partial query. Returns typeahead suggestions with segment tags indicating brand, category, and department matches. Each suggestion carries filter context suitable for passing to search_products. Single-page response, no pagination.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Partial search query for autocomplete suggestions |

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

### search_products

Search for secondhand fashion items with filters and sorting. Returns paginated results from ThredUp's catalog. Supports filtering by department, category, brand, and condition. Results include pricing, materials, photos, and sustainability metrics. Pagination via page number; total_count indicates the full result set size but the API caps at 10001.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `brand` | string | No | Brand name filter |
| `category` | string | No | Category filter (e.g., 'dresses', 'tops', 'shoes') |
| `condition` | string | No | Item condition filter |
| `department` | string | No | Department filter |
| `limit` | integer | No | Number of results per page |
| `page` | integer | No | Page number for pagination |
| `query` | string | No | Search keyword (e.g., 'dress', 'nike shoes') |
| `sort` | string | No | Sort order for results |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-thredup-com-api-af4fe6b1/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"brand":"<string>","category":"<string>","condition":"<string>","department":"<string>","limit":"<integer>","page":"<integer>","query":"<string>","sort":"<string>"}'
```
