# Aldi (Belgium) — 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.

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

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-aldi-be-api-92e8bcd1/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-aldi-be-api-92e8bcd1/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-aldi-be-api-92e8bcd1/get_promotions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-aldi-be-api-92e8bcd1/list_promotions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-aldi-be-api-92e8bcd1/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```
