Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

JD.com Product Details

API 文件
https://api.sandbase.ai/v1/api/jd/item/detail

Get a JD.com product by item ID: title, price, promotion price, brand, shop and images.

價格
$0.028571美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 0 個選填

Playground

輸入
A unique product identifier on JD.com (item ID).
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

JD.com Product Details API

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.

Use cases

  • Check whether the buy and add-to-cart buttons are enabled for an item.
  • Collect bank and coupon promotion titles, links and end times for an item.
  • Find the brand page link and customer service link for a product.
  • Record the start and end times of a promotion banner with a countdown.

Request

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.

Parameters

NameTypeRequiredDescription
itemIdstringYesA unique product identifier on JD.com (item ID).

Example response

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
  }
}

Response fields

FieldMeaning
errCode / msg / bizMsgStatus of the lookup. errCode is "0" in this response, and the message fields are empty.
bankpromo.titleText of the bank promotion shown on the item. In this response it describes a coupon returned after the order is received.
bankpromo.actUrl / bankpromo.activityIdLink to the promotion page and the numeric ID of the promotion.
bankpromo.expireEnd time of the bank promotion, as a 13-digit millisecond timestamp.
bottomBar.buttonMap.addCart.enable / bottomBar.buttonMap.buy.enableWhether the add-to-cart and buy buttons are enabled for this item.
bottomBar.sceneTypePurchase scene of the item. The value normalPurchase means a normal purchase, and sceneName gives the display name.
commonInfo.brandUrlLink to the brand page for this item.
commonInfo.wqAddrDefaultDefault delivery address used for the lookup. It is a pipe-separated string with the area ID, region names, street address and coordinates.
bottomNav.customerServiceLinkCustomer service link for the item. The sku query value is the item ID.
newBanner.fData.bannerName / newBanner.fData.countDown.startTime / newBanner.fData.countDown.endTimeName of the promotion banner and the start and end times of its countdown, as millisecond timestamps.

Notes

Pricing

$0.028571 per successful call. Failed calls are not charged.

探索更多

相關 APIs

所有 APIs
API價格回應
JD.com每次呼叫 $0.028571JSON
JD.com每次呼叫 $0.028571JSON
JD.com每次呼叫 $0.021429JSON
JD.com每次呼叫 $0.021429JSON
JD.com每次呼叫 $0.021429JSON
JD.com每次呼叫 $0.028571JSON

問題

常見問題

我要如何使用 JD.com Product Details API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/jd/item/detail。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

JD.com Product Details API 的費用是多少?

每次 $0.028571,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

JD.com Product Details API 接受哪些參數?

必要:itemId (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

JD.com Product Details API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 JD.com 開發者帳號或 API 金鑰嗎?

不需要。JD.com Product Details 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 JD.com API 存取權。