# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/efarmz/`
**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 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/credits/efarmz/get-product-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/efarmz/get-weekly-mealboxes \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/efarmz/search-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"language":"<string>","query":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.