itemIdstringbắt buộc
A unique product identifier on JD.com (item ID).
https://api.sandbase.ai/v1/api/jd/item/detailGet a JD.com product by item ID: title, price, promotion price, brand, shop and images.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns the JD.com product page data for one item. You send the item ID as itemId. The response keeps the platform's original structure, including promotions, purchase buttons and page settings.
curl -X POST "https://api.sandbase.ai/v1/api/jd/item/detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"itemId": "100207440191"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
itemId | string | Yes | A unique product identifier on JD.com (item ID). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"allOverImg": "",
"apiForbid": [
"/urlM"
],
"areaId": "1_72_55674_0",
"bankpromo": {
"actUrl": "https://pro.m.jd.com/mall/active/2bFsGK6W9vEd4GftT5Pow5ZtT42r/index.html?babelCh…",
"activityId": 123125,
"expire": 1798732799000,
"title": "实付满1元,收货后返满1打9折券,先到先得,点击跳转活动落地页(仅app可跳转)"
},
"bigouinfo": "",
"bizMsg": "",
"bizRetCode": "",
"bottomBar": {
"buttonMap": {
"addCart": {
"enable": true,
"link": "",
"name": "加入购物车",
"type": "addCart"
},
"buy": {
"enable": true,
"link": "111",
"name": "立即购买",
"type": "buy"
},
"cart": {
"enable": true,
"link": "",
"name": "购物车",
"type": "cart"
},
"customerService": {
"enable": true,
"link": "",
"name": "客服",
"type": "customerService"
},
"shop": {
"enable": true,
"link": "",
"name": "店铺",
"type": "shop"
}
},
"sceneName": "正常购买",
"sceneType": "normalPurchase"
},
"bottomLoginTips": {
"bgColor": "rgba(0, 0, 0, 0.7);",
"bgImg": "https://storage.360buyimg.com/jxfe/ppms/c/202312/08/9234b13a-021e-4b37-bc2f-6870…",
"icon": "https://storage.360buyimg.com/jxfe/ppms/c/202312/01/f4c32592-3dc3-4326-9b65-dfd7…",
"rightBgColor": "linear-gradient(90deg, #FF404F 0%, #FA2C19 100%);",
"rightText": "立即登录",
"rightTextColor": "#ffffff",
"texts": [
{
"color": "#ffffff",
"text": "登录后可查看"
}
]
},
"bottomNav": {
"customerServiceLink": "https://jdcs.m.jd.com/?sku=100207440191&entry=m_item",
"enable": true,
"executorCode": "normalBuy",
"left": {
"backgroundColor": "linear-gradient(135deg,#f2140c,#f2270c 70%,#f24d0c);",
"enable": true,
"eventId": 2,
"eventUrl": "",
"subText": "",
"text": "加入购物车",
"textColor": "",
"type": "left"
},
"popup": {
"content": "",
"leftButton": "",
"rightButton": "",
"title": ""
},
"right": {
"backgroundColor": "linear-gradient(135deg,#ffba0d,#ffc30d 69%,#ffcf0d);",
"enable": true,
"eventId": 3,
"eventUrl": "//trade.m.jd.com/pay?sceneval=2&scene=jd&isCanEdit=1&EncryptInfo=&from=m_inter_d…",
"subText": "",
"text": "立即购买",
"textColor": "",
"type": "right"
},
"tips": {
"amsg": "",
"amsgUrl": "",
"backgroupColor": "",
"text": "",
"textColor": ""
},
"viewId": "normalBuy",
"viewName": "正常购买"
},
"channelInfo": {
"address": false,
"bottomButtonTip": "",
"descDetailNotLinkTip": "",
"forbidConfig": {
"adKey": false,
"addressFloor": false,
"askFloor": false,
"bloodSugar": false,
"bookIntroduction": false,
"bottomButton": false,
"bottomButtonTip": "",
"businessEntry": false,
"bybtBannerLink": false,
"carSubscript": false,
"colorSwitchFloor": false,
"commentFloor": false
},
"isShortItem": false,
"shortItemType": "",
"sourceType": "m-item"
},
"channelManage": {
"enable": false
}
}
| Field | Meaning |
|---|---|
errCode / msg / bizMsg | Status of the lookup. errCode is "0" in this response, and the message fields are empty. |
bankpromo.title | Text of the bank promotion shown on the item. In this response it describes a coupon returned after the order is received. |
bankpromo.actUrl / bankpromo.activityId | Link to the promotion page and the numeric ID of the promotion. |
bankpromo.expire | End time of the bank promotion, as a 13-digit millisecond timestamp. |
bottomBar.buttonMap.addCart.enable / bottomBar.buttonMap.buy.enable | Whether the add-to-cart and buy buttons are enabled for this item. |
bottomBar.sceneType | Purchase scene of the item. The value normalPurchase means a normal purchase, and sceneName gives the display name. |
commonInfo.brandUrl | Link to the brand page for this item. |
commonInfo.wqAddrDefault | Default delivery address used for the lookup. It is a pipe-separated string with the area ID, region names, street address and coordinates. |
bottomNav.customerServiceLink | Customer service link for the item. The sku query value is the item ID. |
newBanner.fData.bannerName / newBanner.fData.countDown.startTime / newBanner.fData.countDown.endTime | Name of the promotion banner and the start and end times of its countdown, as millisecond timestamps. |
itemId from JD.com Product Search or JD.com Shop Products. The example ID is 100207440191.floorForbids, floorSwitch and channelInfo. Skip them if you only need product and promotion data.$0.028571 per successful call. Failed calls are not charged.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/jd/item/detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"itemId": "100207440191"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
itemIdstringbắt buộcA unique product identifier on JD.com (item ID).
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
JD.com Product DetailsAPI này JD.com | $0.028571 mỗi lần gọi | JSON |
JD.com | $0.028571 mỗi lần gọi | JSON |
JD.com | $0.021429 mỗi lần gọi | JSON |
JD.com | $0.021429 mỗi lần gọi | JSON |
JD.com | $0.021429 mỗi lần gọi | JSON |
JD.com | $0.028571 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/jd/item/detail với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.028571 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: itemId (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. JD.com Product Details chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của JD.com.