# Reebelo — 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 Reebelo's refurbished products, browse categories and brands, check real-time pricing and condition-based costs, read customer reviews, and discover current deals all in one place. Get detailed product information including SKU prices and collections to compare and find the best secondhand electronics and accessories.

**Category:** E-commerce | **Website:** [reebelo.com/](https://reebelo.com/) | **Docs:** [parse.bot/marketplace/29b467b0-91da-4be3-aa01-f6752ec95e92/reebelo-com-api](https://parse.bot/marketplace/29b467b0-91da-4be3-aa01-f6752ec95e92/reebelo-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-reebelo-com-api-29b467b0/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_all_categories

Retrieve all top-level and sub-categories available on Reebelo, including nested children and category PKs for use with other endpoints.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-reebelo-com-api-29b467b0/get_all_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_category_brands

Retrieve all available brands for a category or collection slug, with offer counts per brand.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Category or collection slug (e.g. 'smartphones', 'laptops', 'tablets') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-reebelo-com-api-29b467b0/get_category_brands \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### get_collection_by_brand

Retrieve products filtered by a specific brand ID. Returns paginated SKU items for the given brand.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `brand_id` | string | Yes | Brand ID from get_category_brands (e.g. 'brd-merms4aeBz6hYtWCral7Vps' for Apple) |
| `limit` | integer | No | Max results per page. |
| `offset` | integer | No | Pagination offset. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-reebelo-com-api-29b467b0/get_collection_by_brand \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"brand_id":"<string>","limit":"<integer>","offset":"<integer>"}'
```

### get_condition_prices_for_product

Retrieve a mapping of condition to best price for each variant (storage/color combination) of a product model. Keys are formatted as 'storage | color' and values are objects mapping condition names to prices in dollars.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `psku` | string | Yes | Product SKU prefix (e.g. 'P-IPHONE15PRO', 'P-IPHONE15') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-reebelo-com-api-29b467b0/get_condition_prices_for_product \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"psku":"<string>"}'
```

### get_deals

Retrieve current deals and featured sale items. Returns paginated items with pricing, filters by categories, brands, and price range.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-reebelo-com-api-29b467b0/get_deals \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_product_detail

Retrieve full product details for a specific device model by slug. Returns product info with specifications, features, FAQ, and available SKU variants with pricing.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Product slug (e.g. 'apple-iphone-15', 'apple-iphone-15-pro'). Use the slug from search results or collection pages. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-reebelo-com-api-29b467b0/get_product_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### get_product_listing

Retrieve products in a category by PK. Returns paginated SKU items with offers and product details. Omitting category_pk returns all products.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_pk` | string | No | Category PK from get_all_categories (e.g. '02h610t3d104' for Smartphones). Omitting returns all products. |
| `limit` | integer | No | Max results per page. |
| `offset` | integer | No | Pagination offset. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-reebelo-com-api-29b467b0/get_product_listing \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_pk":"<string>","limit":"<integer>","offset":"<integer>"}'
```

### get_product_reviews

Retrieve reviews for a product or vendor using the review file hash. The hash can be found in vendor/product page data.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `review_hash` | string | Yes | Review file hash (e.g. 'a527af7f41c040487dc974586f293efd'). Derived from vendor or product page data. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-reebelo-com-api-29b467b0/get_product_reviews \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"review_hash":"<string>"}'
```

### get_sku_price

Retrieve pricing information for SKUs matching a product SKU prefix or specific SKU ID. Returns SKU items with offers and pricing details.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `psku` | string | No | Product SKU prefix (e.g. 'P-IPHONE15PRO'). At least one of psku or sku_id is required. |
| `sku_id` | string | No | Specific SKU ID to filter results (e.g. 'sku-mi9dfpu5kNRlYU1ocmE8Dpn'). At least one of psku or sku_id is required. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-reebelo-com-api-29b467b0/get_sku_price \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"psku":"<string>","sku_id":"<string>"}'
```

### search_products

Search for products by keyword. Returns matching product items with pricing ranges, brand, and category info. Supports filtering by categories, brands, variants, and price range.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword (e.g. 'iPhone 15', 'MacBook') |

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