Store stock checker
Checks indicative stock at one or more Aldi UK stores near a postcode, branch reference or coordinates, with paging and a stock-only filter.
Loading / 加载中…
Aldi UK API: stock, pricing and product labels · E-commerce & marketplace data
The Aldi UK API checks indicative store stock near a postcode, branch reference or coordinates, reads one product's price, description and label detail, lists the category tree with Specialbuys marked separately, finds current promotional campaigns, and searches the grocery range by keyword, brand, category or promotion with sorting and paging.
JSON in, a structured response out. Every public gateway endpoint uses POST.
Checks indicative stock at one or more Aldi UK stores near a postcode, branch reference or coordinates, with paging and a stock-only filter.
Returns Aldi UK's current category tree with nested children, marking Specialbuys branches separately from the grocery range.
Reads one Aldi UK product by id or URL, with its price, description, label detail, images, variants and store availability flags.
Lists Aldi UK's current dated promotional campaigns with their themes, for use as a search filter.
Searches Aldi UK's grocery range by keyword, brand, category, campaign or theme, with sorting, paging and facets.
aldi-uk-availability checks indicative stock for one product at nearby Aldi UK stores, and it needs the product's id together with exactly one way of choosing where to look: a location in body.location, a branch reference in body.store_id, or a coordinate pair in body.latitude and body.longitude sent together rather than on its own. body.radius narrows a coordinate search to a distance in miles and has no effect when a location or branch reference is used instead. body.only_in_stock marks a preference for stores currently carrying the product, but the traffic-light indicator and label each store carries in the reply still govern how that store's stock should be read, rather than the filter alone deciding it.
A product with no published availability data for the stores checked comes back as MARKET_UNAVAILABLE instead of a store list. Because the operation returns one page of stores at a time, a search covering many branches should step through body.page while holding body.limit, body.radius and the chosen location mode fixed across every call.
aldi-uk-product-detail reads one product by body.id and returns far more than a listing row: its identity and description, its price, label detail covering ingredients, allergens, nutrition, storage and usage, its images, its variants, and flags describing store availability. body.id takes the retailer SKU with its leading zeros kept, and also accepts product_id and a full Aldi UK product URL as alternative names for the same value, so whichever of the three a previous step produced can be sent as-is rather than converted first.
The id is a retailer-assigned SKU rather than a GTIN, so a GTIN printed on a pack will not match it. Because the label fields only appear on this call, a shopping or nutrition tool has to call aldi-uk-product-detail for a product once its id is known, rather than reading ingredients or allergens from a search or availability row.
aldi-uk-categories takes no input and returns Aldi UK's current category tree in a single call, with each branch's id, name, URL and its nested children continuing the tree down to leaf categories. Specialbuys branches, the rotating non-grocery offers sold alongside the regular grocery range, are marked separately within that same tree rather than returned by a second call. Reading the tree down to the branch a storefront needs gives the category id to send as body.categoryKey on aldi-uk-search, so a category browser built on this call does not need a separate lookup step before it can scope a search to one branch.
aldi-uk-promotions also takes no input and lists the campaign keys Aldi UK currently publishes, together with each campaign's on-sale dates and theme. Grocery offers and non-grocery merchandise campaigns are mixed together in that one reply rather than split into separate lists, so a caller reading campaign themes can tell which key covers which kind of offer before choosing one. A key read from this reply can be sent as body.promotionKey on aldi-uk-search to read the specific campaign it names instead of Aldi UK's wider grocery range, and because a campaign's dates are included, a workflow can read a key in advance and use it once its on-sale date begins.
body.query on aldi-uk-search matches a free-text keyword and also accepts q as an alternative name for the same field. body.categoryKey takes a category id read from aldi-uk-categories, and body.promotionKey takes a campaign key read from aldi-uk-promotions; either can be combined with a keyword in the same call. body.brandName and body.theme each take one or more exact values copied from a reply's own facets rather than typed free-hand, and giving several values in either field matches a row carrying any one of them rather than requiring all of them together.
body.categoryTree takes facet keys from a current search reply rather than the category ids aldi-uk-categories returns, so it narrows a result set that has already come back rather than opening a new one. Leaving body.query, body.categoryKey and body.promotionKey all unset pages through Aldi UK's grocery range instead of reading one keyword, category or campaign.
aldi-uk-search returns products with their published GBP pack and unit prices, any promotions applying to them, the category scope of the result set, pagination and a fresh set of facets for the filters already applied. body.sort orders that reply by relevance, the value used when the field is left out, alphabetically by name in either direction, or by price in either direction, and a value a later call sends replaces the order of that one call rather than carrying over to the next. Because the facets in a reply reflect only the filters already sent, adding one more filter such as body.brandName produces a narrower set of facets to read values from on the following call rather than the same list as before.
Aldi UK is the British arm of Aldi, a German discount supermarket brand run by two family-owned chains, Aldi Nord and Aldi Süd. The discount format dates to 1948, when brothers Karl and Theo Albrecht opened their first store in Essen, built around a limited range of own-label groceries.
Aldi opened its first UK store in 1990, in Stechford, Birmingham, bringing that low-price, limited-range model to British shoppers. Aldi UK calls its rotating range of limited-time, non-grocery deals Specialbuys, sold alongside the regular grocery range, and shoppers and the press commonly call the aisle carrying these weekly offers the middle aisle.
{
"body": {
"query": "milk",
"limit": 12
}
}POST /api/v1/aldi-uk/<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).aldi-uk-availability pages run from 1 to 1000, with 1 to 10 stores per page, defaulting to 10 when body.limit is left out.aldi-uk-availability, body.radius only applies with coordinates and runs from 1 to 50 miles, defaulting to 50 when left out.aldi-uk-availability requires body.latitude and body.longitude together; sending only one of the pair is not accepted.aldi-uk-search accepts only seven body.limit values (12, 16, 24, 30, 32, 48 or 60) and defaults to 30 when the field is left out.aldi-uk-categories and aldi-uk-promotions take no input fields, so neither can be scoped to one branch, campaign or date on its own.aldi-uk-product-detail and aldi-uk-availability both require body.id; a call without it is rejected rather than answered with an empty record.Run aldi-uk-search first to get the product's id, then pass that id to aldi-uk-availability along with a town or postcode in body.location — or, if you already have one, a branch reference in body.store_id instead of a location. Results come back one page at a time, so step through body.page while leaving body.limit and the chosen location field unchanged across calls.
On aldi-uk-availability, use body.latitude and body.longitude instead of body.location or body.store_id — the two coordinate fields have to travel together, and whichever of the three you choose, add body.radius to size the search area in miles, up to 50, defaulting to 50 if you leave it out. Pick exactly one of the three location modes per call alongside the required product id.
Send whatever value you already have — the retailer SKU with its leading zeros, the alternative name product_id, or a full product-page URL — straight into body.id on either aldi-uk-product-detail or aldi-uk-availability; all three forms resolve to the same product without any conversion step in between. This is useful when a URL comes from a shopper and the SKU itself was never pulled out of it by hand.
Everything a listing row leaves out shows up here: full label text covering ingredients, allergens, a nutrition table, storage and usage guidance, the product's own images, its variant options, and a marker for store-level availability, alongside the usual name, description and price. A workflow holding only a search or stock-check row has to make this separate call before any of that label information can be shown to a shopper.
One call to aldi-uk-categories hands back the whole structure at once: every branch's id, name and URL, nested down to the leaf level, with Specialbuys kept apart from the ordinary grocery branches rather than mixed into the same list. Pick the id of whichever branch you need from that structure and pass it on as body.categoryKey to scope a later aldi-uk-search call to just that branch.
Call aldi-uk-promotions to read the current list of campaign keys, then pass one into body.promotionKey on aldi-uk-search. That filter also combines with body.categoryKey in the same call, since neither field excludes the other, so a search can be narrowed to one campaign and one category at the same time instead of only one of the two.
body.brandName and body.theme only recognise values copied exactly as a facet already spelled them, never a name typed from memory, and listing more than one widens a search to any row matching at least one of them. body.categoryTree behaves the same way but draws its values from a search reply's own facets rather than from the category tree aldi-uk-categories exposes, so a prior search reply has to exist before this field can be used at all.
Set body.sort to price_asc for the cheapest results first or price_desc for the most expensive first on aldi-uk-search; the other allowed values are relevance, the default when the field is left out, name_asc and name_desc. A value sent on one call applies only to that one reply, so a workflow paging through several calls has to send the same sort value again on every call to keep one consistent order.
body.page on aldi-uk-search and aldi-uk-availability is one-based and runs up to 1000, but a page requested past the end of the current result set is rejected rather than answered as an empty page. A paging loop should treat that rejection as the signal to stop, rather than assuming every page up to 1000 can always be requested regardless of how many rows actually exist.