Skip to content
Scrappa Get API key
Mercadona API 1 credit / request

Mercadona Product API Documentation

GET https://scrappa.co/api/mercadona/product

Mercadona Product API 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.

Send id, with optional lang and wh. 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.

Mercadona Product API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/mercadona/product
Auth header
x-api-key
Cost
1 credit / request
id = 1234567890
Response preview
200 OK
{
    "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": {
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

2 optional filters available.

id string Required

Id from search, including decimals such as 12049.1.

Example value 1234567890
lang string Optional

es, en or ca (default es).

Example value example
wh string Optional

Soaked hub code vlc1, mad1, mad2, mad3, bcn1, svq1 or alc1, or a 5-digit store such as 46001 (default vlc1).

Example value example

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "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

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

The id is missing or invalid. This response is not billable.

{
    "errors": {
        "id": [
            "A product id is required, e.g. id=17153."
        ]
    },
    "message": "The request validation failed"
}
404

Not Found

No product with this id was found. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "product"
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "The requested resource was not found."
    },
    "success": false
}
503

Upstream Unavailable

The source could not be reached. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "product"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Mercadona could not be reached. Please retry shortly."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.