Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

JD.com Product Search

เอกสาร API
https://api.sandbase.ai/v1/api/jd/search/items

Search JD.com products by keyword with item IDs, titles, images, categories and shop names, with page-based pagination.

ราคา
$0.021429USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 1 ไม่บังคับ

Playground

อินพุต
Search keyword.
Page number for pagination.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

JD.com Product Search API

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.

Use cases

  • Build a list of competing phone case listings for a keyword and track which item IDs appear.
  • Collect item IDs from search results, then fetch full details for each one.
  • Compare the review tags and positive-rate scores of products in one category.
  • Check how many results JD.com shows for a keyword by reading the total count and page count.

Request

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.

Parameters

NameTypeRequiredDescription
keywordstringYesSearch keyword.
pagestringNoPage number for pagination.

Example response

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
}

Response fields

FieldMeaning
products[].idItem ID of the product. Use it to look up the product in other JD.com APIs.
products[].imageUrlImage path of the product, such as jfs/t1/.../xxx.jpg. The response gives a relative path, not a full URL.
products[].bIdID of the brand or seller entry tied to the product, as a string.
products[].cid1 / cid2 / cid3Category IDs at three levels, from broad to narrow.
products[].ccCount label shown on the listing, such as 10万+ or 5000+.
products[].gcpScore from 0 to 100 shown with the product. The key name and values suggest a positive-review percentage.
products[].gcwList of short review tags for the product, such as 手感一流.
products[].gctReview tags joined into one text line, starting with 推荐理由:.
products[].foiInstallment label, such as 6期免息. It is an empty string when there is none.
totalCount / totalPagesTotal number of matching products and the number of result pages.

Notes

  • keyword is required. page is a string holding the page number, and currentPage in the response shows which page you got.
  • Many fields in each product, such as coupons, discounts and gifts, can be empty lists or empty strings.
  • In the sample response pageSize is 0, so count the items in products to get the real page size.
  • To get titles, shop details and prices for an item ID, call JD.com Product Details. For reviews, call JD.com Product Comments.

Pricing

$0.021429 per successful call. Failed calls are not charged.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
JD.com$0.021429 ต่อการเรียกJSON
JD.com$0.028571 ต่อการเรียกJSON
JD.com$0.021429 ต่อการเรียกJSON
JD.com$0.028571 ต่อการเรียกJSON
JD.com$0.021429 ต่อการเรียกJSON
JD.com$0.028571 ต่อการเรียกJSON

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ JD.com Product Search API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/jd/search/items โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

JD.com Product Search API ราคาเท่าไร?

$0.021429 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

JD.com Product Search API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: keyword (string). ตัวเลือก: page (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

JD.com Product Search API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ JD.com ไหม?

ไม่จำเป็น JD.com Product Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง JD.com API แยกต่างหาก