# Auchan — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 compare Auchan grocery products with real-time prices and availability. Search by keyword, browse categories, retrieve detailed product information, find nearby stores, and get search suggestions.

**Category:** Food & Dining | **Website:** [auchan.fr/](https://auchan.fr/) | **Docs:** [parse.bot/marketplace/dddc8977-b8de-457b-b8f3-6cb1a41c95ef/auchan-fr-api](https://parse.bot/marketplace/dddc8977-b8de-457b-b8f3-6cb1a41c95ef/auchan-fr-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/auchan/`
**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

### Browse category

Browse products within a specific category or subcategory on Auchan.fr. Returns paginated product summaries from the chosen category. Category IDs come from get_categories (e.g. 'ca-n01' for dairy). The 'ca-' prefix is added automatically if not present.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | Yes | Category ID from get_categories results (e.g. 'n01', 'ca-n01'). The 'ca-' prefix is added automatically if not present. |
| `page` | integer | No | Page number for pagination. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/auchan/browse-category \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<string>","page":"<integer>"}'
```

### Get categories

Retrieve the full category tree from the Auchan.fr homepage navigation. Returns all top-level product categories with their IDs, names, and URLs. Category IDs can be passed to browse_category to list products within that category.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/auchan/get-categories \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get product details

Fetch full details for a single product by its product ID. Includes nutritional values, ingredients, description, origin, manufacturer contact, and other product attributes when available. Fields vary by product — not all products have ingredients, contact, or nutritional data. The product_id is the code returned in search results (e.g. 'C1177828').

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | Product ID code from search or browse results (e.g. 'C1177828') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/auchan/get-product-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"product_id":"<string>"}'
```

### Get search suggestions

Get autocomplete search suggestions and related category refinements for a query. Returns keyword suggestions and category suggestions with their URLs. Suggestions are generated from a pre-cached set on the server and may return an empty list for uncommon queries.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search query to get suggestions for (e.g. 'lait', 'fromage') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/auchan/get-search-suggestions \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

### Get stores

Find Auchan stores by French postal code. Uses geocoding to search nearby stores geographically. Results depend on Auchan store coverage — some areas may return an empty list if no stores exist nearby. Returns store name, type, address, coordinates, and distance. Fields like id, city, latitude, longitude, distance, sellerId, channels, and storeReference are present when geocoding succeeds; fallback results contain only name, address, zipcode, type_name, and url.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `zipcode` | string | Yes | French postal code, 2-5 digits (e.g. '59000' for Lille, '69000' for Lyon). Stores are searched geographically around the postal code location. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/auchan/get-stores \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"zipcode":"<string>"}'
```

### Search products

Full-text search over Auchan.fr product catalog. Returns paginated product summaries matching the keyword query. Results include name, brand, rating, and availability. Pagination via page number; total_count reflects the server-side match count.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |
| `query` | string | Yes | Search keyword (e.g. 'lait', 'fromage', 'beurre') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/auchan/search-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```

## Next steps

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