itemIdstring필수
The unique ID of the item on Douyin E-commerce.
https://api.sandbase.ai/v1/api/douyin/ec/item-detailGet a Douyin shop product by item ID: title, price, sales, images, specs and shop information.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
Returns the details of one Douyin shop product: title, images, sales count, review rating, service guarantees and shop information. It needs one input, the itemId of the product on Douyin E-commerce.
model.product.product_sales.total_sales over time.curl -X POST "https://api.sandbase.ai/v1/api/douyin/ec/item-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"itemId": "3734619545235751048"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
itemId | string | Yes | The unique ID of the item on Douyin E-commerce. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"item_type": 6,
"label": {
"service_module": {
"module_list": [
{
"content": {
"content_list": [
{
"content": {
"title_list": [
{
"rich_text": {
"rich_text_type": 1,
"text": {
"font_color": "",
"text": "运费险"
}
},
"suffix_type": 3
}
]
},
"content_type": "privilege",
"suffix_type": 1
}
]
},
"module_type": "privilege",
"title": {
"title_list": [
{
"rich_text": {
"rich_text_type": 1,
"text": {
"text": "保障"
}
},
"suffix_type": 1
}
]
}
}
]
}
},
"model": {
"author_data": {
"code": -1
},
"comment_data": {
"code": -1
},
"content_data": {
"code": -1
},
"hot_content_data": {
"code": -1
},
"material_data": {
"code": -1
},
"product": {
"product_base": {
"big_imgs": [
"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_7a451b88b93bf8db3dfc0…"
],
"cover": "https://p9-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_e0dd74cc60c22ee927610…",
"images": [
"https://p9-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_e0dd74cc60c22ee927610…"
],
"is_global_shoping": false,
"is_sui_xin_tui": true,
"title": "【美白+补水+隔离+防晒乳】四效合一SPF50+PA++++防水(试用七天)",
"white_background": "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_91ba9f58b4d1fa2aab283…"
},
"product_comment": {
"comment_label": {
"good_ratio": "94.9%"
},
"good_ratio": 94.94181904535739
},
"product_privilege": {
"privilege_info_label": {
"privilege_id": 2,
"privilege_info_detail": [
{
"content": "商家已为您投保,退货成功后保险公司赔付一定金额运费至钱包(保单生效以下单为准)",
"icon": {
"url_list": [
"https://lf3-cm.ecombdstatic.com/obj/eden-cn/nupfupebo/services/FreightInsurance.…"
]
},
"tag_id": "insurance_freight",
"title": "运费险"
}
]
}
},
"product_sales": {
"product_label": {
"sales_num": 63976,
"sales_text": "已售"
},
"sell_num": 63976,
"total_sales": 63976
}
},
"promotion_data": {
"code": -1
},
"shop": {
"shop_base": {
"platform_source": 4,
"shop_logo": "https://p6-ecom-qualification-sign.ecombdimg.com/tos-cn-i-6vegkygxbk/69e0ce1b2d9…",
"shop_name": "原铭护肤专营店"
},
"shop_id": "42853938"
},
"shop_product_data": {
"code": -1
}
},
"product_id": "3734619545235751048",
"promotion_id": "3734619545235751048"
}
| Field | Meaning |
|---|---|
model.product.product_base.title | Product title as shown in the shop listing. |
model.product.product_base.cover / model.product.product_base.white_background | Image URLs for the main cover and the white-background product picture. |
model.product.product_base.images[] / model.product.product_base.big_imgs[] | Image URL lists. images holds the gallery pictures. big_imgs holds taller images. |
model.product.product_base.is_sui_xin_tui | Boolean flag. true when the product carries the 小店随心推 (Xiaodian Suixintui) tag, which also appears in label.service_module. |
model.product.product_sales.total_sales / model.product.product_sales.sell_num | Number of units sold. Both hold the same value in this response. |
model.product.product_comment.good_ratio | Share of positive reviews as a number. comment_label.good_ratio gives the same value as a text string with a percent sign. |
model.product.product_privilege.privilege_info_label.privilege_info_detail[].title / content | Name and description of each buyer guarantee, such as freight insurance, quick refund and 7-day no-reason returns. |
model.shop.shop_id | ID of the shop that sells the product, as a string. |
model.shop.shop_base.shop_name / shop_logo | Name of the shop and the URL of its logo. |
product_id | ID of the requested product, matching the itemId you sent. |
itemId. Do not convert it to a number, because the value is long.model, such as comment_data, content_data and promotion_data, return only code set to -1 and carry no data for this item.model.shop.shop_id with Douyin Shop Items.$0.025714 per successful call. Failed calls are not charged.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/ec/item-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"itemId": "3734619545235751048"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
itemIdstring필수The unique ID of the item on Douyin E-commerce.
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Douyin | $0.025714 / 호출 | JSON |
Douyin | $0.025714 / 호출 | JSON |
Douyin | $0.035714 / 호출 | JSON |
Douyin | $0.035714 / 호출 | JSON |
Douyin | $0.028571 / 호출 | JSON |
Douyin | $0.001 / 호출 | JSON |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/douyin/ec/item-detail에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.025714, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: itemId (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Douyin Shop Item Details은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Douyin API 액세스를 별도로 신청할 필요는 없습니다.