# 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-metro-de-api-efbd3e45/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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/parse-metro-de-api-efbd3e45/get_grossmarkt_product_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-metro-de-api-efbd3e45/get_marketplace_product_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-metro-de-api-efbd3e45/list_refrigeration_subcategories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-metro-de-api-efbd3e45/search_grossmarkt_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-metro-de-api-efbd3e45/search_marketplace_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
