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

JD.com Shop Products

API 文件
https://api.sandbase.ai/v1/api/jd/shop/items

List products from a JD.com shop by shop ID, page by page, to collect item IDs for follow-up lookups.

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

Playground

輸入
A unique shop identifier on JD.com (Shop ID).
Page number for the paginated shop product list.
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

JD.com Shop Products API

This API returns a page of products from a JD.com shop. Each item has an ID, a product link, and a title. You send the shop ID in shopId and can add page to move through the list.

Use cases

  • Collect every item ID in a competitor's JD.com shop for catalog tracking.
  • Build a product list for one brand's flagship store to feed later detail lookups.
  • Count how many products a shop lists by reading totalResults.
  • Match shop product titles against your own catalog to find overlapping items.

Request

curl -X POST "https://api.sandbase.ai/v1/api/jd/shop/items" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"shopId": "1000278560"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
shopIdstringYesA unique shop identifier on JD.com (Shop ID).
pagestringNoPage number for the paginated shop product list.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "ItemList": [
    {
      "itemId": "100431386728",
      "link": "https://item.jd.com/100431386728.html",
      "title": "决色iPhone DUO蒙德里安·平衡"
    }
  ],
  "TotalPage": 24,
  "shopId": "1000278560",
  "shopName": "决色(DEFENSE)京东自营旗舰店",
  "totalResults": 563,
  "venderId": "1000278560"
}

Response fields

FieldMeaning
ItemList[].itemIdJD.com item ID of the product. Use it as input for follow-up item lookups.
ItemList[].linkDirect URL of the product page on item.jd.com.
ItemList[].titleProduct title as listed in the shop. The text is in Chinese.
TotalPageTotal number of pages available for this shop's product list.
totalResultsTotal number of products in the shop's list.
shopId / venderIdIdentifiers of the shop. Both have the same value in this response.
shopNameDisplay name of the shop.

Notes

  • Pass page as a string to read later pages. Use TotalPage to know where to stop.
  • Item IDs are numeric strings such as 100431386728. Pass them to JD.com Product Details for full product data.
  • Call JD.com Product Comments with an item ID to read reviews for a product.

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.028571JSON
JD.com每次呼叫 $0.021429JSON
JD.com每次呼叫 $0.021429JSON

問題

常見問題

我要如何使用 JD.com Shop Products API?

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

JD.com Shop Products API 的費用是多少?

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

JD.com Shop Products API 接受哪些參數?

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

JD.com Shop Products API 會回傳什麼?

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

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

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