# Mercadona Discovery API Documentation

<p><strong>Mercadona Discovery API</strong> lists public home discovery sections with their products for a language and warehouse.</p><p>Send optional <code>lang</code> (es, en or ca) and <code>wh</code> (a hub code or 5-digit store). Costs 1 credit per request; failed requests are free.</p>

- **Documentation:** [https://scrappa.co/docs/mercadona-api/mercadona_discovery](https://scrappa.co/docs/mercadona-api/mercadona_discovery)
- **API group:** Mercadona API
- **Endpoint:** `GET https://scrappa.co/api/mercadona/discovery`

## 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 |
| --- | --- | --- | --- |
| `lang` | string | No | es, en or ca (default es). |
| `wh` | string | No | Soaked hub code vlc1, mad1, mad2, mad3, bcn1, svq1 or alc1, or a 5-digit store such as 46001 (default vlc1). |

## Example response

```json
{
    "data": {
        "sections": [
            {
                "id": "1",
                "products": []
            }
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "discovery"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 503 | Upstream Unavailable | The source could not be reached. This response is not billable. |

## 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)
