# Torob — 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 for products and compare prices across thousands of sellers on Torob.com, with access to detailed product specs, seller information, and price history. Browse categories, discover similar items, and explore store inventories to find the best deals.

**Category:** E-commerce | **Website:** [torob.com/](https://torob.com/) | **Docs:** [parse.bot/marketplace/d925cf61-d99f-41ad-9765-d68fc7fcfac1/torob-com-api](https://parse.bot/marketplace/d925cf61-d99f-41ad-9765-d68fc7fcfac1/torob-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/torob/`
**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 categories

Get top-level product categories from Torob's browse page. Returns category names, IDs, and slugs for use in search_products filtering.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/torob/get-categories \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get price history

Get historical price data for a product. Returns chart data with price trends over time including labels (dates) and datasets (average price, minimum price).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_uuid` | string | Yes | Product UUID (random_key from search results) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/torob/get-price-history \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"product_uuid":"<string>"}'
```

### Get product details

Get full details for a specific product by its UUID (random_key from search results). Returns product information including name, price, variants, specs, breadcrumbs, and seller count.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_uuid` | string | Yes | Product UUID (random_key from search_products results) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/torob/get-product-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"product_uuid":"<string>"}'
```

### Get product sellers

Get list of online sellers and their prices for a specific product. Returns seller name, shop ID, price, availability, shipping info, and store score.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_uuid` | string | Yes | Product UUID (random_key from search_products results) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/torob/get-product-sellers \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"product_uuid":"<string>"}'
```

### Get product specs

Get technical specifications for a product. Returns structured specs organized by category headers and key specs highlighting the most important attributes.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_uuid` | string | Yes | Product UUID (random_key from search_products results) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/torob/get-product-specs \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"product_uuid":"<string>"}'
```

### Get search suggestions

Get autocomplete suggestions for a search query from Torob. Returns suggested search terms with their types.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search query for autocomplete |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/torob/get-search-suggestions \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

### Get similar products

Get products similar to the given product. Returns a list of similar product summaries.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_uuid` | string | Yes | Product UUID (random_key from search results) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/torob/get-similar-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"product_uuid":"<string>"}'
```

### Get store details

Get details about a specific store/seller on Torob including name, address, score, licensing info, and delivery/payment details.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `store_id` | string | Yes | Numeric store ID (from get_product_sellers results shop_id field) |
| `store_slug` | string | No | Store URL slug |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/torob/get-store-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"store_id":"<string>","store_slug":"<string>"}'
```

### Get store products

Get products sold by a specific store. Returns paginated product listings for the given store ID.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | No | Search query to filter store products |
| `store_id` | string | Yes | Store ID (from get_product_sellers results shop_id field) |
| `store_slug` | string | No | Store URL slug (not used in API call, kept for compatibility) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/torob/get-store-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>","store_id":"<string>","store_slug":"<string>"}'
```

### Search products

Search for products by keyword or category on Torob. Returns paginated results with product summaries, prices, and related categories. Supports pagination and sorting.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | No | Category ID to filter by (from get_categories results) |
| `page` | integer | No | Page number (0-based) |
| `query` | string | No | Search keyword (Persian or English) |
| `sort` | string | No | Sort order for results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/torob/search-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<string>","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.