# Bike Discount — 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 e-bikes from Bike-Discount.de to retrieve detailed specs, motor information, frame geometry, pricing, and stock availability. Access comprehensive product data across multiple brands and categories for research, comparison, and market analysis.

**Category:** E-commerce | **Website:** [bike-discount.de/](https://bike-discount.de/) | **Docs:** [parse.bot/marketplace/b38da91c-48d1-4d7a-8c37-3e882af5b169/bike-discount-de-api](https://parse.bot/marketplace/b38da91c-48d1-4d7a-8c37-3e882af5b169/bike-discount-de-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-bike-discount-de-api-b38da91c/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_brands_list

Retrieve the list of available e-bike brands from the category filter panel. Returns brand names visible in the Marke (brand) filter on the e-bike category page.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bike-discount-de-api-b38da91c/get_brands_list \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_ebike_category_listing

Retrieve a paginated list of e-bikes from the category page. Returns product cards with name, price, URL, and image. Sort options control ordering: 1=topseller, 2=price ascending, 3=price descending, 4=newest. Each page returns up to n items.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `n` | integer | No | Items per page. |
| `o` | integer | No | Sort order: 1=topseller, 2=price ascending, 3=price descending, 4=newest. |
| `p` | integer | No | Page number (1-based). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bike-discount-de-api-b38da91c/get_ebike_category_listing \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"n":"<integer>","o":"<integer>","p":"<integer>"}'
```

### get_ebike_geometry

Extract frame geometry data from a product page. Returns geometry tables when available; some products may not have geometry data (empty array returned).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url_slug` | string | Yes | Product URL path starting with /de/ (e.g. /de/radon-render-al-8.0-750-2). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bike-discount-de-api-b38da91c/get_ebike_geometry \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url_slug":"<string>"}'
```

### get_ebike_motor_info

Extract motor/drive system marketing description from a product page. Returns the full text content of the motor information tab.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url_slug` | string | Yes | Product URL path starting with /de/ (e.g. /de/radon-render-al-8.0-750-2). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bike-discount-de-api-b38da91c/get_ebike_motor_info \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url_slug":"<string>"}'
```

### get_ebike_pricing_and_stock

Retrieve current price and dataLayer metadata from a product page. Includes structured pricing from site dataLayer (net price, currency, product ID, category).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url_slug` | string | Yes | Product URL path starting with /de/ (e.g. /de/radon-render-al-8.0-750-2). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bike-discount-de-api-b38da91c/get_ebike_pricing_and_stock \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url_slug":"<string>"}'
```

### get_ebike_product_detail

Retrieve full product details for a specific e-bike by its URL slug. Returns specs, motor info, geometry, pricing, variants, and dataLayer metadata. The url_slug is the path portion starting with /de/ as seen in product URLs from category listings or search results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url_slug` | string | Yes | Product URL path starting with /de/ (e.g. /de/radon-render-al-8.0-750-2). Obtainable from get_ebike_category_listing or search_products product url field. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bike-discount-de-api-b38da91c/get_ebike_product_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url_slug":"<string>"}'
```

### get_ebike_specifications

Extract the full technical specification table from a product page. Returns key-value pairs of component specs (frame, fork, brakes, motor, battery, etc.).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url_slug` | string | Yes | Product URL path starting with /de/ (e.g. /de/radon-render-al-8.0-750-2). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bike-discount-de-api-b38da91c/get_ebike_specifications \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url_slug":"<string>"}'
```

### get_ebike_subcategories

List available bike subcategories from the e-bike section navigation. Returns all category links visible in the sidebar navigation including e-bike types, model years, and other bike categories.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bike-discount-de-api-b38da91c/get_ebike_subcategories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_products

Search for products by keyword across the entire bike-discount.de catalog. Returns a paginated list of matching product cards. Results include bikes, parts, and accessories matching the query.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `p` | integer | No | Page number (1-based). |
| `query` | string | Yes | Search keyword. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bike-discount-de-api-b38da91c/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"p":"<integer>","query":"<string>"}'
```
