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

Mercadona Discovery API Documentation

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

Mercadona Discovery API lists public home discovery sections with their products for a language and warehouse.

Send optional lang (es, en or ca) and wh (a hub code or 5-digit store). Costs 1 credit per request; failed requests are free.

Mercadona Discovery API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/mercadona/discovery
Auth header
x-api-key
Cost
1 credit / request
Response preview
200 OK
{
    "data": {
        "sections": [
            {
                "id": "1",
                "products": []
            }
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "discovery"
    },
...

Parameters

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

Runnable path

This endpoint has no required query parameters.

2 optional filters available.

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": {
        "sections": [
            {
                "id": "1",
                "products": []
            }
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "discovery"
    },
    "success": true
}

Errors

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

503

Upstream Unavailable

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

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "discovery"
    },
    "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.