抖音 用户搜索
按关键词搜索抖音用户,支持基于页面的分页和可选的账号类型筛选。用于发现创作者、品牌或认证账号进行研究。
/v1/douyin/search_user_v2
$0.02
- 价格
- $0.02 / 次成功调用,失败不收费
- 接口 ID
douyin.search_user_v2
参数
-
keywordstring 必填搜索关键词。
示例
咖啡 -
pageinteger 可选页码(从1开始)。
示例
1 -
user_typestring 可选按用户类型筛选。
可用值:
common_user: 普通用户enterprise_user: 企业用户personal_user: 已认证个人用户
示例
common_user
代码示例
curl -G "https://api.mofa-ai.com/v1/douyin/search_user_v2" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'keyword=咖啡' \
--data-urlencode 'page=1' \
--data-urlencode 'user_type=common_user'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/douyin/search_user_v2",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"keyword": "咖啡",
"page": "1",
"user_type": "common_user",
},
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/search_user_v2");
url.search = new URLSearchParams({
keyword: "咖啡",
page: "1",
user_type: "common_user",
});
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": "咖啡", "user_type": "common_user"}
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "douyin.search_user_v2",
"cost_usd": 0.02,
"data": {
"code": 0,
"data": {
"log": {
"impr_id": "20261108075755C5218C17C10631FABD3A",
"search_id": "20261108075755C5218C17C10631FABD3A",
"search_keyword": "咖啡"
},
"path": "/aweme/v2/search/discover/",
"extra": {
"now": 1794095876000,
"logid": "20261108075755C5218C17C10631FABD3A",
"scenes": null,
"device_score": 0,
"fatal_item_ids": [],
"search_request_id": ""
},
"log_pb": {
"impr_id": "20261108075755C5218C17C10631FABD3A"
},
"struct": {
"fp": "",
"id": "00",
"children": [
{
"fp": "",
"id": "0",
"data_id": "0",
"render_id": "0"
},
{
"fp": "",
"id": "1",
"data_id": "1",
"render_id": "0"
},
"… +18"
],
"layout_type": 1
},
"success": true,
"time_cost": {
"stream_inner": 455
},
"render_info": [
{
"ui_info": null,
"render_id": "0",
"render_type": 1,
"render_extra": {
"type": 999,
"height": 80,
"schema": "aweme://lynxview/?channel=morphling_high&bundle=channel_user%2Findex%2Ftemplate.js&group=morphling_high&dynamic=0&surl=https%3A%2F%2Flf-dy-gr-sourcecdn.bytegecko.com%2Fobj%2Fbyte-gurd-source-gr%2Fsear…",
"card_type_name": "channel_user"
}
}
],
"status_code": 0,
"business_data": [
{
"log": {
"dcm": "search.natural.discover.104509506123.20261108075755C5218C17C10631FABD3A"
},
"data": {
"ops": null,
"tab": null,
"type": 999,
"height": 80,
"schema": "aweme://lynxview/?channel=morphling_high&bundle=channel_user%2Findex%2Ftemplate.js&group=morphling_high&dynamic=0&surl=https%3A%2F%2Flf-dy-gr-sourcecdn.bytegecko.com%2Fobj%2Fbyte-gurd-source-gr%2Fsear…",
"card_id": "douyin.doctype_aweme_user",
"doc_type": 150,
"log_data": {
"dcm": "search.natural.discover.104509506123.20261108075755C5218C17C10631FABD3A"
},
"raw_data": "{\"is_red_phone_number\":null,\"phone_number_encrypted\":null,\"user_info\":{\"uid\":\"104509506123\",\"nickname\":\"咖啡\",\"gender\":2,\"avatar_larger\":{\"uri\":\"1080x1080/aweme-avatar/tos-cn-avt-0015_096235bd21a9ced431…",
"show_tab": null,
"card_type": 4,
"send_back": "",
"aweme_list": null,
"debug_data": {
"filter_debug_info_list": null
},
"origin_type": 4,
"sub_card_list": null,
"card_type_name": "channel_user",
"card_style_type": 4,
"debug_diff_info": {},
"ecom_goods_list": null,
"music_info_list": null,
"provider_doc_id": 104509506123,
"qishui_music_list": null,
"provider_doc_id_str": "104509506123",
"shoot_position_list": null,
"card_protocal_struct": {
"render_type": 1,
"render_extra": {
"type": 999,
"height": 80,
"schema": "aweme://lynxview/?channel=morphling_high&bundle=channel_user%2Findex%2Ftemplate.js&group=morphling_high&dynamic=0&surl=https%3A%2F%2Flf-dy-gr-sourcecdn.bytegecko.com%2Fobj%2Fbyte-gurd-source-gr%2Fsear…",
"card_type_name": "channel_user"
}
}
},
"type": 999,
"card_id": "douyin.doctype_aweme_user",
"data_id": "0"
},
{
"log": {
"dcm": "search.natural.discover.67114430504.20261108075755C5218C17C10631FABD3A"
},
"data": {
"ops": null,
"tab": null,
"type": 999,
"height": 80,
"schema": "aweme://lynxview/?channel=morphling_high&bundle=channel_user%2Findex%2Ftemplate.js&group=morphling_high&dynamic=0&surl=https%3A%2F%2Flf-dy-gr-sourcecdn.bytegecko.com%2Fobj%2Fbyte-gurd-source-gr%2Fsear…",
"card_id": "douyin.doctype_aweme_user",
"doc_type": 150,
"log_data": {
"dcm": "search.natural.discover.67114430504.20261108075755C5218C17C10631FABD3A"
},
"raw_data": "{\"user_info\":{\"uid\":\"67114430504\",\"nickname\":\"Sharon迪辣\",\"gender\":1,\"avatar_larger\":{\"uri\":\"1080x1080/aweme-avatar/tos-cn-avt-0015_663b769ff19b623d9e5d99ec3d4cf4b8\",\"url_list\":[\"https://p3.douyinpic.co…",
"show_tab": null,
"card_type": 4,
"send_back": "",
"aweme_list": null,
"debug_data": {
"filter_debug_info_list": null
},
"origin_type": 4,
"sub_card_list": null,
"card_type_name": "channel_user",
"card_style_type": 4,
"debug_diff_info": {},
"ecom_goods_list": null,
"music_info_list": null,
"provider_doc_id": 67114430504,
"qishui_music_list": null,
"provider_doc_id_str": "67114430504",
"shoot_position_list": null,
"card_protocal_struct": {
"render_type": 1,
"render_extra": {
"type": 999,
"height": 80,
"schema": "aweme://lynxview/?channel=morphling_high&bundle=channel_user%2Findex%2Ftemplate.js&group=morphling_high&dynamic=0&surl=https%3A%2F%2Flf-dy-gr-sourcecdn.bytegecko.com%2Fobj%2Fbyte-gurd-source-gr%2Fsear…",
"card_type_name": "channel_user"
}
}
},
"type": 999,
"card_id": "douyin.doctype_aweme_user",
"data_id": "1"
},
"… +18"
],
"global_config": {
"hidden_filter": false
},
"business_config": {
"extra": {
"req_start_ts": 1794095876051,
"hidden_filter": false,
"is_filter_search": 1
},
"ad_info": null,
"keyword": "咖啡",
"feedback": {
"url": "aweme://webview/?url=https%3A%2F%2Faweme.snssdk.com%2Ffalcon%2Ffe_app_react%2Fquestionnaire%2Findex.html%3Fcontainer_bgcolor%3D00000000%26do_not_remove_card_after_feedback%3D0%26enable_new_feedback_ui…",
"text_first": "找不到想找的帐号?",
"text_second": "告诉我们"
},
"has_more": 1,
"next_page": {
"cursor": 20,
"keyword": "咖啡",
"search_id": "20261108075755C5218C17C10631FABD3A",
"poi_search_info": "",
…
示例较长,此处截断显示。
在线试用
登录后可以在这里直接调用此接口,按价格从余额扣费,失败不收费。新账户赠送 $0.50 试用额度。
抖音的其他接口
-
视频搜索
$0.02按关键词搜索抖音视频,支持排序、发布时间、时长和分页筛选;后续页面需要上一页的搜索ID。用于支持内容发现和趋势研究。
/v1/douyin/search_video_v4
-
热搜
$0.04搜索抖音内容,支持可选的关键词、类别、视频类型、排序、分页、互动量和创作者粉丝数筛选。用于支持趋势发现和活动研究。
/v1/douyin/hot_search_v1
-
用户发布视频
$0.02检索抖音用户发布的视频,支持游标分页以及最新或最热排序。用于浏览或监控创作者的公开视频输出。
/v1/douyin/get_user_video_list_v1
-
视频详情
$0.02通过视频ID获取抖音视频详情。用于在内容审核、存档或相关分析之前查找已知视频。
/v1/douyin/get_video_detail_v2
-
视频评论
$0.02通过aweme ID以分页方式获取抖音视频的顶级评论。用于查看观众反馈或分析已知视频的讨论。
/v1/douyin/get_video_comment_v1
-
评论回复
$0.02通过分页方式获取抖音视频顶级评论的回复。用于检查线索讨论并查看已知评论下的反馈。
/v1/douyin/get_video_sub_comment_v1
-
用户资料
$0.02通过secUid获取抖音用户资料。用于在监控相关内容或进行账号研究之前查看已知创作者或账号。
/v1/douyin/get_user_detail_v3
-
分享链接解析
$0.02解析一个支持的抖音短分享链接(指向视频)并返回其公开重定向URL。用于在后续的抖音内容查找或处理之前展开视频链接。
/v1/douyin/share_url_transfer_v1