keywordstringwajib
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.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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": "蓝牙耳机"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
keywordstringwajibSearch keyword.
pagestringPage number for pagination.
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
JD.com Product SearchAPI ini JD.com | $0.021429 per panggilan | JSON |
JD.com | $0.028571 per panggilan | JSON |
JD.com | $0.021429 per panggilan | JSON |
JD.com | $0.028571 per panggilan | JSON |
JD.com | $0.021429 per panggilan | JSON |
JD.com | $0.028571 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/jd/search/items dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.021429 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: keyword (string). Opsional: page (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. JD.com Product Search berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API JD.com secara terpisah.