keywordstringआवश्यक
Search keyword.
https://api.sandbase.ai/v1/api/taobao/search/itemsSearch Taobao and Tmall products by keyword with titles, prices, images, sales and shop info. Sort by sales or price, filter to Tmall only and by price range.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns a page of Taobao and Tmall product listings that match a keyword. Each item has a title, price, image URLs, a sales band, seller location and shop details. The only required input is keyword.
curl -X POST "https://api.sandbase.ai/v1/api/taobao/search/items" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "手机壳"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search keyword. |
endPrice | string | No | Maximum price filter (inclusive). |
page | integer | No | Page number for pagination. |
sort | string | No | Sort order for the result set. |
startPrice | string | No | Minimum price filter (inclusive). |
tmall | boolean | No | Whether to filter results to Tmall only. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": "SUCCESS",
"extraMap": {
"MtopCostMillis": 91
},
"model": {
"brandList": [
{
"brandId": 20796,
"brandName": "\u0003欧世铭\u0003欧康胜\u0003欧易金\u0002欧潭\u0003欧皇雅\u0003欧雅琪\u0002歌姿\u0003歌朵琪\u0004步止有礼\u0002氏分\u0002汇将\u0002沁缘\u0005泮水洗青竹\u0003活水泉\u0002浩岩\u0006浩鲸智在记录\u0002浪联\u0003海易鸿\u0002涎墨\u0003润源希\u0002润…",
"count": 0
}
],
"costMillis": 91,
"extraMap": {
"Endpoint": "taobao_item",
"EndpointHost": "33.78.87.32",
"WorldsearchIP": "33.44.173.30",
"WorldsearchName": "worldsearch033044173030.center.na620",
"afterSearchCostMillis": 0,
"sp_status": "OK"
},
"itemList": [
{
"cityEn": "",
"commentCount": "",
"discntPriceYuan": 136.0,
"discntRate": 10000,
"discntType": "特价秒杀",
"extraMap": {},
"fahuoDsr": "490",
"frontStock": 3587930,
"fuwuDsr": "488",
"hasTongkuan": false,
"hasXiangsi": false,
"itemGradeAvg": 0.0
}
],
"page": {
"nextNo": 2,
"pageNo": 1,
"pageSize": 10,
"prevNo": 1,
"showBegin": 1,
"showEnd": 3,
"totalItems": 48989,
"totalPages": 4899
},
"propertyList": [
{
"flag": "qp_commend",
"pid": 28102,
"pname": "适用品牌",
"valueList": [
{
"count": 6233,
"flag": "qp_commend",
"vid": 30111,
"vname": "Apple/苹果"
}
]
}
],
"responseStatus": 0,
"success": true,
"traceList": []
}
}
| Field | Meaning |
|---|---|
model.itemList[].itemId | Product ID. Use it to look up one product in other Taobao APIs. |
model.itemList[].itemName / itemSubName | Listing title and the shorter selling-point line under it. The sub name can be empty. |
model.itemList[].priceYuanDouble / priceFen | List price in yuan, and the same price in fen (13600 fen is 136.0 yuan). |
model.itemList[].discntPriceYuan / discntType | Discounted price in yuan and the label of the offer, such as 优惠价 or 特价秒杀. |
model.itemList[].orderPayUV | Sales band shown as text, for example 1万+. It is a rounded label, not an exact count. |
model.itemList[].picUrlFull / picUrlList | Full URL of the main image, and a list of extra image paths for the product. |
model.itemList[].shopId / shopName / sellerLevel | Shop ID, shop name and the seller level number. |
model.itemList[].itemLoc / sellerLoc | Province and city for the item and for the seller. Either can be an empty string. |
model.page.pageNo / pageSize / totalItems / totalPages | Current page number, items per page, total matching items and total page count. |
model.propertyList[].pname / valueList[].vname / count | Filter facets such as brand or material, with the number of matching items for each value. |
page parameter. model.page.nextNo gives the next page number.sort accepts _sale, _bid, bid and _coefp. The default is _sale.startPrice and endPrice are strings and both limits are inclusive.itemId to Taobao Product Details for one product, or shopId to Taobao Shop Product List for a full shop.$0.028571 per successful call. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/taobao/search/items" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"sort": "_sale",
"tmall": false,
"keyword": "蓝牙耳机"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
keywordstringआवश्यकSearch keyword.
sortstringSort order for the result set.
डिफ़ॉल्ट: "_sale"
संभावित मान: _sale, _bid, bid, _coefp
tmallbooleanWhether to filter results to Tmall only.
डिफ़ॉल्ट: false
startPricestringMinimum price filter (inclusive).
endPricestringMaximum price filter (inclusive).
pageintegerPage number for pagination.
डिफ़ॉल्ट: 1
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Taobao Product Searchयह API Taobao | $0.028571 प्रति कॉल | JSON |
Taobao | $0.021429 प्रति कॉल | JSON |
Taobao | $0.021429 प्रति कॉल | JSON |
Taobao | $0.021429 प्रति कॉल | JSON |
Taobao | $0.028571 प्रति कॉल | JSON |
Taobao | $0.028571 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/taobao/search/items पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.028571 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: keyword (string)। वैकल्पिक: sort (_sale, _bid, bid, _coefp में से एक), tmall (boolean), startPrice (string), endPrice (string) और page (integer)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Taobao Product Search SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Taobao API access के लिए आवेदन करने की आवश्यकता नहीं है।