# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/mediamarkt-germany/`
**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 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/credits/mediamarkt-germany/get-product-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/mediamarkt-germany/get-store-availability \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/mediamarkt-germany/search-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<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.