POST
/api/open/weidian/items/search商品搜索
按关键词搜索微店商品。
商品 API 已开通
商品搜索、详情、图搜和店铺商品按已开通产品直接调用。
keywordsstring是搜索关键词
dress
pagenumber否页码
1
price_startnumber否最低价
10
price_endnumber否最高价
100
请求示例
curl -X POST "https://api.your-domain.com/api/open/weidian/items/search" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_APP_KEY" \
-H "Authorization: Bearer YOUR_APP_SECRET" \
-d '{ "keywords": "dress", "page": 1 }'返回示例
{
"success": true,
"code": 0,
"message": "success",
"data": { "items": [], "source": "weidian" },
"billing": {
"charged": 0.027,
"unitPrice": 0.027,
"multiplier": 1,
"product": "接口产品名称",
"callId": 1024
}
}