# Migros Switzerland Product Details API Documentation

`GET /api/migros/product` returns one product. Pass the nine digit `id` from search unchanged, or a twelve digit `migros_id` from a product card. Image URLs are full size and `{stack}` is resolved.

## Credits

A successful request costs **1 credit**. Errors and challenges cost nothing. The response shows the charge in `meta.credits_charged`.

## Known gaps

Review text is client-side and unsupported; only aggregate numbers are returned. Promotion group rows are excluded from product cards. Some INSTORE_ONLY items have `price: null` because the source publishes no online price; no number is invented. For stock send `uids[]=a&uids[]=b` (2 to 10 nine digit uids). Exact similar-product data is not offered; use the public recommendation rails.

- **Documentation:** [https://scrappa.co/docs/migros-api/migros_product](https://scrappa.co/docs/migros-api/migros_product)
- **API group:** Migros Switzerland API
- **Endpoint:** `GET https://scrappa.co/api/migros/product`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | No | Nine digit catalogue uid from search. Use this or migros_id. |
| `migros_id` | string | No | Twelve digit product number from a card. Use this or id. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/migros/product?id=100006357"
```

## Example response

```json
{
    "success": true,
    "context": {
        "country": "CH",
        "region": "national",
        "store_type": "OFFLINE",
        "language": "de"
    },
    "meta": {
        "endpoint_family": "migros-product",
        "billable": true,
        "credits_charged": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | No public record for that id (`not_found`). Non-billable. |
| 422 | Validation Error | A parameter is missing, malformed or conflicts with another. Unknown parameters are rejected. Non-billable. |
| 503 | Upstream Unavailable | The source could not be reached or changed its shape. Retryable and never billed. Clients are never rate limited. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
