Altex API: from the category tree to a filtered category listing
Start by calling altex-categories, optionally with body.match set to text from the category's own name, to find the row for the category you want. Take that row's own url key and send it straight on as body.category to altex-category; a page past the last one still returns, but with no rows and a past-the-end flag set rather than an error.
Narrow that same altex-category call further with:
body.price_minandbody.price_max, a price band in RONbody.brand,body.in_stock,body.min_rating,body.seller_idandbody.store_id, the same filters a search acceptsbody.sort, left out, settles on relevance, though a category listing has no search term for that to rank against, so in practice it reads the same as best_selling
Searching Altex by keyword instead of browsing a known category
Send the shopper's own words as body.query to altex-search, 3 to 50 characters; a shorter term is rejected. The same price, brand, stock, seller, store and rating filters that narrow altex-category narrow a search too, and body.sort's default genuinely ranks by relevance to that query rather than falling back the way it does on a category listing. altex-search's own count of matching products is capped at 720; past that point a capped flag marks the reply so a workflow can page through what is reachable without expecting a figure beyond it. Switch to altex-category instead once a shopper has picked one category to stay in, since its own count is never capped that way.
From a search result row to the full product record
A row from altex-search or altex-category carries just enough to decide which listing to open further: its own sku, price, crossed-out former price, rating and review count. Send that same sku on to altex-product as body.sku for the full record, which adds every seller's own offers, specifications, images, resealed offers and services that the row itself does not carry.
One offer count there counts every current offer, while a second counts just the ones besides whichever is shown as the row's own buy box. Running the search first keeps that first call lighter, since a shopper only needs the full record once they open one listing.
Checking per-store stock, then finding that store in the directory
Send a product's body.sku or body.url to altex-availability to read its per-store list: each store's own quantity, capped at 6, with city, region, address and phone alongside it. Take the store id of a store from that list, or from an altex-category or altex-search row's own list of stores holding stock, and send it on as body.store_id to either of those two to keep only the products in stock there. To look the store up on its own, call altex-stores with body.city or body.region set to narrow it, or body.network set to one of altex, media_galaxy or brico to keep just that chain; each returned store there also carries its own weekly schedule and manager.
Reading and paging one product's customer reviews
Call altex-reviews with the same body.sku or body.url used elsewhere for that product. body.rating keeps only reviews at exactly one star count, which suits a 'show me the one-star reviews' filter better than body.min_rating elsewhere, which keeps a threshold and everything above it.
Page through the rest with body.page and body.limit, up to 50 per page, and watch the reply's own more-pages flag rather than assuming a reply's own page is the last one. body.sort set to most_helpful surfaces the most-upvoted reviews first instead of the newest, the recent default; reviews come back the same way regardless of which storefront body.site names, since Altex and Media Galaxy share them.
Using an altex-category or altex-search reply's own facets to build filter choices
Both altex-category and altex-search return their own facets, with brands and categories reflecting what is actually present in that one reply's matching set rather than the catalogue as a whole. Read the brand facet to populate a brand picker with only the brands a shopper can actually narrow to from the category or keyword they already sent, instead of offering body.brand values that would just reject or empty out the result.
The same applies to the category facet on a search: it lists which categories the matching products actually fall under, letting a keyword search steer a shopper toward altex-category and a specific body.category once they have picked one. Neither facet carries a count on its own entries beyond the total figures the reply already carries for the whole result set.
[
{
"body": {
"query": "laptop",
"limit": 24,
"sort": "price_asc"
}
},
{
"body": {
"sku": "SMTIP151BL"
}
}
]{
"body": {
"category": "laptop-home",
"price_min": 2000,
"price_max": 3000,
"min_rating": 4,
"sort": "price_asc",
"limit": 24
}
}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/altex/altex-availability' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"sku":"SMTIP151BL"}}'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.
Altex API overview and prices · Read the API reference · Try it in the playground