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 categories lists the full Mercadona category tree — top-level sections and their subcategories with numeric IDs and names. With --id N, it fetches all products in that category directly from the catalog API, which is useful for sorting by reference price, scanning for discounts, or building a product list without a search query. No authentication is required.
Synopsis
Flags
| Flag | Default | Description |
|---|---|---|
--id N | — | Fetch a single category’s products (numeric ID) |
--wh <code> | config/mad1 | Warehouse code |
--lang <code> | config/es | Language |
--json | false | Emit raw JSON (always raw when --id is used) |
Examples
Human output format (category tree)
Without--id, the command prints a compact indented tree:
Notable category IDs
Two category IDs are used internally by the--fresh flag in mercadona search and mercadona batch:
| ID | Name |
|---|---|
17 | Congelados (frozen) |
14 | Conservas, caldos y cremas (canned / preserved) |
--fresh to search or batch adds Algolia facet filters that exclude both of these top-level categories from results. Run mercadona categories without flags to discover all other category IDs for use with --category and --id.