Category Tree
Returns the grocery category tree, with the id each node needs for browsing that category directly.
Loading / 加载中…
Alcampo Groceries Data · E-commerce & marketplace data
This catalogue covers Alcampo's four public operations: the category tree, browsing one category's products, full product detail and keyword search. Three of the four calls return identifiers, EUR pricing, promotion and availability fields shaped by the delivery point sent with the request; the category tree call returns only category identifiers, and the product operation adds the ingredient, allergen and nutrition fields a full product page needs.
JSON in, a structured response out. Every public gateway endpoint uses POST.
Returns the grocery category tree, with the id each node needs for browsing that category directly.
Lists the products inside one category by its id, with the same paging, sorting and filtering options as keyword search.
Returns one product's full record, including ingredients, allergens, nutrition and images.
Searches the catalogue by keyword and returns pricing, promotions, availability and images for matching products.
alcampo-categories returns Alcampo's grocery categories across two levels, each node carrying the same four fields:
| Field | What it tells you |
|---|---|
id | the category's own identifier, unique within the tree |
name | the category's display name |
retailer_category_id | a separate code the chain keeps for the same category, for its own internal bookkeeping |
children | the subcategories nested directly under this node |
A subcategory inside children carries its own id and no further nesting beneath it, so a browsing tool never has to guess how deep a branch goes before it can stop descending.
alcampo-category and alcampo-search return the same kind of product row, chosen two different ways. alcampo-category takes a category's id in body.category_id and lists the products filed under it, paged up to 48 at a time, while alcampo-search takes free text in body.query, up to 100 characters, and matches it against the catalogue regardless of category.
Reaching for the category id when you already know which section of the catalogue you want avoids depending on how well a keyword matches a product's title or description, while a search call is the shorter path when a shopper has typed a product name rather than picked a category. A single alcampo-search call can therefore surface matching rows from several categories at once, something no single alcampo-category call can do, since each one is scoped to the one category its id names.
Every row that alcampo-search or alcampo-category returns describes one product's current standing in the catalogue, not just its identity:
alcampo-product carries these same fields forward into the full record, so a product opened later still shows the price and availability a shopper first saw in the row.
alcampo-category, alcampo-product and alcampo-search each take body.latitude and body.longitude as a pair, and the pricing, promotion and availability fields in every row they return follow whichever delivery point those coordinates describe. Sending only one of the two has the same effect as sending neither: all three operations then price and stock the answer for the chain's own default region instead of a specific address. body.postal_code travels alongside the coordinates when it is sent, but on its own, without body.latitude and body.longitude, it does not set the location either.
alcampo-product takes a product's id from a search or category row. Beyond the row, this record adds the write-up in description and the structured label data in fields and ingredients.
It also adds the safety information in allergens and the nutrition table, and the navigation and imagery in breadcrumbs and images. gtin, the barcode printed on the label, sits alongside these fields rather than inside any of them, so a catalogue that already indexes products by barcode can match on it directly once it is present.
Alcampo is a hypermarket chain in Spain, part of the Auchan group and described as the country's second-largest such chain. Its first store opened in Utebo, near Zaragoza, in 1981, Auchan's first site outside France.
A hypermarket, in the sense used across much of Europe, is a large store that sells groceries alongside many other kinds of goods under one roof, and that combined format is the one Alcampo grew from into its present grocery catalogue.
POST /api/v1/alcampo/<action> with x-api-key, Content-Type: application/json and a required Idempotency-Key.ok: true: data is the result of the operation, meta.requestId identifies the recorded request and meta.chargedCreditUnits is the amount charged. Otherwise ok is false and error.code names the reason; read ok and error.code rather than relying on the HTTP status alone. Every gateway reply carries a request id for support: meta.requestId, or a top-level requestId in a reply without meta (such as a refusal before admission).body.limit accepts 1 to 48 for alcampo-search and alcampo-category; a value outside that range is rejected instead of being rounded into it, and the default is 24 when the field is left out.body.sort only accepts favorite, priceAscending, priceDescending, pricePerAscending or pricePerDescending; any other value is rejected rather than falling back to the favorite default.body.on_offer only accepts true or false; any other value is rejected rather than defaulting to false.body.limit asked for, because the source drops duplicate rows across its own internal groups before the page is returned.alcampo-product adds gtin only when the product's label prints an EAN; a product without one comes back without that field.body.latitude and body.longitude must be sent together; without both, alcampo-category, alcampo-product and alcampo-search price and stock the answer for the chain's default region instead of a specific address, and body.postal_code sent alone does not set the location.id to send as body.category_id?Call alcampo-categories first. Its reply lists every category as id, name, retailer_category_id and children; send any node's own id, from the top level or from inside children, as body.category_id to alcampo-category. A top-level node and one nested inside children are sent the same way, since both carry their own id. The chain's own retailer_category_id is not a valid value for that field.
body.limit caps how many rows a single call can return from alcampo-search or alcampo-category. To move to the next page, take the next_cursor value from the current answer and send it back as body.cursor on the next call with the same query or category, the same filters and the same location; that walks the result set one page at a time instead of in a single call.
Send the exact text from the brands group of the answer's own facets[id=brands] list in body.brand. The value has to match a brand your previous search or category call already returned, rather than a brand name typed freehand, and either operation accepts it the same way.
Set body.on_offer to true on alcampo-search or alcampo-category to keep only rows carrying a source promotion. The field defaults to false, so a call that leaves it out returns items on offer and off offer alike. Pair it with body.brand or body.sort to narrow a promotions list down to one brand, or order it by price once only the promoted rows remain.
Set body.sort to priceAscending for the cheapest items first or priceDescending for the most expensive first; pricePerAscending and pricePerDescending sort by the unit price instead of the shelf price. Choosing a unit-price order instead of a shelf-price order matters most when the matching rows come in different pack sizes, since the shelf price alone would not rank them by value. Leaving body.sort out altogether falls back to favorite.
alcampo-search, alcampo-category and alcampo-product all take body.latitude and body.longitude as a pair; sending both sets the delivery point that pricing, promotions and availability follow. A call that sends only one of the two coordinates is treated the same as a call that sends neither, so a partial pair never produces a partial address either.
alcampo-product returns the same row fields as alcampo-search plus description, fields, ingredients, allergens, a nutrition table, breadcrumbs and images, so a single call replaces the row's brief listing with the label's full text, its structured attributes and the category path shown above the product. gtin sits alongside these fields and only appears for a product whose label actually carries a printed EAN.
alcampo-product's body.id also accepts product_id or a www.compraonline.alcampo.es product page address in the url alias, and alcampo-search's body.query also accepts the shorter alias q; the operation reads whichever of these you send. A catalogue id and a full product page link both reach alcampo-product's body.id this way, and a short query keyword reaches alcampo-search's body.query the same way, without any conversion on the caller's side.