Documentation
Aldi UK API reference
Reference for the Aldi UK API: what its five operations accept, their defaults and bounds, and what each one's reply holds.
See also: Aldi UK API: stock, pricing and product labels overview and prices · Aldi UK API guide: search, stock checks and paging
On this page
aldi-uk-availability in the Aldi UK API: resolving a location
Resolving where to look is the first requirement on aldi-uk-availability: supply body.id together with a town or postcode in body.location, a branch reference in body.store_id, or coordinates paired in body.latitude and body.longitude; the coordinate fields are rejected if only one of them is present, and so is a location mode sent without the id. The same body.id field also accepts product_id or a full product-page URL in its place. Pairing body.radius with coordinates changes the search distance, while pairing it with body.location or body.store_id changes nothing, since the radius has nothing to measure from in those two modes.
Setting body.only_in_stock expresses a preference rather than a filter the operation enforces on its own — each returned store still carries its own traffic-light indicator and label, and those two values are what actually say whether that branch currently has the item. MARKET_UNAVAILABLE replaces the store list entirely when none of the checked branches have stock figures recorded for that product.
Paging stops rather than wrapping once body.page passes the last page of results, and a body.limit value outside its allowed range meets the same refusal instead of being rounded down. The store reference printed on each row doubles as the value to feed back into body.store_id on a later call, alongside that row's own indicator and label.
Fields in this section (10)
aldi-uk-availability, body.id, body.location, body.store_id, body.latitude, body.longitude, body.radius, body.only_in_stock, body.page, body.limit
aldi-uk-categories and aldi-uk-promotions: two input-free lookups
aldi-uk-categories and aldi-uk-promotions share one trait: neither reads a single input field, so both always answer with their complete contents rather than a scoped slice. The category reply nests children beneath each branch down to the leaf level, carries an id, name and URL at every level, and sets Specialbuys branches apart from the ordinary grocery branches inside that same structure.
The promotions reply instead lists campaign keys with the on-sale window and theme attached to each one, with grocery-range offers and non-grocery merchandise sitting side by side rather than in separate lists. Either reply feeds the next call directly: a branch id becomes body.categoryKey and a campaign key becomes body.promotionKey, both sent to aldi-uk-search to pull a narrower slice of the grocery range than an unscoped query would.
Fields in this section (5)
aldi-uk-categories, aldi-uk-promotions, body.categoryKey, body.promotionKey, aldi-uk-search
aldi-uk-product-detail: identifying one product and its label
body.id is the one field aldi-uk-product-detail requires, and it reads the retailer's own SKU, leading zeros included; the same field also takes product_id or a full product-page URL in its place. Because the SKU is retailer-assigned rather than the manufacturer's GTIN, a code lifted from a product's barcode is the wrong value to send here. Past what the input table lists, the reply itself bundles a product's name and description with its price, a label block spanning ingredients, allergens, nutrition, storage and usage, its photos, its variant list, and markers for store-level availability — none of which show up on a row from aldi-uk-search or aldi-uk-availability.
Fields in this section (2)
aldi-uk-product-detail, body.id
aldi-uk-search: query, category and campaign filters
A keyword goes into body.query on aldi-uk-search, or its alternative spelling q. It can sit alongside body.categoryKey, a branch id sourced from aldi-uk-categories, or body.promotionKey, a campaign key sourced from aldi-uk-promotions — none of the three forces the exclusion of the others. Omit all three and the call still succeeds, stepping through the grocery range page by page instead of narrowing to a term, branch or campaign.
body.brandName and body.theme each carry one or more exact strings pulled from a prior reply's facets rather than composed by hand, and listing more than one string in either field widens the match to any row holding at least one of them. body.categoryTree, despite its name, draws its values from a search reply's own facets rather than from the category tree aldi-uk-categories exposes, which is why it can only narrow a result set that already exists.
Fields in this section (9)
aldi-uk-search, body.query, body.categoryKey, body.promotionKey, aldi-uk-categories, aldi-uk-promotions, body.brandName, body.theme, body.categoryTree
aldi-uk-search: sorting, paging and the fields a reply returns
Ordering on aldi-uk-search comes from body.sort: relevance by default, alphabetical in either direction, or price in either direction, and whichever value a call carries applies to that call alone rather than persisting into the next one — an unrecognised value is turned away rather than quietly swapped for the default. Asking for a page beyond the last one draws a rejection instead of an empty array, and the same refusal meets a body.limit value outside its allowed set rather than seeing it rounded to the nearest option. What comes back is priced in GBP at both the pack and unit level, carries any promotion attached to a row, states the category scope the search landed in, includes pagination, and ships a fresh facet set computed only from whatever filters that one call applied.
Fields in this section (4)
aldi-uk-search, body.sort, body.page, body.limit
{
"body": {
"query": "milk",
"brandName": [
"COWBELLE"
],
"limit": 12
}
}Operations
Every public gateway operation uses POST /api/v1/{project}/{action}.
Use a JSON object with the documented path, query, headers and body locations; omit unused locations. input.headers is JSON data for the operation, not browser request headers. Do not put credentials here. Keep body arrays, scalar values and null as documented; omission is different from null.
Store stock checker
POST /api/v1/aldi-uk/aldi-uk-availability
Checks indicative stock at one or more Aldi UK stores near a postcode, branch reference or coordinates, with paging and a stock-only filter.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.id | string | Required | — | — | — |
body.latitude | number | Optional | — | — | -90–90 |
body.limit | integer | Optional | 10 | — | 1–10 |
body.location | string | Optional | — | — | — |
body.longitude | number | Optional | — | — | -180–180 |
body.only_in_stock | boolean | Optional | false | — | — |
body.page | integer | Optional | 1 | — | 1–1000 |
body.radius | integer | Optional | 50 | — | 1–50 |
body.store_id | string | Optional | — | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/aldi-uk/aldi-uk-availability' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"id":"000000000000543221"}}'Category tree
POST /api/v1/aldi-uk/aldi-uk-categories
Returns Aldi UK's current category tree with nested children, marking Specialbuys branches separately from the grocery range.
Input fields
This operation takes no input fields. Send the JSON request body shown below.
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/aldi-uk/aldi-uk-categories' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{}}'Product detail
POST /api/v1/aldi-uk/aldi-uk-product-detail
Reads one Aldi UK product by id or URL, with its price, description, label detail, images, variants and store availability flags.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.id | string | Required | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/aldi-uk/aldi-uk-product-detail' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"id":"000000000000543221"}}'Promotion campaigns
POST /api/v1/aldi-uk/aldi-uk-promotions
Lists Aldi UK's current dated promotional campaigns with their themes, for use as a search filter.
Input fields
This operation takes no input fields. Send the JSON request body shown below.
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/aldi-uk/aldi-uk-promotions' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{}}'Product search
POST /api/v1/aldi-uk/aldi-uk-search
Searches Aldi UK's grocery range by keyword, brand, category, campaign or theme, with sorting, paging and facets.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.brandName | string[] | Optional | — | — | — |
body.categoryKey | string | Optional | — | — | — |
body.categoryTree | string[] | Optional | — | — | — |
body.limit | number | Optional | 30 | 12162430324860 | — |
body.page | integer | Optional | 1 | — | 1–1000 |
body.promotionKey | string | Optional | — | — | — |
body.query | string | Optional | — | — | — |
body.sort | string | Optional | "relevance" | "relevance""name_asc""name_desc""price_asc""price_desc" | — |
body.theme | string[] | Optional | — | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/aldi-uk/aldi-uk-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"brandName":["COWBELLE"],"limit":12,"query":"milk"}}'How calls work
POST /api/v1/aldi-uk/<action>withx-api-key,Content-Type: application/jsonand a requiredIdempotency-Key.- A successful call returns
ok: true:datais the result of the operation,meta.requestIdidentifies the recorded request andmeta.chargedCreditUnitsis the amount charged. Otherwiseokisfalseanderror.codenames the reason; readokanderror.coderather than relying on the HTTP status alone. Every gateway reply carries a request id for support:meta.requestId, or a top-levelrequestIdin a reply withoutmeta(such as a refusal before admission). - Charged the listed price only when a call succeeds. Failures are not charged; an unconfirmed outcome is released after at most 900 seconds without a charge.
- Repeating the same request with the same Idempotency-Key after it has finished returns the stored response for 24 hours without a new charge.
In the gateway reference: