keywordstringobrigatório
Search keyword.
https://api.sandbase.ai/v1/api/jd/search/itemsSearch JD.com products by keyword with item IDs, titles, images, categories and shop names, with page-based pagination.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
Returns a page of JD.com products that match a search keyword. Each product has an item ID, an image path, category IDs, a sales count label and review tags. Send a keyword and an optional page number.
curl -X POST "https://api.sandbase.ai/v1/api/jd/search/items" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "手机壳"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search keyword. |
page | string | No | Page number for pagination. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"currentPage": 1,
"pageSize": 0,
"products": [
{
"adSkuType": 1,
"adType": 3,
"asgAttribute": "",
"asgHighlight": "",
"asgRecReason": "",
"asgStructuredAttribute": "",
"bId": "13056",
"bybtTraffic": 0,
"cc": "10万+",
"cid1": "9987",
"cid2": "830",
"cid3": "866"
}
],
"totalCount": 7607,
"totalPages": 159
}
| Field | Meaning |
|---|---|
products[].id | Item ID of the product. Use it to look up the product in other JD.com APIs. |
products[].imageUrl | Image path of the product, such as jfs/t1/.../xxx.jpg. The response gives a relative path, not a full URL. |
products[].bId | ID of the brand or seller entry tied to the product, as a string. |
products[].cid1 / cid2 / cid3 | Category IDs at three levels, from broad to narrow. |
products[].cc | Count label shown on the listing, such as 10万+ or 5000+. |
products[].gcp | Score from 0 to 100 shown with the product. The key name and values suggest a positive-review percentage. |
products[].gcw | List of short review tags for the product, such as 手感一流. |
products[].gct | Review tags joined into one text line, starting with 推荐理由:. |
products[].foi | Installment label, such as 6期免息. It is an empty string when there is none. |
totalCount / totalPages | Total number of matching products and the number of result pages. |
keyword is required. page is a string holding the page number, and currentPage in the response shows which page you got.coupons, discounts and gifts, can be empty lists or empty strings.pageSize is 0, so count the items in products to get the real page size.$0.021429 per successful call. Failed calls are not charged.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
curl -X POST "https://api.sandbase.ai/v1/api/jd/search/items" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "蓝牙耳机"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
keywordstringobrigatórioSearch keyword.
pagestringPage number for pagination.
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
JD.com Product SearchEsta API JD.com | $0.021429 por chamada | JSON |
JD.com | $0.028571 por chamada | JSON |
JD.com | $0.021429 por chamada | JSON |
JD.com | $0.028571 por chamada | JSON |
JD.com | $0.021429 por chamada | JSON |
JD.com | $0.028571 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/jd/search/items com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
$0.021429 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: keyword (string). Opcionais: page (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. JD.com Product Search funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do JD.com separadamente.