# Metro (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 and retrieve product information from Metro Germany's Online Marketplace and Wholesale Store, including detailed product data and refrigeration subcategories. Find exactly what you're looking for across both retail channels with comprehensive product listings and specifications.

**Category:** E-commerce | **Website:** [metro.de/](https://metro.de/) | **Docs:** [parse.bot/marketplace/efbd3e45-5e0a-4ee7-a8aa-5b5b1f79425f/metro-de-api](https://parse.bot/marketplace/efbd3e45-5e0a-4ee7-a8aa-5b5b1f79425f/metro-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/metro-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 grossmarkt product detail

Get comprehensive details for a Großmarkt product including name, brand, article number, image, category hierarchy, and price. The BTY-X ID comes from search_grossmarkt_products results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | Yes | Product BTY-X ID from search results (e.g. 'BTY-X3141690032'). |
| `store_id` | string | No | Metro store ID, 5-digit string with leading zeros preserved. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/metro-germany/get-grossmarkt-product-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"id":"<string>","store_id":"<string>"}'
```

### Get marketplace product detail

Get comprehensive details for a single Marketplace product by UUID. Returns name, brand, pricing (net/gross), images, specifications, energy labels, categories, seller info, shipping time, and volume pricing tiers. The UUID comes from search_marketplace_products results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `uuid` | string | Yes | Product UUID from search results (e.g. '26c5f075-e08e-459c-946f-e7373f041b4d'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/metro-germany/get-marketplace-product-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"uuid":"<string>"}'
```

### List refrigeration subcategories

List all marketplace categories and their subcategories. Returns a hierarchical structure of product categories with names, slugs, images, status, and child categories. Useful for browsing the marketplace catalog structure.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/metro-germany/list-refrigeration-subcategories \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Search grossmarkt products

Search for products in the Metro Großmarkt (wholesale store). Returns product names, brands, prices (net), and store availability. Supports pagination via page number and rows per page. Results include BTY-X IDs suitable for fetching full details.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |
| `query` | string | No | Search keyword for finding products in the wholesale store. |
| `rows` | integer | No | Number of results per page. |
| `store_id` | string | No | Metro store ID, 5-digit string with leading zeros preserved. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/metro-germany/search-grossmarkt-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>","rows":"<integer>","store_id":"<string>"}'
```

### Search marketplace products

Search for products in the Metro.de Online-Marketplace (with delivery). Returns product names, prices (net and gross), images, discount info, and product URLs. Returns a single page of results per query. Each product carries a UUID suitable for fetching full details via the product detail endpoint.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | No | Search keyword for finding products in the marketplace. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/metro-germany/search-marketplace-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"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.