开发文档
BestBuy API 技术参考
BestBuy API 参考:站点选择、SKU 输入、搜索筛选与翻页规则,以及商品、价格、评论、问答和门店库存的返回字段含义。
另见: Best Buy 商品数据接口概览与价格 · BestBuy API 指南:搜索、价格与评论流程
本页内容
BestBuy API 的站点、SKU 与替代名称
body.country 被每个操作接受,省略它的调用读取美国站点。bestbuy-search 与 bestbuy-product-detail 在设为 ca 时也能回答加拿大站点的请求,其余操作只回答美国站点。
商品由 SKU 标识,即由 7 位数字组成的商品编号。在 bestbuy-product-detail、bestbuy-qa、bestbuy-review-summary 和 bestbuy-reviews 上,body.sku 还接受页面地址中的商品 ID(形如 JJGCQ8VCFQ)或完整的 bestbuy.com 商品链接,三者任选其一都可以。body.url 则以商品页面地址作为 SKU 的替代输入。
skuId、sku_id 和 id 被接受为 body.sku 的替代名称。在读取商品页面的这四个操作上,product_id 同样被接受,而 product_url 是 body.url 的替代名称。
本节涉及的字段(5)
body.country, body.sku, body.url, body.skus, body.skus[]
分类与筛选项的发现
bestbuy-categories 展示一个关键词在调用 bestbuy-search 之前可以如何细分。categories 的每个条目是该关键词下的一条子路径,并带有其中商品数量 count。
filters 的每个条目是一个筛选项,例如 Brand、Price、Customer Rating 或某个分类特有的属性,并列出它的 values,每个取值都有自己的 count 与 category_path。在筛选项内,field 是该筛选项自身的名称,display_name 是购物者看到的标签。
body.category 先把范围缩小到某个子分类,从而展示该子分类更深层的筛选项。它接受原始的筛选项令牌,filter 与 qp 被接受为替代名称,无法使用的取值会被忽略。
q 是 body.query 的替代名称。同一个原始筛选项令牌也可以填入 bestbuy-search 的 body.category。
本节涉及的字段(3)
bestbuy-categories, body.query, body.category
优惠商品:排序、翻页与赞助行
bestbuy-deals 在整个站点范围内列出促销与清仓商品。results 的一行带有商品的 sku、name、brand、image 和 url。
其 price、rating 与 availability 承载具体数字。在 price 内,savings 是节省的金额,savings_pct 是节省的百分比;在 rating 内,average 是星级评分,review_count 是评论数量。
要找某一分类内的优惠,应改用 bestbuy-search 并把 body.sort 设为 best_discount。body.max_results 超过 240 时会被截为 240 而不是被拒绝;由于优惠列表本身是有限的,请求返回的行数可能少于请求值。
body.page 选择起始页,每页约 24 行。body.sort、body.max_results 和 body.page 中操作无法使用的取值会被忽略,改用默认值。
body.include_sponsored 决定是否保留 Best Buy 的付费展示位,sponsored 会标出每一个。无法使用的取值会被忽略并采用默认值,该输入也接受替代名称 sponsored。
本节涉及的字段(5)
bestbuy-deals, body.sort, body.max_results, body.page, body.include_sponsored
描述、规格与重量
bestbuy-description 返回商品页面中更深入的内容。description 是营销文案,description_short 是它的精简版,features 列出商品的特性,included_items 列出随商品附带的物品。specifications 以条目形式给出技术规格,每个条目有 name、value 和 group,spec_count 统计这些条目。
运输数据有两种形式:weight 是 Best Buy 印刷出来的写法,weight_value 与 weight_unit 则是把同一重量拆成数字和单位。dimensions 给出商品尺寸,upc 给出条形码。输入是 body.sku,也可以改用 body.url 传入 bestbuy.com 商品页面地址;无法使用的 body.url 会被忽略。
本节涉及的字段(3)
bestbuy-description, body.sku, body.url
赠品活动
bestbuy-gifts 针对单个 SKU,返回附加在它上面的赠品促销。offers 的每个条目通过 offer_id 和 name 指明一项促销。
gifts 的每个条目是一个免费赠品 SKU,带有 quantity、name 以及赠送它的促销的 offer_id,所以用 offer_id 就能把赠品与其活动对应起来。活动名称形如 Apple TV Up to 1 Month GWP,答案中的 sku 就是被查询的商品。
本节涉及的字段(2)
bestbuy-gifts, body.sku
热门与趋势搜索词
bestbuy-popular-terms 与 bestbuy-trending 除了可选的 body.country 之外不需要其他输入,两者都返回 terms。前者列出 Best Buy 上长期热门的搜索词,后者列出购物者此刻正在搜索的内容,所以趋势信息流和长期关键词列表调用的是不同的操作。terms 的每个条目是一个搜索词,可以直接填入 bestbuy-search 或 bestbuy-search-suggestions 的 body.query。
本节涉及的字段(2)
bestbuy-popular-terms, bestbuy-trending
按 SKU 查询价格
bestbuy-price 在 pricing 中返回单个 SKU 的价格数据。current 与 regular 给出当前价与常规价,savings 与 savings_pct 给出节省的金额和百分比。currency 指明币种,pricing_type 带有该价格的促销或清仓标注,offers 则是适用于该 SKU 的特别优惠。
同一个对象还描述商品及其购买按钮。name、brand 和 condition 标识这条商品记录,in_stock 显示是否有货,button_state 与 button_text 给出购买按钮的状态和文字。bestbuy-product-detail 会把价格与商品卡片的其余内容一起返回。
本节涉及的字段(2)
bestbuy-price, body.sku
商品详情:美国站点商品卡片的字段
当 body.country 设为 us 或省略时,bestbuy-product-detail 返回一个 product,其字段可分为下面几组:
- 标识:
sku、name、brand、model、url、condition和manufacturer描述商品本身 - 价格:
price及其current、regular、savings、savings_pct、pricing_type,以及给出特别优惠的offers - 库存与评分:
availability及其in_stock与button_text,以及rating及其average、review_count、breakdown和verified_purchase_count - 顾客视角:带有
pros与cons的customers_say,以及含最靠前 5 条顾客评论的reviews - 图片与选项:
image、images,以及带有types和options的variants - 分类:
category_path(以根节点开头的完整分类层级)和product_type - 卖家:
seller_type、seller_id、seller,以及带有available、from_price和condition_codes的open_box - 条形码与重量:
upc、weight、weight_value和weight_unit - 详细信息:
dimensions、specifications、spec_count、description、features和included_items
reviews 的条目只是最靠前 5 条的预览,完整的评论信息流由 bestbuy-reviews 返回。Best Buy 不同时出售该商品的开箱版本时,open_box 为空值。
seller 只有在 Best Buy 自营的商品上才带有名称,所以 marketplace 商品返回 seller_type 与 seller_id,而 seller 为空值。只要印刷版 weight 存在,就会带有 weight_value 与 weight_unit,当印刷字符串无法确切解析时两者都为空值。
设为 ca 时,商品保留加拿大搜索结果行的核心卡片字段。Best Buy 公布时会增加 description、specifications、upc 和 condition。
included_items、weight 与 dimensions 这几个字段也遵循同一规则。库存情况遵循 isAvailableOnline;翻新商品的 upc 是 Best Buy 自己的标识,因此可能与厂商的 GTIN 不同。
本节涉及的字段(4)
bestbuy-product-detail, body.sku, body.url, body.country
一次查询最多 15 个 SKU
bestbuy-products-batch 是商品查询的批量形式,用于一次调用为商品目录或价格表补充数据,而不必逐个商品查询。products 的每个条目汇集了其他商品操作的查询字段:
- 标识:
sku、upc、name、brand、url和condition - 价格与库存:带有
current和regular的price、in_stock,以及带有in_stock、button_state和button_text的availability - 评分与图片:带有
average和review_count的rating,以及images - 规格:
specifications、spec_count、description、features、included_items和manufacturer - 运输:
weight、weight_value、weight_unit和dimensions
body.skus 每次调用最多 15 个 SKU,sku、sku_ids 和 ids 被接受为替代名称。Best Buy 无法解析的 SKU 不会被悄悄丢弃:它们会出现在 not_found 中,与找到的 products 并列,所以返回结果交代了请求中的每一项。
本节涉及的字段(3)
bestbuy-products-batch, body.skus, body.skus[]
商品的提问与回答
bestbuy-qa 逐页提供顾客对某个商品提出的问题。total_questions 统计该商品有多少个问题,page 与 page_size 回显翻页参数,方便客户端判断自己拿到的是哪一段。
一个问题由 question 文本和更长的 detail 组成,author 说明提问者,submitted_at 说明时间。它还带有 answer_count 与 helpful_count,is_featured 显示问题是否被设为精选,以及附带的顾客 photos。
is_best_answer 显示 answers 中的某条回答是否被票选为最佳,is_brand 显示它是否来自品牌方,from_best_buy_member 显示它是否由 Best Buy 会员撰写。
body.sort 决定问题的顺序,body.page_size 每页最多取 100 个问题。当 body.sort、body.page 或 body.page_size 的取值无法被操作使用时,由默认值代替,不会报错;pageSize 被接受为 body.page_size 的替代名称。
本节涉及的字段(4)
bestbuy-qa, body.page, body.page_size, body.sort
商品的评论概览
bestbuy-review-summary 一次调用就给出单个商品的评论快照,所以可以在翻阅任何评论之前先读取它。它返回 sku、total_reviews、average_rating 和 verified_purchase_count,以及从 5 星到 1 星每个星级各有一项的 rating_breakdown。
customers_say 收尾:它的 pros 与 cons 概括顾客提到最多的要点。手头没有 SKU 时,可以用 body.url 中的商品页面地址代替 body.sku。
本节涉及的字段(3)
bestbuy-review-summary, body.sku, body.url
评论:翻页、排序与条目字段
bestbuy-reviews 逐页读取商品的顾客评论。total_reviews、total_pages 和 page 显示当前页在所有页中的位置,rating_breakdown 重复给出星级分布。
reviews 的每个条目带有星级 rating、title 与 text。它还给出 author 和 submitted_at 时间,并列出 pros 与 cons。
每个条目还用 days_of_ownership 记录评论者拥有该商品的时长,用 helpful_count 记录它获得的有用票数。recommended 说明评论者是否推荐该商品。verified_purchaser 与 incentivized 带有评论的购买状态和激励状态,photos 则是附在评论上的顾客照片。
body.sort 选择评论的顺序,body.page_size 每页最多取 100 条评论。body.sort、body.page 或 body.page_size 中无法使用的取值会回退到默认值,pageSize 被接受为 body.page_size 的替代名称。
本节涉及的字段(4)
bestbuy-reviews, body.page, body.page_size, body.sort
BestBuy API 搜索结果行与返回字段
bestbuy-search 是对 Best Buy 商品的关键词搜索。在美国站点,results 的每个条目有下列字段:
- 标识:
sku、name、brand、model和url - 价格:
price及其current、regular、savings和savings_pct - 评分与库存:带有
average和review_count的rating,以及带有in_stock和ship_by的availability - 图片与选项:
image、images、带有types和options的variants,以及带有available、from_price和condition_codes的open_box - 卖家:
seller_type、seller_id和seller - 标注:
condition、product_type和sponsored
结果网格没有渲染的行,会用 Best Buy 的商品数据补全,涉及 name、brand、price、rating、condition、images 和卖家字段。这些行的 in_stock 保持为空值,因为 Best Buy 在那里不公布库存。
完全无法补全的行会被丢弃,而不是以空壳形式返回。卖家名称只在 Best Buy 自营的商品上返回,所以 marketplace 行带有 seller_type 与 seller_id,而 seller 为空值;只有 Best Buy 没有公布标注时,condition 才为空值。
在加拿大站点,结果行还带有 country、currency、seller_details、category_id、category_ids 和 description_short。其 price 中也包含 currency。那里的搜索使用 body.query、取 1 到 100 的 body.page 和取 1 到 24 的 body.max_results,结果行按相关度顺序排列。
本节涉及的字段(3)
bestbuy-search, body.query, body.country
搜索输入:翻页、排序与筛选
body.query 接受商品关键词、品牌或型号,q 被接受为替代名称。body.max_results 会自行跨越结果页,每页 24 个商品,最多跨 10 页,超过 240 的取值会被截为 240 而不是被拒绝。
请求 240 条时可能返回更少的行,因为 Best Buy 自己的网格会在较深的页面重复出现某些商品,重复项会被丢弃。body.page 选择起始页,第 11 页从一次 240 条结果的调用结束处开始,搜索就是这样越过 240 行的上限继续往下读。
body.sort 按相关度、畅销、折扣、价格、顾客评分或新上架顺序排列结果,默认按相关度。body.brand 期望 Best Buy 展示的准确品牌名,例如 Apple、HP、Samsung 或 Sony。
body.min_price 与 body.max_price 以美元限定价格范围,price_min 与 price_max 是它们的替代名称。body.min_rating 保留评分达到或高于所选值的商品,星级之外还接受 top_rated。
body.condition 遵循 Best Buy 自己的成色筛选,其中包括 New、Open-Box 和 Refurbished,Best Buy 列出 Pre-Owned 时也包含它;取值为空时不会按成色筛选。body.category 接受通过 bestbuy-categories 找到的原始筛选项令牌,filter 与 qp 是替代名称。
body.include_sponsored 默认保留付费展示位,并接受替代名称 sponsored。Best Buy 无法识别的 body.brand 或 body.category 取值会被忽略,无法使用的 body.include_sponsored、body.sort 或 body.page 则回退到各自的默认值。
本节涉及的字段(11)
bestbuy-search, body.max_results, body.page, body.sort, body.brand, body.min_price, body.max_price, body.min_rating, body.condition, body.category, body.include_sponsored
搜索建议与拼写纠正
bestbuy-search-suggestions 返回搜索框针对目前已输入文本会给出的词条。query 回显输入。
suggestions 的每个条目有 term 和所属的 categories(各带有 name 与 id),product_skus 列出附属于该建议的商品 SKU。corrected_query 保存纠正后的拼写,correctly_spelled 显示查询本来是否已拼写正确。
body.limit 设置返回多少条建议,取 1 到 20,无法使用的取值会被忽略并改用默认值。count 被接受为 body.limit 的替代名称,q 则是 body.query 的替代名称。
本节涉及的字段(3)
bestbuy-search-suggestions, body.query, body.limit
按邮编或门店查询库存
available 给出该邮编或门店的查询结果,button_state 与 status_text 给出购买按钮的状态,例如 Add to Cart、Sold Out 或 Pre-Order,而 sku、zip 和 store_id 回显这次查询。省略 body.store_id 就查询该邮编的总体库存,把它设为 Best Buy 门店编号则查询那一家门店。
body.zip 是美国邮编,省略或无法使用时回退到 10001。无法使用的 body.store_id 会被忽略。zip_code、postal_code 和 postalCode 被接受为 body.zip 的替代名称,storeId 则是 body.store_id 的替代名称。
本节涉及的字段(4)
bestbuy-store-availability, body.sku, body.zip, body.store_id
操作
公共网关操作统一使用 POST /api/v1/{project}/{action}。
使用 JSON 对象,按文档将参数放入 path、query、headers 和 body,省略未使用的位置。input.headers 是供操作使用的 JSON 数据,不是浏览器请求头。请勿在此填写凭证。按文档保留 body 的数组、标量或 null;省略与 null 含义不同。
分类与筛选项
POST /api/v1/bestbuy/bestbuy-categories
列出美国站点关键词搜索可用的分类与筛选项,并附带商品数量。
输入字段
| 字段 | 类型 | 是否必填 | 默认值 | 允许的值 | 范围限制 |
|---|---|---|---|---|---|
body.query | string | 必填 | — | — | — |
body.category | string | 可选 | — | — | — |
body.country | string | 可选 | "us" | "us""ca" | — |
请求示例
# 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"}}'响应字段
querycategories[]namecategory_pathcount
filters[]fielddisplay_namevalues[]valuecountcategory_path
优惠商品
POST /api/v1/bestbuy/bestbuy-deals
列出美国站点的促销与清仓商品,默认按折扣从大到小排序。
输入字段
| 字段 | 类型 | 是否必填 | 默认值 | 允许的值 | 范围限制 |
|---|---|---|---|---|---|
body.country | string | 可选 | "us" | "us""ca" | — |
body.include_sponsored | boolean | 可选 | true | — | — |
body.max_results | integer | 可选 | 24 | — | 1–240 |
body.page | integer | 可选 | 1 | — | 1–9007199254740991 |
body.sort | string | 可选 | "best_discount" | "best_discount""best_selling""price_low""price_high""rating""newest" | — |
请求示例
# 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-deals' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"country":"ca"}}'描述与规格
POST /api/v1/bestbuy/bestbuy-description
返回单个商品的营销描述、特性、规格、重量、尺寸和 UPC。
输入字段
| 字段 | 类型 | 是否必填 | 默认值 | 允许的值 | 范围限制 |
|---|---|---|---|---|---|
body.country | string | 可选 | "us" | "us""ca" | — |
body.sku | string | 可选 | — | — | — |
body.url | string | 可选 | — | — | — |
请求示例
# 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-description' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"url":"https://www.bestbuy.com/product/x/J7XSRH5CXG/sku/6505727"}}'响应字段
skudescriptiondescription_shortfeatures[]included_items[]specifications[]namevaluegroup
spec_countweightweight_valueweight_unitdimensionsupc
赠品活动
POST /api/v1/bestbuy/bestbuy-gifts
列出单个商品附带的赠品活动,以及各活动配送的免费赠品 SKU。
输入字段
| 字段 | 类型 | 是否必填 | 默认值 | 允许的值 | 范围限制 |
|---|---|---|---|---|---|
body.sku | string | 必填 | — | — | — |
body.country | string | 可选 | "us" | "us""ca" | — |
请求示例
# 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-gifts' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"sku":"6571043"}}'响应字段
skuoffers[]offer_idname
gifts[]skuquantitynameoffer_id
热门搜索词
POST /api/v1/bestbuy/bestbuy-popular-terms
返回美国站点的热门搜索词列表。
输入字段
| 字段 | 类型 | 是否必填 | 默认值 | 允许的值 | 范围限制 |
|---|---|---|---|---|---|
body.country | string | 可选 | "us" | "us""ca" | — |
请求示例
# 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-popular-terms' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"country":"ca"}}'响应字段
terms[]
价格
POST /api/v1/bestbuy/bestbuy-price
返回单个 SKU 的当前价、常规价、节省金额与特别优惠。
输入字段
| 字段 | 类型 | 是否必填 | 默认值 | 允许的值 | 范围限制 |
|---|---|---|---|---|---|
body.sku | string | 必填 | — | — | — |
body.country | string | 可选 | "us" | "us""ca" | — |
请求示例
# 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-price' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"sku":"6571043"}}'响应字段
skupricingcurrentregularsavingssavings_pctpricing_typecurrencybutton_statebutton_textin_stockconditionoffers[]namebrand
商品详情
POST /api/v1/bestbuy/bestbuy-product-detail
按 SKU 或商品页面地址返回单个商品的完整信息,支持美国与加拿大站点。
输入字段
| 字段 | 类型 | 是否必填 | 默认值 | 允许的值 | 范围限制 |
|---|---|---|---|---|---|
body.country | string | 可选 | "us" | "us""ca" | — |
body.sku | string | 可选 | — | — | — |
body.url | string | 可选 | — | — | — |
请求示例
# 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-product-detail' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"sku":"6571043"}}'批量商品查询
POST /api/v1/bestbuy/bestbuy-products-batch
一次查询最多 15 个 SKU,并返回各商品的 UPC、价格、评分、规格与重量。
输入字段
| 字段 | 类型 | 是否必填 | 默认值 | 允许的值 | 范围限制 |
|---|---|---|---|---|---|
body.skus | string[] | 必填 | — | — | — |
body.country | string | 可选 | "us" | "us""ca" | — |
请求示例
# 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-products-batch' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"skus":["6679152","6588292","6408356"]}}'商品问答
POST /api/v1/bestbuy/bestbuy-qa
返回商品的顾客提问及其回答,支持分页与排序。
输入字段
| 字段 | 类型 | 是否必填 | 默认值 | 允许的值 | 范围限制 |
|---|---|---|---|---|---|
body.country | string | 可选 | "us" | "us""ca" | — |
body.page | integer | 可选 | 1 | — | 1–9007199254740991 |
body.page_size | integer | 可选 | 10 | — | 1–100 |
body.sku | string | 可选 | — | — | — |
body.sort | string | 可选 | "MOST_RECENT" | "MOST_RECENT""MOST_HELPFUL" | — |
body.url | string | 可选 | — | — | — |
请求示例
# 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-qa' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"sku":"6565837"}}'响应字段
skutotal_questionspagepage_sizequestions[]idquestiondetailauthorsubmitted_atanswer_counthelpful_countis_featuredphotos[]answers[]idtextauthorsubmitted_athelpful_countis_best_answeris_brandfrom_best_buy_member
评论概览
POST /api/v1/bestbuy/bestbuy-review-summary
返回单个商品的平均评分、评论数量、星级分布与顾客提到的优缺点。
输入字段
| 字段 | 类型 | 是否必填 | 默认值 | 允许的值 | 范围限制 |
|---|---|---|---|---|---|
body.country | string | 可选 | "us" | "us""ca" | — |
body.sku | string | 可选 | — | — | — |
body.url | string | 可选 | — | — | — |
请求示例
# 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-review-summary' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"sku":"6565837"}}'顾客评论
POST /api/v1/bestbuy/bestbuy-reviews
分页返回商品的顾客评论,含评分、正文、优缺点与有用票数。
输入字段
| 字段 | 类型 | 是否必填 | 默认值 | 允许的值 | 范围限制 |
|---|---|---|---|---|---|
body.country | string | 可选 | "us" | "us""ca" | — |
body.page | integer | 可选 | 1 | — | 1–9007199254740991 |
body.page_size | integer | 可选 | 20 | — | 1–100 |
body.sku | string | 可选 | — | — | — |
body.sort | string | 可选 | "MOST_RECENT" | "MOST_RECENT""MOST_HELPFUL""HIGHEST_RATING""LOWEST_RATING" | — |
body.url | string | 可选 | — | — | — |
请求示例
# 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-reviews' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"sku":"6565837"}}'响应字段
skutotal_reviewstotal_pagespagerating_breakdownreviews[]ratingtitletextauthorsubmitted_atrecommendedprosconsdays_of_ownershiphelpful_countverified_purchaserincentivizedphotos[]
商品搜索
POST /api/v1/bestbuy/bestbuy-search
按关键词搜索美国或加拿大站点的 Best Buy 商品,支持排序与筛选。
输入字段
| 字段 | 类型 | 是否必填 | 默认值 | 允许的值 | 范围限制 |
|---|---|---|---|---|---|
body.query | string | 必填 | — | — | — |
body.brand | string | 可选 | — | — | — |
body.category | string | 可选 | — | — | — |
body.condition | string | 可选 | — | "new""open_box""refurbished""pre_owned" | — |
body.country | string | 可选 | "us" | "us""ca" | — |
body.include_sponsored | boolean | 可选 | true | — | — |
body.max_price | number | 可选 | — | — | ≥ 0 |
body.max_results | integer | 可选 | 24 | — | 1–240 |
body.min_price | number | 可选 | — | — | ≥ 0 |
body.min_rating | string | 可选 | — | "2""3""4""5""top_rated" | — |
body.page | integer | 可选 | 1 | — | 1–9007199254740991 |
body.sort | string | 可选 | "relevance" | "relevance""best_selling""best_discount""price_low""price_high""rating""newest" | — |
请求示例
# 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-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"country":"ca","max_results":3,"query":"laptop"}}'搜索建议
POST /api/v1/bestbuy/bestbuy-search-suggestions
返回搜索片段的自动补全建议及拼写纠正。
输入字段
| 字段 | 类型 | 是否必填 | 默认值 | 允许的值 | 范围限制 |
|---|---|---|---|---|---|
body.query | string | 必填 | — | — | — |
body.country | string | 可选 | "us" | "us""ca" | — |
body.limit | integer | 可选 | 11 | — | 1–20 |
请求示例
# 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-search-suggestions' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"laptop"}}'响应字段
querysuggestions[]termcategories[]nameid
product_skus[]
corrected_querycorrectly_spelled
门店库存
POST /api/v1/bestbuy/bestbuy-store-availability
查询某个 SKU 在指定美国邮编或某家门店是否可以购买。
输入字段
| 字段 | 类型 | 是否必填 | 默认值 | 允许的值 | 范围限制 |
|---|---|---|---|---|---|
body.sku | string | 必填 | — | — | — |
body.country | string | 可选 | "us" | "us""ca" | — |
body.store_id | string | 可选 | — | — | — |
body.zip | string | 可选 | "10001" | — | — |
请求示例
# 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-store-availability' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"sku":"6505727","zip":"10001"}}'响应字段
skuzipstore_idavailablebutton_statestatus_text
趋势搜索词
POST /api/v1/bestbuy/bestbuy-trending
返回美国站点的趋势搜索词,与长期热门搜索词相互独立。
输入字段
| 字段 | 类型 | 是否必填 | 默认值 | 允许的值 | 范围限制 |
|---|---|---|---|---|---|
body.country | string | 可选 | "us" | "us""ca" | — |
请求示例
# 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-trending' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"country":"ca"}}'响应字段
terms[]
调用方式
- 使用
POST /api/v1/bestbuy/<action>,并携带x-api-key、Content-Type: application/json和必需的Idempotency-Key。 - 调用成功时返回
ok: true:data是操作的结果,meta.requestId标识已记录的请求,meta.chargedCreditUnits是实际扣费金额。否则ok为false,error.code说明原因;请读取ok和error.code,不要只依赖 HTTP 状态码。每个网关响应都带有供支持使用的请求 ID:meta.requestId;没有meta的响应(如受理前被拒绝)则为顶层requestId。 - 只有调用成功才按标价扣费。失败不扣费;结果无法确认时,最多 900 秒后释放,不扣费。
- 请求完成后,以同一个 Idempotency-Key 重复发送相同请求,24 小时内返回已保存的响应,不会再次扣费。
网关调用参考: