BestBuy API workflow from a keyword to one product
A product lookup chains three operations, and a SKU carries the result of each step into the next one.
- Call
bestbuy-searchwithbody.queryand find the row that matches the product you mean. - Read the
skuof that row and send it asbody.skutobestbuy-product-detailfor the product card. - Send the same
skutobestbuy-review-summaryfor the average rating, the star breakdown and the pros and cons that customers mention.
When the address of a product page is already known, body.url or a product link in body.sku skips the search step. The SKU itself is the 7-digit product number, and the number after /sku/ in a product link is the same value.
Read the details, price and gifts of one product
Four operations split the data of one product by depth, and the SKU is the key to all of them:
bestbuy-product-detail: the product card with price, stock, rating, variants and the category breadcrumbbestbuy-description: the marketing text, the feature list, the specification groups, the weight, the dimensions andupcbestbuy-price: thepricingobject alone, which suits price trackingbestbuy-gifts: the gift-with-purchase offers attached to the SKU
Pick the narrowest operation that answers the question, because each one returns only its own fields. bestbuy-product-detail and bestbuy-description take body.url in place of body.sku, while bestbuy-price and bestbuy-gifts take the SKU alone.
Judge a product with its reviews and questions
Reviews and questions answer different doubts, so read the summary first, then the reviews, then the questions.
- Start with
bestbuy-review-summaryforaverage_rating,total_reviewsand therating_breakdownof the star levels. - Call
bestbuy-reviewswithbody.sortset toLOWEST_RATINGto read the complaints first, then withMOST_HELPFULto read what other buyers found useful. - Raise
body.pagewhiletotal_pagesallows it, and usebody.page_sizeto choose how many reviews each page holds. - Call
bestbuy-qafor the questions customers ask, and look atis_best_answerto find the answer that was voted best.
The days_of_ownership of a review shows how long the reviewer had the product, so reviews can be grouped by how long the product was used.
Page through search and deal results
Both listing operations count pages from 1, with about 24 products on a page.
- Set
body.max_resultsto the number of rows wanted, up to 240, and leavebody.pageat 1. - To continue past that call, raise
body.page: after a 240-row call the next start is page 11. - Keep every other input unchanged between the calls, because a changed filter or sort order changes which products sit on each page.
Deals follow the same steps through bestbuy-deals. The deals list is finite, so a call can return fewer rows than requested, and a search that meets a product repeated on deep pages drops the repeat, which can shorten the answer as well.
Narrow a US search with filters and facets
Filter values come from what the store itself offers, so start by reading its facets.
- Call
bestbuy-categorieswith the keyword to see the facets, such as Brand, Price and Customer Rating, with their values and product counts. - Copy the exact brand name as Best Buy shows it, for example Apple or Samsung, into
body.brand. - Add a price window with
body.min_priceandbody.max_price, read in US dollars, and a rating floor withbody.min_rating. - Set
body.conditiontonew,open_box,refurbishedorpre_ownedto stay within one condition.
A facet found with bestbuy-categories can also go into body.category. A filter value that the search cannot use is ignored, and the rows then come back as if the filter had not been sent, so check the condition of the rows against the filter that was chosen.
Check local stock and enrich a SKU list
Two operations cover the jobs that start from SKUs.
- For stock, call
bestbuy-store-availabilitywithbody.skuandbody.zip, and addbody.store_idto ask about one store only. - Read
available, thenbutton_stateandstatus_textfor the state of the buy button, such as Add to Cart or Sold Out. - For catalogue data, send up to 15 SKUs in
body.skustobestbuy-products-batchinstead of calling the detail operation once per product. - Compare the SKUs you sent with
not_foundto see which ones Best Buy did not resolve.
body.zip takes a US ZIP code and uses 10001 when it is omitted, so a stock check for another area needs its ZIP code in the request.
Search the Canadian store
Canadian lookups use two operations, search and product detail, with body.country set to ca in both.
- Search with
bestbuy-searchand an Englishbody.query, keepingbody.max_resultsat 24 or lower andbody.pagebetween 1 and 100. - Read the
sku, thepricein Canadian dollars and thecurrencyfrom the rows, and leave out filters such asbody.brand, which are US-only. - Open one product with
bestbuy-product-detail, sending theskuasbody.sku, to readdescription,specifications,upcandweightwhen Best Buy publishes them.
A Canadian search returns rows in relevance order, so a sort that is only offered on the US store has no effect there.
BestBuy in brief
Best Buy product pages identify each item with a SKU, the stock keeping unit a retailer uses to track one distinct item for sale. Unlike a UPC or EAN barcode, a SKU is not regulated or standardized.
An open-box item is a product that has already been opened, such as a customer return, a display model or an item with damaged packaging, and it is often tested before it is resold. Best Buy also runs paid Sponsored Products placements for brands on BestBuy.com and the Best Buy app, including placements inside search results lists. A customer review is tagged incentivized when it came through a Review Accelerator or sweepstakes program, where the reviewer receives a reward.
[
{
"body": {
"query": "macbook air",
"brand": "Apple",
"sort": "price_low",
"max_results": 5
}
},
{
"body": {
"sku": "6565837",
"sort": "LOWEST_RATING",
"page_size": 20
}
}
]{
"body": {
"country": "ca",
"query": "laptop",
"max_results": 10,
"page": 1
}
}{
"body": {
"query": "ipad",
"condition": "open_box",
"min_price": 200,
"max_price": 500,
"min_rating": "4",
"sort": "price_low"
}
}{
"body": {
"skus": [
"6679152",
"6588292",
"6408356"
]
}
}{
"body": {
"sku": "6505727",
"zip": "60601"
}
}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/bestbuy/bestbuy-categories' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"laptop"}}'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.
Best Buy API overview and prices · Read the API reference · Try it in the playground