获取图片搜索/Fetch image search
Douyinapi
About
获取图片搜索/Fetch image search
Documentation
获取图片搜索/Fetch image search
[中文]
用途:
- 获取抖音 App 中图片内容搜索的结果。
- 主要返回带有多张图片的帖子(图片合集)。
备注:
- 仅返回图片类型的内容,适用于图片展示类应用场景。
- 初次请求
cursor传 0,search_id传空字符串。 - 翻页时使用上一次响应中的
cursor和search_id。
参数:
- keyword: 搜索关键词,如 "猫咪"
- cursor: 翻页游标(首次请求传0)
- sort_type: 排序方式
0: 综合排序1: 最多点赞2: 最新发布
- publish_time: 发布时间筛选
0: 不限1: 最近一天7: 最近一周180: 最近半年
- filter_duration: 视频时长筛选
0: 不限
- content_type: 内容类型(固定传 2 表示图片内容)
- search_id: 搜索ID(翻页使用)
请求体示例:
payload = {
"keyword": "猫咪",
"cursor": 0,
"sort_type": "0",
"publish_time": "0",
"filter_duration": "0",
"content_type": "2",
"search_id": ""
}
返回(部分常用字段,实际返回字段更多,一切以实际响应为准):
-
cursor: 下一页游标 -
has_more: 是否还有更多数据(1=有,0=无) -
data[]: 图片内容列表aweme_info:aweme_id: 内容IDdesc: 帖子描述文字create_time: 创建时间戳author:uid: 作者IDnickname: 昵称is_verified: 是否认证avatar_thumb.url_list: 缩略头像URL列表avatar_medium.url_list: 中等头像URL列表avatar_larger.url_list: 高清头像URL列表
image_post_info:images[]: 图片列表url_list: 图片地址数组(通常包含webp/jpg)width: 图片宽度(像素)height: 图片高度(像素)
statistics:comment_count: 评论数digg_count: 点赞数share_count: 分享数play_count: 播放数collect_count: 收藏数
status:is_delete: 是否删除is_private: 是否私密
share_url: 外部分享链接
-
extra:now: 当前服务器时间戳logid: 请求日志IDsearch_request_id: 搜索请求ID
[English]
Purpose:
- Fetch image-based search results from Douyin App.
- Mainly returns posts containing image collections.
Notes:
- Only image posts are returned. Suitable for gallery-style applications.
- For the first request, set
cursorto 0 andsearch_idto an empty string. - For pagination, use the
cursorandsearch_idfrom the last response.
Parameters:
- keyword: Search keyword, e.g., "cat"
- cursor: Pagination cursor (0 for first request)
- sort_type: Sorting method
0: Comprehensive1: Most likes2: Latest
- publish_time: Publish time filter
0: Unlimited1: Last day7: Last week180: Last half year
- filter_duration: Video duration filter
0: Unlimited
- content_type: Content type (Fixed to 2 for images)
- search_id: Search ID for pagination
Request Body Example:
payload = {
"keyword": "cat",
"cursor": 0,
"sort_type": "0",
"publish_time": "0",
"filter_duration": "0",
"content_type": "2",
"search_id": ""
}
Response (common fields, actual response may contain more fields):
cursor: Cursor for next pagehas_more: Whether there are more results (1=Yes, 0=No)data[]: List of image postsaweme_info:aweme_id: Content IDdesc: Post descriptioncreate_time: Creation timestampauthor:uid: Author IDnickname: Nicknameis_verified: Verified statusavatar_thumb.url_list: Thumbnail avatar URLsavatar_medium.url_list: Medium avatar URLsavatar_larger.url_list: High-res avatar URLs
image_post_info:images[]: List of imagesurl_list: Image URLs (webp/jpg)width: Width (pixels)height: Height (pixels)
statistics:comment_count: Comment countdigg_count: Like countshare_count: Share countplay_count: Play countcollect_count: Collect count
status:is_delete: Whether deletedis_private: Whether private
share_url: Shareable external link
extra:now: Current server timestamplogid: Request log IDsearch_request_id: Search session ID
Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.
Try 获取图片搜索/Fetch image search
Test this model in the Sandbase Playground with your own prompts.
Open in PlaygroundRelated Models
获取话题搜索 V1/Fetch hashtag search V1Douyinapi获取话题搜索 V2/Fetch hashtag search V2Douyinapi获取话题推荐搜索/Fetch hashtag suggestionsDouyinapi获取讨论搜索/Fetch discussion searchDouyinapi获取经验搜索/Fetch experience searchDouyinapi获取综合搜索 V1/Fetch general search V1Douyinapi获取综合搜索 V2/Fetch general search V2Douyinapi获取图文搜索 V3/Fetch image-text search V3Douyinapi