Mercadona Categories API lists the public category tree with category ids and product counts for a language and warehouse. Use a category id with the search or category route to list its products.
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.
Run this endpoint
Endpoint
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.
string
Optional
es, en or ca (default es).
example
string
Optional
Soaked hub code vlc1, mad1, mad2, mad3, bcn1, svq1 or alc1, or a 5-digit store such as 46001 (default vlc1).
example
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"categories": [
{
"id": "112",
"name": "Leche y derivados",
"count": 42
}
]
},
"meta": {
"credits": 1,
"billable": true,
"endpoint_family": "categories"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Upstream Unavailable
The source could not be reached. This response is not billable.
{
"meta": {
"billable": false,
"retryable": true,
"endpoint_family": "categories"
},
"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.