userIdstring必填
Shop identifier. Also known as Seller ID or User ID (they refer to the same value).
https://api.sandbase.ai/v1/api/taobao/shop-item-listGet products from a Taobao or Tmall shop using both seller or user ID and shop ID, with page-based pagination and sorting by sales, new arrivals, credit, or price. Use it to browse a known shop catalog.
您的輸出會顯示在這裡
完成輸入後,點擊執行。
Returns one page of products from a Taobao or Tmall shop, plus shop details such as the shop name and service scores. It needs the seller ID (userId) and the shop ID (shopId). You can sort by sales, new arrivals, credit, or price.
sort set to new-des.curl -X POST "https://api.sandbase.ai/v1/api/taobao/shop-item-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"userId": "1659916565", "shopId": "103710607"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
shopId | string | Yes | Unique shop identifier on Taobao/Tmall (shop ID). |
userId | string | Yes | Shop identifier. Also known as Seller ID or User ID (they refer to the same value). |
page | integer | No | Page number for pagination. |
sort | string | No | Sort order for the result set. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"httpData": {
"breadcrumbModuleResponse": {
"breadcrumbList": [
{
"href": "https://taobao.com/",
"name": "首页"
}
],
"success": true
},
"itemListModuleResponse": {
"itemList": [
{
"areaLimit": false,
"backCatId": 50012587,
"backCatIdL1": 50008090,
"commentCount": "8万+",
"commentTagList": [],
"currencySymbol": "฿",
"discntPriceYuan": 52.94,
"discntType": "品牌巨惠"
}
],
"page": {
"hideTotalCount": "100",
"nextNo": 2,
"pageNo": 1,
"pageSize": 60,
"prevNo": 1,
"showBegin": 1,
"showEnd": 3,
"totalCount": 262
},
"pageUrlFollow": false,
"success": true
},
"metaModuleResponse": {
"description": "欢迎光临-图拉斯旗舰店,淘宝网Taobao为你提供最新商品图片、价格、品牌、评价、折扣等信息,有问题可直接咨询商家!淘宝Taobao/天猫Tmall数亿热销好货…",
"keyword": "图拉斯旗舰店",
"linkList": [
{
"href": "https://taobao.com103710607.htm",
"rel": "canonical"
}
],
"robots": "index,follow",
"success": true,
"title": "图拉斯旗舰店 - 淘宝网|Taobao - 天猫|Tmall"
},
"pageABTestModuleResponse": {
"abTag": 0,
"aeAsoTag": 0,
"featureGrayResultMap": {
"AUTO_LOGIN_GUIDE": {
"bucketId": 0,
"extProperties": {},
"hit": true
},
"LOGIN_GUIDE": {
"bucketId": 0,
"extProperties": {},
"hit": true
}
},
"success": true
},
"pageSimplifiedModuleResponse": {
"simplified": false,
"simplifiedType": "NO_SIMPLIFIED",
"success": false,
"userId": "2223250982130"
},
"seoCommonBannerResponse": {
"color": "#FC385B",
"pcBanner": "https://img.alicdn.com/imgextra/i1/O1CN01v7EvqI29IfUrgeUNc_!!6000000008045-1-tps…",
"success": true,
"targetURl": "https://huodong.taobao.com/wow/a/act/tao/dailygroup/23509/24308/wupr?spm=a2141.2…"
},
"shopListModuleResponse": {
"shopList": [
{
"deliverScore": "4.9",
"descriptionMatchScore": "4.8",
"picUrl": "//img.alicdn.com/imgextra/i2/1659916565/O1CN01CtYGJ01yMpFkZsjho_!!1659916565.jpg",
"sellerId": 1659916565,
"serviceScore": "4.8",
"shopId": 103710607,
"shopName": "图拉斯旗舰店"
}
],
"success": true
},
"statusCode": 0,
"success": true
},
"pageData": {
"client": "pc",
"currentPath": "https://taobao.com",
"currentUrl": "https://taobao.com103710607.htm",
"detailUrl": "https://taobao.com/item/",
"env": "production",
"host": "pagehandler-handler.tmg-wormhole-n",
"isBase64On": true,
"keyword": "图拉斯旗舰店",
"locale": "zh-tw",
"loginGuideHit": true,
"pageConfig": {
"pageVersion": ""
},
"pageUrlFollow": false
}
}
| Field | Meaning |
|---|---|
httpData.itemListModuleResponse.itemList[] | The products on the current page. Each entry holds the price, discount type, category IDs and review count of one product. |
httpData.itemListModuleResponse.itemList[].discntPriceYuan | The discounted price of the product. Read it together with currencySymbol, which can show a symbol such as ฿. |
httpData.itemListModuleResponse.itemList[].discntType | The discount label for the product, for example 特价秒杀 or 品牌巨惠. |
httpData.itemListModuleResponse.itemList[].commentCount | The review count as text. Large values are shortened, for example 8万+. |
httpData.itemListModuleResponse.itemList[].backCatId / backCatIdL1 | The product's category ID and its top-level category ID. |
httpData.itemListModuleResponse.page.totalCount | The total number of products in the shop. |
httpData.itemListModuleResponse.page.pageNo / pageSize / nextNo / prevNo | The current page number, the page size, and the numbers of the next and previous pages. |
httpData.shopListModuleResponse.shopList[].shopName | The shop's display name. |
httpData.shopListModuleResponse.shopList[].sellerId / shopId | The numeric seller ID and shop ID of the shop. |
httpData.shopListModuleResponse.shopList[].deliverScore / descriptionMatchScore / serviceScore | The shop's delivery, description match and service scores, returned as text. |
page with the value of nextNo to get the next page. Compare totalCount with pageSize to see how many pages exist.sort accepts sales-des (default), new-des, credit-des, price-asc and price-des.itemList in this sample does not include a product ID or title. Use Taobao Product Search to find a product, then Taobao Product Details for more on it.httpData blocks other than itemListModuleResponse and shopListModuleResponse hold page metadata, such as breadcrumbs, banners and A/B test flags.$0.028571 per successful call. Failed calls are not charged.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/taobao/shop-item-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"sort": "sales-des",
"shopId": "103710607",
"userId": "1659916565"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
userIdstring必填Shop identifier. Also known as Seller ID or User ID (they refer to the same value).
shopIdstring必填Unique shop identifier on Taobao/Tmall (shop ID).
sortstringSort order for the result set.
預設:"sales-des"
可能值:sales-des, new-des, credit-des, price-asc, price-des
pageintegerPage number for pagination.
預設:1
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| 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 |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/taobao/shop-item-list。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.028571,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:userId (string) 和 shopId (string)。 選填:sort(sales-des, new-des, credit-des, price-asc, price-des 之一) 和 page (integer)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Taobao Shop Product List 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Taobao API 存取權。