# Auchan — 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 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-auchan-fr-api-dddc8977/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-auchan-fr-api-dddc8977/browse_category \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-auchan-fr-api-dddc8977/get_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-auchan-fr-api-dddc8977/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-auchan-fr-api-dddc8977/get_search_suggestions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-auchan-fr-api-dddc8977/get_stores \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-auchan-fr-api-dddc8977/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```
