From an Aldi UK API search to a full product detail call
Start with body.query on aldi-uk-search, a free-text keyword that also accepts q as an alternative name for the same field, to find candidate products. Once a result's id or product page address is in hand, send it as body.id to aldi-uk-product-detail to read that product's full price, description and label detail, including the ingredients, allergens and nutrition table a search row does not carry.
Because body.id also accepts product_id and a full product URL as alternative names for the same value, a workflow can keep whichever of the three a previous step already produced rather than converting it first. The id is a retailer-assigned SKU, not a GTIN, so a GTIN from a product's pack cannot be substituted for it.
Resolving a category or campaign key before you search
aldi-uk-categories takes no input and returns the full category tree in one call; reading a branch's id down to the level you need gives the value to send as body.categoryKey on aldi-uk-search. aldi-uk-promotions likewise takes no input and lists every campaign key Aldi UK currently publishes together with its on-sale dates and theme, and because upcoming dates are listed alongside current ones, a workflow can read a key ahead of time and query it once its on-sale date begins.
Both lookups return everything they hold in a single call, so a workflow can cache either one and look a key up locally instead of repeating the call before every search. A category id and a campaign key work independently of one another, so a search can use either filter on its own or combine them with a keyword in the same call.
Checking stock once a product id is known
aldi-uk-availability needs the product's id from a prior search or detail call, plus exactly one way of choosing where to look: body.location, a town or postcode; body.store_id, a branch reference read from an earlier availability reply; or the coordinate pair body.latitude and body.longitude sent together. Add body.radius only alongside coordinates to widen or narrow that search, since it has no effect with the other two location modes.
A workflow that already holds a branch reference from an earlier call should reuse body.store_id rather than resolving a town or postcode to coordinates each time, since the reference stays valid for later calls to the same branch. Add body.only_in_stock only when a result limited to stores currently carrying the product is wanted, since each store's own indicator and label still govern how that one result should be read.
Narrowing a search with brand, theme and category-tree facets
Run a first aldi-uk-search call with a keyword or body.categoryKey to get an initial result set together with its facets. From that reply's facets, copy exact values into body.brandName or body.theme on a following call to narrow the range, since both fields expect values matching a facet's own spelling rather than one typed free-hand; sending several values in either field widens the match to any row carrying one of them.
body.categoryTree works the same way but takes its values from that same reply's facets rather than from aldi-uk-categories, so it is only available once a first, broader search has already returned something to read facet keys from. Running the broad search first and then layering categoryTree, brandName and theme together narrows a listing step by step without discarding filters already chosen.
Paging search and stock results with a stable order
To read more than one page of aldi-uk-search, fix body.sort to the same value for every call in the run, since a value sent on one call does not carry over to the next and changing it partway mixes two different orders into one list. Start body.page at 1 and increase it by one each call, keeping body.limit at one of its seven allowed sizes throughout. aldi-uk-availability pages the same way, with body.limit capped at 10 stores per page instead.
Because a page requested past the end of either result set is rejected rather than answered as empty, a paging loop should stop as soon as the next page is rejected, rather than assuming a walk can always continue all the way to page 1000. The two operations keep separate page counters, so resuming a stock check after a search does not require resetting aldi-uk-search's own page back to 1, and the reverse holds too.
About Aldi UK
Aldi positions itself in the UK grocery market as a value-led discounter, built around everyday low prices rather than the broader branded ranges larger supermarkets carry. Consumer organisations compare supermarket prices, including Aldi's, across multiple chains partly through unit pricing, such as cost per 100g or 100ml, to help shoppers find the best value between pack sizes. UK food-safety alerts are issued when a packaged grocery product's label omits an allergen such as milk, egg or wheat, since shoppers with allergies rely on the label to avoid a reaction.
{
"body": {
"id": "000000000000543221",
"location": "London"
}
}[
{
"body": {
"query": "milk",
"brandName": [
"COWBELLE"
],
"limit": 12
}
},
{
"body": {
"id": "000000000000543221",
"location": "London"
}
}
]Server-side request template
This server-side template shows authentication and request identity using the first operation of this API. Choose the operation for your use case and check its current availability and price on the API page. After a timeout, resend the unchanged request with the same Idempotency-Key.
The gateway request is always POST.
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.
# 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"}}'Integration checklist
- The API key is stored in a server-side secret manager and never sent to a browser.
- Each request carries its own Idempotency-Key, kept until the request has a final answer.
- The integration reads ok and error.code and handles each error code as the error table describes.
- An uncertain POST is inspected using its original identity, never blindly repeated with a new one.
- The operation’s current availability and price have been checked on its API page.
Aldi UK API: stock, pricing and product labels overview and prices · Read the API reference · Try it in the playground