Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ivorpad/mercadona-cli/llms.txt
Use this file to discover all available pages before exploring further.
mercadona product fetches the full detail for one product by its numeric ID. It returns the unit price, reference price, packaging format, product URL, and — for products that carry it — a per-100g nutrition table with allergens and ingredients. No authentication is required.
Synopsis
mercadona product [flags] <id>
Flags
| Flag | Default | Description |
|---|
--wh <code> | config/mad1 | Warehouse code (product IDs are per-warehouse) |
--lang <code> | config/es | Language |
--json | false | Emit raw JSON to stdout |
Examples
# Product detail (human output)
mercadona product 13406
# With nutrition info
mercadona product 17559
# Structured output
mercadona product 17559 --json
# Extract kcal and allergens with jq
mercadona product 17559 --json | jq '{
kcal: .product_information.nutritional_information[0].energy_calories.amount,
allergens: .nutrition_information.allergens
}'
[17559] Empanadilla de bacon 11% y queso 32%
precio: 1.40€ (12.728 kg)
formato: Pieza
url: https://tienda.mercadona.es/product/17559/empanadilla-bacon-11-queso-32-pieza
nutrición (Por 100 g):
energía: 385 kcal / 1598 kJ
Grasas: 29 g
Saturadas: 15 g
Hidratos de carbono: 21 g
Azúcares: 2 g
Proteínas: 9.2 g
Sal: 1.1 g
JSON output shape
With --json, the full raw API response is emitted. Key fields:
{
"id": "17559",
"display_name": "Empanadilla de bacon 11% y queso 32%",
"packaging": "Pieza",
"share_url": "https://tienda.mercadona.es/product/17559/...",
"price_instructions": {
"unit_price": "1.40",
"reference_price": "12.728",
"reference_format": "kg"
},
"nutrition_information": {
"allergens": "Contiene huevos y productos a base de huevo...",
"ingredients": "..."
},
"product_information": {
"nutritional_information": [
{
"per_quantity": "Por 100 g",
"energy_calories": {"amount": "385.0", "unit": "kcal"},
"energy_joules": {"amount": "1598.0", "unit": "kJ"},
"nutrients": [
{
"name": "Grasas",
"amount": "29",
"unit": "g",
"sub_nutrients": {
"subtitle": "de las cuales:",
"items": [{"name": "Saturadas", "amount": "15", "unit": "g"}]
}
}
]
}
]
}
}
The per-100g numeric nutrition table under product_information.nutritional_information is only present for a minority of products — mostly prepared and processed items. nutrition_information (allergens and ingredients as plain text) is available for most products. Do not rely on the numeric table being present for any given product ID.
Product IDs are per-warehouse. An ID obtained from a search or batch call using one --wh value may return a 404 error when queried against a different warehouse. Always use IDs and prices from the same warehouse as your delivery address. Use mercadona set-postal <cp> to pin the correct warehouse to your configuration.