Using the Argos API from a keyword to full product detail
A search box can carry a shopper from a typed keyword to a product's full record in two calls:
- Send the keyword as
body.querytoargos-search, withbody.page_sizeset to the row count wanted per page. - Take the
product_idof the row that interests you fromresults. - Send that
product_idtoargos-product-detailfor the full price, multi-buy offers, Nectar points, variants and delivery detail.
body.product_id on argos-product-detail also accepts the row's own url, so a shopper who copies a link straight from argos.co.uk does not need the numeric id at all. q, keyword and searchTerm are accepted in place of body.query on the first call, so a form field already named one of those can be sent unchanged rather than renamed first.
Browsing a category instead of searching
Browsing by category rather than keyword follows almost the same shape as search:
- Take a
category_idfrom a product's ownbreadcrumbentry onargos-product-detail, or from the digits afterc:in anargos.co.uk/browse/URL. - Send it as
body.category_idtoargos-category, choosingbody.sortandbody.min_ratingthe way a shopper would narrow a shelf. - Keep raising
body.pagewhilehas_morestays true to work through further pages of the same category.
argos-category's own category_id input also accepts a full browse url in place of the bare number, so a link copied from argos.co.uk works without extracting the digits first.
Watching deals for a keyword or category over time
A keyword's or category's deals can be watched across repeated calls rather than read only once:
- Send a keyword as
body.query, or a category asbody.category_id, toargos-deals; both are optional, so a call with neither still returns the current offer list. - Store each row's
product_idtogether with itsdiscount_percentandwas_price. - Repeat the same call later and compare
discount_percentperproduct_idto see which rows deepened their discount, rather than only which rows are discounted right now.
argos-deals answers the exact same row shape argos-category and argos-search return, so a price tracker and a catalogue browser built on this API can share one row parser. q and keyword are accepted in place of body.query here as well, and category in place of body.category_id, matching the aliases argos-search itself accepts.
Reading reviews before trusting a rating
A plain star average is worth checking against the detail behind it:
- Call
argos-product-reviewswithbody.product_idandbody.page_sizeset to 50, the largest page it accepts. - Read
rating_distributionandrecommended_percenton the response for the shape of opinion behind the plainratingaverage. - Set
body.ratingto isolate reviews at exactly one star value, from 1 to 5, when only the most critical or most positive reviews matter.
secondary_rating_averages on the same response breaks the rating down by aspect, which is worth checking separately from the plain rating average. A product with very few reviews can still return fewer rows than the requested body.page_size asks for, simply because there are not more rows to return yet.
Checking open questions before buying
A product's own question-and-answer history is worth a look before it is bought:
- Call
argos-product-questionswithbody.product_idandbody.sortset tonewest. - Read each entry's
answer_count; a question with none yet has noanswerslist worth checking. - Where
answersexist, checkbest_answer,brand_answerandstaff_answerto see which reply Argos or the brand singled out, rather than treating every answer as equally authoritative.
argos-product-questions and argos-product-reviews take the same body.product_id, so a single lookup id serves both without a separate search. body.page_size on questions defaults to 10 and goes up to 50, tighter than the review ceiling of the same name.
Comparing a product's own rating against its brand's reputation
A single product's figures and its brand's wider standing answer different questions:
- Pull
rating,rating_scaleandreview_countfor one product fromargos-product-detail. - Pull
search_index_ratingandsearch_index_review_countfor the same product fromargos-searchorargos-category. - Treat the two pairs as related rather than identical: the search index figure is drawn from the catalogue, while
argos-product-detail's ownratingandreview_countare read directly from that product's page, so the two can differ at the moment either is read.
The same gap applies to review counts: argos-product-detail names its field review_count, while a row from argos-category or argos-search names the matching figure search_index_review_count instead, so a parser built for one cannot simply reuse the other's field name. rating_scale is the one field name shared by both readings; only rating and review_count change name to search_index_rating and search_index_review_count on the row-based operations.
Argos in brief
Nectar is a UK loyalty points scheme, owned by a company under Sainsbury's, that lets shoppers earn and redeem points on purchases at Argos. As Argos shifted from its original catalogue model toward online shopping, it added click and collect, letting a shopper order online and collect the order in a store.
[
{
"body": {
"query": "kettle"
}
},
{
"body": {
"product_id": "3102039"
}
}
]{
"body": {
"product_id": "3102039",
"page_size": 50,
"rating": 5
}
}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/argos/argos-category' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"category_id":"29560"}}'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.
Argos API: category, deals, search and product data overview and prices · Read the API reference · Try it in the playground