# Efarmz — 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.

> Discover all available organic meal boxes from eFarmz.be for any week of the year to plan your weekly grocery delivery. Browse the complete selection of weekly meal box options and find the perfect organic meal plan that fits your dietary needs.

**Category:** Food & Dining | **Website:** [www.efarmz.be/box?period=202622](https://www.efarmz.be/box?period=202622) | **Docs:** [parse.bot/marketplace/19b6ab49-86c5-4ef6-87a8-267eaafd4439/efarmz-be-api](https://parse.bot/marketplace/19b6ab49-86c5-4ef6-87a8-267eaafd4439/efarmz-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-efarmz-be-api-19b6ab49/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_product_detail

Get detailed information about a specific product by its eFarmz product ID. Returns full product data including description, ingredients/allergens, brand details, and category hierarchy. The product_id can be obtained from search_products results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `language` | string | No | Language for product details. |
| `product_id` | string | Yes | eFarmz product ID (e.g. 'A6789'). Obtainable from search_products results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-efarmz-be-api-19b6ab49/get_product_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"language":"<string>","product_id":"<string>"}'
```

### get_weekly_mealboxes

Get the first 18 cooking meal box names and their tags available for a given week. Each meal box has one or more tags from: Classique, Famille, Express, Healthy, Veggie. A primary_tag is determined by priority order (Healthy > Express > Veggie > Famille > Classique). Returns cooking boxes only (excludes reheat boxes), in the chosen language (French or Dutch).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `language` | string | No | Language for meal box names. |
| `week` | string | Yes | ISO week number (1-53). For example: '23' corresponds to 01/06-07/06 in 2026, '24' to 08/06-14/06, etc. |
| `year` | string | No | 4-digit year for the period lookup. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-efarmz-be-api-19b6ab49/get_weekly_mealboxes \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"language":"<string>","week":"<string>","year":"<string>"}'
```

### search_products

Search for products on eFarmz by keyword. Returns up to 10 matching products with summary information including price, brand, origin, and categories. When no query is provided, returns a default product set.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `language` | string | No | Language for product names and descriptions. |
| `query` | string | No | Search query string (e.g. 'tomate', 'bio', 'fromage'). If omitted, returns a default set of products. |

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