shopIdstringwymagane
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.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
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.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
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"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
shopIdstringwymaganeA unique shop identifier on JD.com (Shop ID).
pagestringPage number for the paginated shop product list.
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
JD.com Shop ProductsTo API JD.com | $0.028571 za wywołanie | JSON |
JD.com | $0.028571 za wywołanie | JSON |
JD.com | $0.021429 za wywołanie | JSON |
JD.com | $0.028571 za wywołanie | JSON |
JD.com | $0.021429 za wywołanie | JSON |
JD.com | $0.021429 za wywołanie | JSON |
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/jd/shop/items z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
$0.028571 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: shopId (string). Opcjonalne: page (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Nie. JD.com Shop Products działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API JD.com.