抖音电商 商品搜索
通过关键词以分页和搜索ID分页方式搜索抖音电商商品。用于发现市场商品并继续多页搜索。
GET
/v1/douyin_ec/search_item_list_v1
$0.03
- 价格
- $0.03 / 次成功调用,失败不收费
- 接口 ID
douyin_ec.search_item_list_v1
参数
-
keywordstring 必填搜索关键词。
示例
咖啡 -
pagestring 可选用于分页的页码。
示例
1 -
search_idstring 可选搜索ID;使用上次响应返回的search_id值获取后续页面。
代码示例
curl -G "https://api.mofa-ai.com/v1/douyin_ec/search_item_list_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'keyword=咖啡' \
--data-urlencode 'page=1'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/douyin_ec/search_item_list_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"keyword": "咖啡",
"page": "1",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/douyin_ec/search_item_list_v1");
url.search = new URLSearchParams({
keyword: "咖啡",
page: "1",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
响应示例
请求参数 {"page": "1", "keyword": "咖啡"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "douyin_ec.search_item_list_v1",
"cost_usd": 0.03,
"data": {
"code": 0,
"data": {
"extra": {
"search_id": "1ece287eacd2e63289af8378fa9a4d8565454a55a684b0e87f62212d249b213e9eb6e28f896f145e0e2adbb6105c232a795c21a5a13e86233ee105cb…",
"channel_id": "200",
"session_id": "2240ef2d8a855155c5a83bb0482ffccf197cd99dd99017347d914442b8d79bf12d198f25b4e2e48dc6e53f53c63250f7d1545dc9457a1672c8e8f425…",
"recall_type": "Search",
"material_type": "promotion_id"
},
"shops": null,
"total": 500,
"log_id": "20261108075944454BC6CC8D520BB4BB9D",
"has_more": true,
"promotions": [
{
"base_info": {
"price": null,
"title": "雅贝热奶咖固体饮料(送实验装)",
"category": {
"leaf_layer": 3,
"first_category": {
"category_id": 1000001823,
"category_name": "水饮冲调"
},
"third_category": {
"category_id": 1000001918,
"category_name": "速溶咖啡"
},
"fourth_category": {
"category_id": 0,
"category_name": ""
},
"second_category": {
"category_id": 1000001834,
"category_name": "咖啡及辅料"
}
},
"main_img": {
"uri": "ecom-shop-material/png_m_c806bdef193426f343a7d7b6d7187983_sx_3166796_www1728-1728",
"url_list": [
"https://p9-aio.ecombdimg.com/obj/ecom-shop-material/png_m_c806bdef193426f343a7d7b6d7187983_sx_3166796_www1728-1728"
]
},
"detail_url": "https://haohuo.jinritemai.com/ecommerce/trade/detail/index.html?id=3851920193941012594&origin_type=2631"
},
"product_id": "3851920193941012594",
"promotion_id": "3851925783958388809"
},
"… +29"
],
"promotions_pc": null,
"summary_shops": [],
"summary_authors": [],
"summary_promotions": [
{
"base_model": {
"tag_info": {
"main_tags": [
{
"pic": "https://lf3-static.bytednsdoc.com/obj/eden-cn/lm-ljuhpssh/ljhwZthlaukjlkulzlp/d2c/xiy/切图_14px@3x标签.png",
"text": {
"text": ""
},
"type": "big_promotion_11_tag",
"tag_type": 1
}
],
"tag_codes": [
"big_promotion_11_tag",
"… +4"
],
"second_tags": [
{
"text": {
"text": "免费寄样"
},
"type": "FreeSample",
"tag_type": 1,
"border_color": "rgba(255, 112, 29, 0.34)"
},
"… +3"
]
},
"shop_info": {
"shop_id": 45617111,
"shop_logo": {
"url_list": [
"https://p3-ecom-qualification-sign.ecombdimg.com/tos-cn-i-6vegkygxbk/8ae09f50f7f24bec85eaf81f92596995~tplv-6vegkygxbk-s:…"
]
},
"shop_name": "雅贝热",
"shop_score_info": {
"has_data": true,
"shop_score": {
"score": 89,
"rating": "",
"percentage": 0,
"rise_than_7d_ago": 0
}
}
},
"extend_info": {
"is_in_cart": false,
"data_report": {
"query": "咖啡",
"scene": "PCSquareSearch",
"log_pb": "20261108075944454BC6CC8D520BB4BB9D",
"shop_id": "45617111",
"search_id": "1ece287eacd2e63289af8378fa9a4d8565454a55a684b0e87f62212d249b213e9eb6e28f896f145e0e2adbb6105c232a795c21a5a13e86233ee105cb…",
"tag_codes": "big_promotion_11_tag,FreeSample,big_promote_coupon,DouMonthPay,spot_goods",
"channel_id": "200",
"first_tags": "big_promotion_11_tag",
"product_id": "3851920193941012594",
"session_id": "2240ef2d8a855155c5a83bb0482ffccf197cd99dd99017347d914442b8d79bf12d198f25b4e2e48dc6e53f53c63250f7d1545dc9457a1672c8e8f425…",
"recall_type": "Search",
"search_type": "搜商品",
"second_tags": "FreeSample,big_promote_coupon,DouMonthPay,spot_goods",
"commodity_id": "3851925783958388809",
"material_type": "promotion_id"
}
},
"product_info": {
"name": "雅贝热奶咖固体饮料(送实验装)",
"category": {
"leaf_layer": 3,
"first_category": {
"category_id": 1000001823,
"category_name": "水饮冲调"
},
"third_category": {
"category_id": 1000001918,
"category_name": "速溶咖啡"
},
"fourth_category": {
"category_id": 0,
"category_name": ""
},
"second_category": {
"category_id": 1000001834,
"category_name": "咖啡及辅料"
}
},
"main_img": {
"uri": "ecom-shop-material/png_m_c806bdef193426f343a7d7b6d7187983_sx_3166796_www1728-1728",
"url_list": [
"https://p9-aio.ecombdimg.com/obj/ecom-shop-material/png_m_c806bdef193426f343a7d7b6d7187983_sx_3166796_www1728-1728"
]
},
"sale_axis": [
{
"x": "20261009",
"y": 0
},
"… +29"
],
"detail_url": "https://haohuo.jinritemai.com/ecommerce/trade/detail/index.html?id=3851920193941012594&origin_type=2631",
"month_sale": {
"origin": 89
},
"product_status": {
"status": 0,
"check_status": 3
},
"month_sale_text": "月销"
},
"marketing_info": {
"price_desc": {
"price": {
"origin": 3990,
"suffix": "",
"decimal": "9",
"integer": "39"
},
"price_text": "到手价"
}
},
"promotion_info": {
"cos_info": {
"cos": {
…
示例较长,此处截断显示。
在线试用
登录后可以在这里直接调用此接口,按价格从余额扣费,失败不收费。新账户赠送 $0.50 试用额度。
抖音电商的其他接口
-
商品详情
$0.02通过商品ID获取抖音电商商品详情。用于在目录或商品研究中检查已知的市场商品。
/v1/douyin_ec/get_item_detail_v2
-
商品SKU信息 v1
$0.04通过商品ID获取抖音电商商品的SKU信息。用于在目录审查期间检查已知商品的可购买变体。
/v1/douyin_ec/get_item_sku_info_v1
-
商品SKU信息 v2
$0.04通过商品 ID 获取抖音电商商品的 SKU 信息。当商品不支持时返回状态码 202。
/v1/douyin_ec/get_item_sku_info_v2
-
商品评论
$0.02通过商品ID以分页方式获取抖音电商商品的客户评论。用于查看已知市场商品的商品反馈。
/v1/douyin_ec/get_item_comments_v1
-
店铺商品列表
$0.02通过店铺ID以分页方式获取抖音电商店铺的商品列表。用于逐页浏览已知卖家的市场目录。
/v1/douyin_ec/get_shop_item_list_v1