# Mercadona Product API Documentation

<p><strong>Mercadona Product API</strong> returns one public grocery product by its id from search. It adds origin, ingredients, allergens and the nutrition panel to the search fields. The id is a string and round-trips unchanged, including decimals such as 12049.1.</p><p>Send <code>id</code>, with optional <code>lang</code> and <code>wh</code>. Prices are in EUR. An unknown id answers 404 and is free. Fields the platform does not publish are left out. Rating and review count are null. Costs 1 credit per request; not found and failed requests are free.</p>

- **Documentation:** [https://scrappa.co/docs/mercadona-api/mercadona_product](https://scrappa.co/docs/mercadona-api/mercadona_product)
- **API group:** Mercadona API
- **Endpoint:** `GET https://scrappa.co/api/mercadona/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 | Yes | Id from search, including decimals such as 12049.1. |
| `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": {
        "lang": "es",
        "product": {
            "id": "17153",
            "name": "Leche entera",
            "size": "1 L",
            "brand": "Mercadona",
            "price": 0.95,
            "origin": "Espa\u00f1a",
            "rating": null,
            "currency": "EUR",
            "allergens": "Contiene leche.",
            "nutrition": {
                "nutrients": [
                    {
                        "name": "Energ\u00eda",
                        "unit": "kcal",
                        "amount": 64
                    }
                ]
            },
            "ingredients": "Leche entera.",
            "review_count": null
        },
        "warehouse": "vlc1"
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "product"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The id is missing or invalid. This response is not billable. |
| 404 | Not Found | No product with this id was found. This response is not billable. |
| 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)
