image_uri 可从抖音其他接口的返回数据中获取(如视频详情、搜索结果、用户主页等接口的图片uri字段)。cursor 传入 0,search_id 传空字符串。cursor 和 search_id 字段值。image_uri 是必填参数,需要先通过抖音图片上传接口获取,或在单一视频接口中获取,其他途径如各类搜索接口返回的图片URI均可使用。detection 表示图片中需要识别的区域,格式为 "x1,y1,x2,y2",默认 "0.1,0.1,0.9,0.9" 表示全图。graphic_detail: 图片详情页搜索(默认)visual_normal_search: 带关键词追加搜索(需要传入 user_query)payload = {
"image_uri": "20251221204239F0C21D7645F172B6085C",
"cursor": 0,
"search_id": "",
"search_source": "graphic_detail",
"detection": "0.1,0.1,0.9,0.9",
"detection_index": 0
}payload = {
"image_uri": "20251221204239F0C21D7645F172B6085C",
"cursor": 0,
"search_id": "2025122120452038252994F25A4BAEB043",
"search_source": "visual_normal_search",
"detection": "0.1,0.1,0.9,0.9",
"detection_index": 0,
"user_query": "游戏",
"aweme_id": "7523532488087817529"
}status_code: 响应状态码(0为成功)cursor: 下一页游标has_more: 是否还有更多数据(1=有,0=无)search_id: 搜索ID,翻页时使用data[]: 搜索结果列表type: 结果类型aweme_info: 视频/图文详细信息aweme_id: 视频IDdesc: 视频描述author: 作者信息video: 视频播放信息statistics: 互动统计image_uri can be obtained from other Douyin API responses (such as video details, search results, user profile, etc.), and used directly for vision search.cursor to 0 and search_id to empty string for the first request.cursor and search_id values from the previous response.image_uri is a required parameter. It can be obtained from Douyin API responses that contain image information, such as video details API, general search API, user profile API, etc. These responses typically include image URIs that can be used directly for vision search.detection represents the area to be recognized in the image, format "x1,y1,x2,y2", default "0.1,0.1,0.9,0.9" means the whole image.graphic_detail: Image detail page search (default)visual_normal_search: Search with keyword append (requires user_query)payload = {
"image_uri": "20251221204239F0C21D7645F172B6085C",
"cursor": 0,
"search_id": "",
"search_source": "graphic_detail",
"detection": "0.1,0.1,0.9,0.9",
"detection_index": 0
}payload = {
"image_uri": "20251221204239F0C21D7645F172B6085C",
"cursor": 0,
"search_id": "2025122120452038252994F25A4BAEB043",
"search_source": "visual_normal_search",
"detection": "0.1,0.1,0.9,0.9",
"detection_index": 0,
"user_query": "game",
"aweme_id": "7523532488087817529"
}status_code: Response status code (0 means success)cursor: Cursor for next pagehas_more: Whether more data is available (1=Yes, 0=No)search_id: Search ID for paginationdata[]: List of search resultstype: Result typeaweme_info: Video/image post detailsaweme_id: Video IDdesc: Video descriptionauthor: Author informationvideo: Video playback informationstatistics: Interaction statisticsAuthorization: Bearer ********************{}curl --location --request POST 'https://api.tikomni.com/api/u1/v1/douyin/search/fetch_vision_search' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{}'{}