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

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/thredup/`
**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 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/credits/thredup/get-product-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/thredup/get-search-suggestions \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/thredup/search-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"brand":"<string>","category":"<string>","condition":"<string>","department":"<string>","limit":"<integer>","page":"<integer>","query":"<string>","sort":"<string>"}'
```

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