shopIdstring必填
A unique shop identifier on JD.com (Shop ID).
https://api.sandbase.ai/v1/api/jd/shop/itemsList products from a JD.com shop by shop ID, page by page, to collect item IDs for follow-up lookups.
您的輸出會顯示在這裡
完成輸入後,點擊執行。
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.
totalResults.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.
| Name | Type | Required | Description |
|---|---|---|---|
shopId | string | Yes | A unique shop identifier on JD.com (Shop ID). |
page | string | No | Page number for the paginated shop product list. |
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"
}
| Field | Meaning |
|---|---|
ItemList[].itemId | JD.com item ID of the product. Use it as input for follow-up item lookups. |
ItemList[].link | Direct URL of the product page on item.jd.com. |
ItemList[].title | Product title as listed in the shop. The text is in Chinese. |
TotalPage | Total number of pages available for this shop's product list. |
totalResults | Total number of products in the shop's list. |
shopId / venderId | Identifiers of the shop. Both have the same value in this response. |
shopName | Display name of the shop. |
page as a string to read later pages. Use TotalPage to know where to stop.100431386728. Pass them to JD.com Product Details for full product data.$0.028571 per successful call. Failed calls are not charged.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
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"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
shopIdstring必填A unique shop identifier on JD.com (Shop ID).
pagestringPage number for the paginated shop product list.
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| API | 價格 | 回應 |
|---|---|---|
JD.com Shop Products此 API JD.com | 每次呼叫 $0.028571 | JSON |
JD.com | 每次呼叫 $0.028571 | JSON |
JD.com | 每次呼叫 $0.021429 | JSON |
JD.com | 每次呼叫 $0.028571 | JSON |
JD.com | 每次呼叫 $0.021429 | JSON |
JD.com | 每次呼叫 $0.021429 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/jd/shop/items。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.028571,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:shopId (string)。 選填:page (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。JD.com Shop Products 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 JD.com API 存取權。