Sand AISand AI MAGI-2MAGI-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 / 호출
메서드
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.

더 살펴보기

관련 API

모든 API
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

질문

FAQ

JD.com Product Search API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/jd/search/items에 POST 요청을 보내세요. 이 페이지의 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는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

JD.com 개발자 계정이나 API 키가 필요한가요?

아니요. JD.com Product Search은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. JD.com API 액세스를 별도로 신청할 필요는 없습니다.