# Migros (Switzerland) — 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 Migros' product catalog to find items by name or category, view detailed product information, and discover current promotional offers. Get everything you need to shop smarter at Switzerland's leading supermarket.

**Category:** Food & Dining | **Website:** [migros.ch/](https://migros.ch/) | **Docs:** [parse.bot/marketplace/412c0bae-ab7d-4639-8c21-c59e566d6f0f/migros-ch-api](https://parse.bot/marketplace/412c0bae-ab7d-4639-8c21-c59e566d6f0f/migros-ch-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-migros-ch-api-412c0bae/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_categories

Get top-level product categories for the Migros store. Returns a static list of main categories with their IDs, names, and slugs. Use the returned category IDs as input to get_products_by_category.

**Estimated cost:** Metered

_No parameters required._

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

### get_offers

Fetch current promotional offers. Returns promoted products with discount badges, promotion date ranges, weekend promotions, and upcoming promotions. Pagination is page-based (0-indexed). Each product includes promotion pricing alongside regular pricing.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Number of items per page |
| `page` | integer | No | Page number (0-based) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-migros-ch-api-412c0bae/get_offers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","page":"<integer>"}'
```

### get_product_details

Fetch comprehensive details for a single product by its Migros ID. Includes nutritional values table, ingredients, allergens, labels, carbon footprint rating, customer reviews rating, and full pricing. Returns input_not_found when the product ID does not match any product.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | Migros product ID (e.g. '204003200000') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-migros-ch-api-412c0bae/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id":"<string>"}'
```

### get_products_by_category

List products in a specific category by category ID. Returns product cards, subcategories with children for further navigation, and available filter options. Pagination is offset-based. Category IDs come from get_categories or from breadcrumb fields on product objects.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | Yes | Category ID from get_categories (e.g. '7494732' for Fruits & vegetables) |
| `limit` | integer | No | Maximum number of results to return |
| `offset` | integer | No | Number of results to skip for pagination |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-migros-ch-api-412c0bae/get_products_by_category \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<string>","limit":"<integer>","offset":"<integer>"}'
```

### search_products

Full-text search over the Migros product catalog. Returns product cards with name, price, brand, images, and category breadcrumb. Pagination is offset-based via the offset parameter. Each product includes a migrosId suitable for fetching full details via get_product_details.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of results to return |
| `offset` | integer | No | Number of results to skip for pagination |
| `query` | string | Yes | Search keyword (e.g. 'milk', 'bread', 'chocolate') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-migros-ch-api-412c0bae/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","offset":"<integer>","query":"<string>"}'
```
