# Lidl (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.

> Find the latest weekly promotions and browse Lidl Germany's bestselling products across different categories to discover deals and availability. Search for specific items to quickly locate what you're looking for in Lidl's product catalog.

**Category:** E-commerce | **Website:** [lidl.de/](https://lidl.de/) | **Docs:** [parse.bot/marketplace/c1196609-1f12-4a33-a1a6-2a4f307ad7f2/lidl-de-api](https://parse.bot/marketplace/c1196609-1f12-4a33-a1a6-2a4f307ad7f2/lidl-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/lidl-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 all flyers

Retrieve all currently available Lidl Germany flyer PDFs with full metadata. Returns every active flyer from the promotional widget including names, validity date ranges, categories, PDF download URLs, page counts, file sizes, and thumbnail URLs. Typically 8–12 flyers are active at any time covering different promotional themes.

**Estimated cost:** Metered

_No parameters required._

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

### Get category products

Retrieve bestselling product IDs for a given category from Lidl Germany's online shop recommendations engine. Returns up to 50 product IDs ranked by popularity. Prices and descriptions are not available through this endpoint — use the IDs for cross-referencing or tracking.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_key` | string | Yes | Category key identifying the product category. |

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

### Get weekly promotions

Retrieve the latest weekly promotional flyer (Aktionsprospekt) with detailed product items. Fetches the current Aktionsprospekt from Lidl's leaflet widget, returning flyer metadata (validity dates, PDF URL) and a list of promotional products with IDs, titles, URLs, and page numbers. The flyer rotates weekly; items reflect the store's current in-store promotion cycle.

**Estimated cost:** Metered

_No parameters required._

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

### Search products

Search for products by keyword. Maps the query to a matching category and returns bestseller product IDs for that category. Keyword matching is substring-based: 'baby'/'spiel'/'kind' → baby-kind-spielzeug, 'essen'/'trink'/'milch'/'lebensmittel' → essen-trinken, 'wein'/'spirit'/'bier'/'alkohol' → wein-spirituosen, 'mode'/'kleid'/'schuh'/'accessoire' → mode-accessoires. Unmatched queries return an empty result with a note listing available categories.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword. Matched against known category keywords: baby/spiel/kind, essen/trink/milch/lebensmittel, wein/spirit/bier/alkohol, mode/kleid/schuh/accessoire. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/lidl-germany/search-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.