# Bedshed — 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 mattresses and bedroom furniture, locate Bedshed stores near you, and access detailed product information including specs and pricing from Australia's leading bed retailer. Find exactly what you need and discover where to shop with real-time store and product data.

**Category:** E-commerce | **Website:** [www.bedshed.com.au/mattress-selector](https://www.bedshed.com.au/mattress-selector) | **Docs:** [parse.bot/marketplace/debb0b0b-129c-4bad-ba89-4bd6afd0f930/bedshed-com-au-api](https://parse.bot/marketplace/debb0b0b-129c-4bad-ba89-4bd6afd0f930/bedshed-com-au-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-bedshed-com-au-api-debb0b0b/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### find_stores

Find Bedshed retail stores by Australian postcode or state. Results are sorted by distance when searching by postcode.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `postcode` | string | No | Australian postcode to search near (e.g. '2000', '6000'). Returns stores sorted by distance from this postcode. |
| `state` | string | No | Australian state abbreviation. Accepts: WA, NSW, QLD, VIC, ACT. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bedshed-com-au-api-debb0b0b/find_stores \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"postcode":"<string>","state":"<string>"}'
```

### get_product_details

Get detailed product information by SKU, including description, pricing, available sizes, firmness options, images, and child product variants.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sku` | string | Yes | Product SKU identifier (e.g. '50097', '50085'). Available from search_products results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bedshed-com-au-api-debb0b0b/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sku":"<string>"}'
```

### search_products

Search and filter products from the Bedshed catalog. Supports filtering by category, brand, size, and product type. Returns paginated results with available filter aggregations.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `brand` | string | No | Brand filter. Known values include: Dreamsense, Drift, Insignia, Kingsdown, Sealy, Sleepmaker, TEMPUR. |
| `category` | string | No | Product category filter. Known values include: Mattresses & Bases, Bed Frames, Custom Bed Frames, Bedroom Furniture, Kids Bedroom, Manchester, Clearance. |
| `limit` | integer | No | Number of products per page. |
| `page` | integer | No | Page number for pagination. |
| `product_type` | string | No | Product type filter. Known values include: Adjustable Base, Base, Mattress, Trundle. |
| `query` | string | No | Free-text search query (e.g. 'queen mattress'). When omitted, returns all products matching the filters. |
| `size` | string | No | Size filter. Known values include: Single, Single Long, King Single, Double, Queen, King, Split King, Super King. |
| `sorting` | string | No | Sort order. Accepts: featured, max_saving_percentage, name_asc, name_desc, highest_price, lowest_price, express_shipping, relevance. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bedshed-com-au-api-debb0b0b/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"brand":"<string>","category":"<string>","limit":"<integer>","page":"<integer>","product_type":"<string>","query":"<string>","size":"<string>","sorting":"<string>"}'
```
