# Albert Heijn 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.

> Search for products and browse current promotions at Albert Heijn Belgium, then get detailed information about any item including pricing and availability. Stay updated on the latest deals and product offerings from ah.be directly through this integration.

**Category:** Food & Dining | **Website:** [www.ah.be/](https://www.ah.be/) | **Docs:** [parse.bot/marketplace/a749583c-8dbc-4dbf-b45f-7d6524d3ad79/ah-be-api](https://parse.bot/marketplace/a749583c-8dbc-4dbf-b45f-7d6524d3ad79/ah-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-ah-be-api-a749583c/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_product

Get detailed information for a specific product by its numeric ID. Returns full product metadata including summary description, feature highlights, pricing, images in two sizes, availability, and category path. Use product IDs from search_products results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | Numeric product ID (e.g. '1525'). Obtained from search_products results or promotion product listings. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ah-be-api-a749583c/get_product \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id":"<string>"}'
```

### get_promotions

Get all current weekly bonus/promotion segments with their products. Returns promotion groups organized by segment (e.g. brand bundles, individual discounts). Each segment contains a list of products currently on promotion. Products in this response do not include pricing; use get_product with the product ID to retrieve current discounted prices.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ah-be-api-a749583c/get_promotions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_products

Search for products by text query. Returns up to 30 matching products per call with pricing, images, and category information. The total_found field indicates how many products match overall.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search term (e.g. 'melk', 'brood', 'kaas'). Supports Dutch product names, brands, and categories. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ah-be-api-a749583c/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
