From a search or category row to the Alza API's full product record
To open one product's full record rather than reading only what a row already carries, run alza-search or alza-category first and take the product_id any row already returns. Send that same value as body.product_id to alza-product-detail, which also accepts the aliases id and url, so a product URL copied from a row works just as well. Doing this adds the fields neither a search nor a category row carries at all: the full specs[] table, the photo gallery in images[], colour or capacity variants[], and the delivery wording, none of which arrive until this second call is made.
Comparing one product's price across Alza's storefronts
Because currency, catalogue and price all follow body.country, call alza-product-detail once for each country you want to compare, keeping the same body.product_id throughout. Switch only body.country between cz, sk, hu, at and de on each of those calls.
Read price, currency and was_price from each reply; the same product really can be priced differently from one storefront to another. alza.co.uk is not among the five, so a UK price is never one of the replies to compare. Reading monthly_instalment alongside price on each reply also shows whether financing is offered on that particular storefront, since it is reported separately from the price itself on every one of the five.
Paging through a product's full review feed
Read total_reviews from a first call to alza-product-reviews to learn how many reviews exist for that body.product_id in total. Then repeat the call with body.offset raised by whatever body.limit you sent each time, up to the 50-review limit per call, until offset reaches total_reviews. Because Alza's own feed pages 10 at a time, sending a body.limit above 10 already saves some of those follow-up calls, since the engine pages through that many reviews for you inside the one request.
Filtering and sorting before paging a category or search
Decide the filters first: body.brand, body.min_price and body.max_price, together with body.sort. Add whichever of body.in_stock_only, body.discounted_only, body.new_arrivals_only or body.well_rated_only apply as well.
Send them all on the first call to alza-category or alza-search alongside body.page set to 1, then raise body.page on each later call rather than repeating the filters differently, since the filtered result's own page_count already accounts for them and would otherwise disagree between calls. Watch brands[] on that first reply for the valid brand names before trying body.brand again.
Choosing between a keyword search and a known category
Call alza-search with a shopper's own words in body.query when no category is known yet, and read search_mode back. resolved means Alza matched the keyword to one of its own category or brand pages, and resolved_url together with category_id can be reused directly on a later alza-category call instead of searching again. keyword mode means the storefront stayed on its free-text page, where filters_supported is false and a body.sort or price filter would be rejected rather than applied, so leave those out of that particular call.
Checking what a filtered result actually matched before you page further
filters_applied on alza-category or alza-search reports back which of the filters sent with a call actually took effect, which is worth reading once before paging further with body.page. An unrecognised body.brand is rejected outright, while an unrecognised body.in_stock_only, body.discounted_only, body.new_arrivals_only or body.well_rated_only is instead ignored with its own default silently applied. Checking filters_applied after the first call confirms which of those silently-defaulted filters actually took hold before you commit to paging through however many results page_count reports for that same combination.
Switching between a product's colour or capacity variants
A product-detail reply's variants[] lists the colour or capacity options alongside the one you asked for, each carrying its own product_id, a price_difference from the product you called with, and whether it is already the selected one. To open a different variant's own full record rather than only its price difference, send that variant's own product_id as body.product_id on a second alza-product-detail call. availability on each variant option shows whether it, specifically, can be delivered, separately from in_stock on the product you first called with.
Calling Alza's operations directly with a copied page address
body.category and body.product_id both accept a full page address instead of an id: a category page URL sets body.country from its own host and works on alza-category just as the bare numeric id does, and a product page URL works the same way on alza-product-detail or alza-product-reviews. This means a URL copied straight from a browser, Alza's own navigation or a shared link can be sent as it is, without first pulling the numeric id out of it by hand; alza-search's body.query instead always takes the keyword text itself, never a URL.
[
{
"body": {
"country": "cz",
"query": "iphone"
}
},
{
"body": {
"country": "cz",
"product_id": "13078788"
}
}
]{
"body": {
"product_id": "13078788",
"limit": 20,
"offset": 0
}
}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/alza/alza-category' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"category":"https://www.alza.cz/iphone/18851638.htm"}}'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.
Alza API overview and prices · Read the API reference · Try it in the playground