# Carrefour 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 and browse Carrefour Belgium's grocery catalog to find products with detailed nutritional information, ingredients, and pricing. Explore product categories and discover items that match your shopping needs.

**Category:** Food & Dining | **Website:** [www.carrefour.be/](https://www.carrefour.be/) | **Docs:** [parse.bot/marketplace/80394056-e6d4-4c44-b0a1-5f458dcc4acc/carrefour-be-api](https://parse.bot/marketplace/80394056-e6d4-4c44-b0a1-5f458dcc4acc/carrefour-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-carrefour-be-api-80394056/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_categories

List all top-level product categories available on Carrefour Belgium. Returns category IDs, names, and URLs. Use category_id values with get_category_products to browse products within a category.

**Estimated cost:** Metered

_No parameters required._

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

### get_category_products

Browse products within a specific category. Returns paginated product listings with the same fields as search_products. Each page returns up to 36 products.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | Yes | Category identifier (e.g. 'ros002', 'ros016'). Obtainable from get_categories results. |
| `page` | integer | No | Page number (1-based). Each page returns up to 36 products. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-carrefour-be-api-80394056/get_category_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<string>","page":"<integer>"}'
```

### get_product

Retrieve full product details by product ID, including name, brand, price, nutritional information, ingredients, allergens, nutri-score, images, and availability status.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | 8-digit numeric product ID (e.g. '07360861'). Obtainable from search_products or get_category_products results. |

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

### get_promotion

Retrieve a single promotion's details and all linked products. Uses the promotion_id from get_promotions to fetch up to 100 products linked to that promotion in one upstream request. Returns stale_input if no products are found for the given promotion_id.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `locale` | string | No | Site locale: nl-BE or fr-BE. |
| `promotion_id` | string | Yes | Promotion identifier from get_promotions (e.g. '406931'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-carrefour-be-api-80394056/get_promotion \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"locale":"<string>","promotion_id":"<string>"}'
```

### get_promotions

List current promotions on Carrefour Belgium grouped by promotion. Each item contains a PromotionObservation and the products visible in that page batch. Products within the same promotion from the source batch are grouped; total_items reflects the total promotional product count, not the number of distinct promotions. One upstream request per call.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | No | Optional category filter. Obtainable from get_categories. |
| `locale` | string | No | Site locale: nl-BE or fr-BE. |
| `page` | integer | No | 1-based page number. |
| `page_size` | integer | No | Items per page (1-100). Controls how many promotional products are fetched; the number of grouped promotion items may be smaller. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-carrefour-be-api-80394056/get_promotions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<string>","locale":"<string>","page":"<integer>","page_size":"<integer>"}'
```

### search_products

Full-text search over Carrefour Belgium's product catalog. Returns paginated product listings with price, brand, unit price, and availability. Results are ordered by relevance. Each page returns up to 36 products.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number (1-based). Each page returns up to 36 products. |
| `query` | string | Yes | Search query text (e.g. 'melk', 'pasta', 'chips'). |

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