# Aldi (Belgium) — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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.

> Access data from aldi.be.

**Category:** Food & Dining | **Website:** [www.aldi.be/](https://www.aldi.be/) | **Docs:** [parse.bot/marketplace/92e8bcd1-f377-43ff-988d-98210638e178/aldi-be-api](https://parse.bot/marketplace/92e8bcd1-f377-43ff-988d-98210638e178/aldi-be-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/aldi-belgium/`
**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 details

Fetch detailed information for a specific ALDI Belgium product by its numeric product ID or product slug. Returns full product metadata including name, brand, description, pricing, promotional prices with validity dates, base price per unit, sales unit, categories, hierarchical category tree, and all associated images (primary, gallery, seals, certificates). Returns stale_input with kind 'input_not_found' if the product does not exist.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | Product identifier: a numeric product ID (e.g. '0602', '3005710') or a product slug (e.g. 'halfvolle-melk-0602'). When a slug is provided, the numeric ID is extracted from its last segment. |

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

### Get promotions

Fetch current or next week's promotional offers from ALDI Belgium. Returns grouped promotions with their validity dates, categories, and enriched product details including prices, strike prices, promo texts, and images. Each promotion group contains products from one offer period. Makes multiple requests to enrich product data (1 for the offer list + batched product lookups). The 'current' week includes all active and upcoming promotions for this week; 'next' shows the following week's offers.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `week` | string | No | Which week's promotions to fetch: 'current' or 'next'. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/aldi-belgium/get-promotions \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"week":"<string>"}'
```

### List promotions

List ALDI Belgium promotional offer groups for the current or next week. Returns shallow metadata directly from the promotions collection endpoint — group titles, validity dates, categories, teaser images, and linked retailer product IDs — without making any per-product enrichment requests. Product-level fields (name, image, price) are null because the collection source does not include them; use get_product_details or search_products to enrich individual IDs. Makes exactly 1 upstream request. Does not claim to represent all ALDI promotions. Cost: 1 credit per call.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `week` | string | No | Which week's promotions to fetch. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/aldi-belgium/list-promotions \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"week":"<string>"}'
```

### Search products

Search ALDI Belgium products by name (e.g. 'melk') or exact product ID (e.g. '0602'). Returns paginated results with product metadata, current prices, promotional strike prices when available, base price per unit, brand, categories, and image URLs. Results are ordered by relevance. Each page returns up to 20 products.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (1-based). |
| `query` | string | Yes | Search term: a product name (e.g. 'melk', 'chocolade'), brand, category, or exact numeric product ID (e.g. '0602'). When a product ID is used, the exact match appears first. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/aldi-belgium/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://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.