keywordstringrequerido
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.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento 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": "蓝牙耳机"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
keywordstringrequeridoSearch keyword.
pagestringPage number for pagination.
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
JD.com Product SearchEsta API JD.com | $0.021429 por llamada | JSON |
JD.com | $0.028571 por llamada | JSON |
JD.com | $0.021429 por llamada | JSON |
JD.com | $0.028571 por llamada | JSON |
JD.com | $0.021429 por llamada | JSON |
JD.com | $0.028571 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/jd/search/items con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.021429 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: keyword (string). Opcionales: page (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. JD.com Product Search funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de JD.com por separado.