# Migros Switzerland Stores API Documentation

`GET /api/migros/stores` returns public stores with `id`, name, address and coordinates. Use `id` as the store id of the stock route.

## 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_stores](https://scrappa.co/docs/migros-api/migros_stores)
- **API group:** Migros Switzerland API
- **Endpoint:** `GET https://scrappa.co/api/migros/stores`

## 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 |
| --- | --- | --- | --- |
| `query` | string | Yes | Place or postcode. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/migros/stores?query=Z%C3%BCrich"
```

## Example response

```json
{
    "success": true,
    "context": {
        "country": "CH",
        "region": "national",
        "store_type": "OFFLINE",
        "language": "de"
    },
    "meta": {
        "endpoint_family": "migros-stores",
        "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)
