# MediaMarkt Germany — 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 on MediaMarkt Germany and retrieve detailed information including seller identification and real-time availability across different store locations. Check which stores have specific items in stock before making a purchase decision.

**Category:** E-commerce | **Website:** [www.mediamarkt.de/](https://www.mediamarkt.de/) | **Docs:** [parse.bot/marketplace/af7d034a-4306-4edd-b4a6-afaf5044e60a/mediamarkt-de-api](https://parse.bot/marketplace/af7d034a-4306-4edd-b4a6-afaf5044e60a/mediamarkt-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-mediamarkt-de-api-af7d034a/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_product_detail

Fetch full product details by MediaMarkt article number. Returns name, EAN/GTIN, price, currency, availability status, seller identification (first-party MediaMarkt vs third-party marketplace seller), and delivery cost. One network round-trip per call.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `article_number` | string | Yes | MediaMarkt article number (numeric ID, e.g. '3035465' or '142245268'). Available from search_products results. |

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

### get_store_availability

Check per-store (branch) pickup availability for a product near a German postal code. Returns up to 15 nearby MediaMarkt stores with their pickup status for the specified article. Useful for determining which physical stores have a product in stock for click-and-collect or reservation.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `article_number` | string | Yes | MediaMarkt article number (numeric ID). Available from search_products results. |
| `postal_code` | string | Yes | 5-digit German postal code (e.g. '04103' for Leipzig). Leading zeros preserved. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mediamarkt-de-api-af7d034a/get_store_availability \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"article_number":"<string>","postal_code":"<string>"}'
```

### search_products

Full-text search over the MediaMarkt DE catalog including marketplace listings. Returns products with pricing, stock status, seller identification (first-party vs marketplace), and delivery estimates. Results are auto-iterated across pages.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for paginated results. |
| `query` | string | Yes | German keyword search term (e.g. 'Midea PortaSplit', 'mobiles Klimagerät'). |

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