商品关键词搜索 API

POST /v1/products/search — 关键词搜索,返回分页商品列表。

  • 淘宝 → 上游 /traffic/item/search
  • 1688 → 上游 product.search.keywordQuery

相关:商品详情 · 商品响应模型 · 响应格式

某渠道不支持的字段会静默忽略(无额外响应头)。

公共请求字段

字段必填说明
channel1688 | taobao
keyword搜索词
language默认 en
page / page_size分页(淘宝每页最多 20
response_formatstandard(默认)或 upstream
sort_fieldprice | sales | creditcredit 仅 1688;淘宝忽略)
sort_orderasc | desc(默认 asc;需配合 sort_field
price_start / price_end价格区间,单位 (支持小数,如 19.9
ship_within_hours0(当日)| 24 | 48
category_ids类目 ID,逗号分隔。仅 1688;淘宝忽略
product_collection_id商机货盘 ID。仅 1688;淘宝忽略

排序 sort_field + sort_order

sort_fieldsort_order→ 1688→ 淘宝
priceasc / desc{"bid":"asc|desc"}PRICE_ASC / PRICE_DESC
salesasc / desc{"sale":"asc|desc"}SALE_QTY_ASC / SALE_QTY_DESC
creditasc / desc{"credit":"asc|desc"}忽略

兼容别名:bidpricesalesales

价格

  • 对外一律 (可小数)。
  • 1688 → priceStart / priceEnd
  • 淘宝 → filtersmin_price / max_priceMath.round(元 * 100))。

发货时效 ship_within_hours

→ 1688 filter→ 淘宝 filters
0shipInToday忽略
24shipIn24Hours24shipping
48shipIn48Hours48shipping

1688 语义筛选(淘宝忽略)

字段类型说明
experience_score_levelinteger14totalEpScoreLv1Lv4
product_attrsstring逗号分隔:isOnePsaleisOnePsaleFreePostnew7new301688SelectionisQqyx
filterstring高级逗号分隔标签,与上表语义字段 合并去重
sale_filtersobject[]映射 saleFilterListsale_typesales7 | sales14 | sales30 | totalSales,可选 sale_start / sale_end
keyword_translateboolean关键词是否已翻译

兼容(deprecated):category_idcategory_id_list(请用 category_ids)。

请求示例

1688

POST /v1/products/search
{
  "channel": "1688",
  "keyword": "phone case",
  "language": "en",
  "page": 1,
  "page_size": 20,
  "sort_field": "sales",
  "sort_order": "desc",
  "price_start": 10.5,
  "price_end": 99.9,
  "ship_within_hours": 24,
  "experience_score_level": 2,
  "product_attrs": "isOnePsale,1688Selection",
  "filter": "noReason7DReturn",
  "category_ids": "123,456",
  "product_collection_id": "262105288"
}

淘宝

POST /v1/products/search
{
  "channel": "taobao",
  "keyword": "帽子",
  "language": "en",
  "page": 1,
  "page_size": 20,
  "sort_field": "price",
  "sort_order": "asc",
  "price_start": 20,
  "price_end": 100,
  "ship_within_hours": 24
}

响应

StandardProductListitems[] 中为摘要卡片。完整 SKU 矩阵与库存请调用 商品详情

response_format: "upstream" 时返回渠道原厂载荷(见 响应格式)。