Explore our Marketplace to buy and sell APIs, services, and social media solutions. Connect with a vibrant community of developers, businesses, and creators!
history_words 为可选项,传入用户此前搜索过的词(英文逗号分隔)会影响联想词排序。words,无需再从原始结构中提取。payload = {
"keyword": "人工智能",
"history_words": ""
}words[]: 联想词字符串列表(多数场景只需要这个)items[]: 联想词完整条目,需要高亮位置或来源信息时使用content: 联想词内容pos[]: 命中位置(begin 起始字符位置、end 结束字符位置)word_record: 词记录(group_id 词组ID、words_source 词来源等)extra_info: 附加信息virtual[]: 虚拟联想词列表(部分关键词才有)empty_reason: 没有联想词时给出的原因(仅在结果为空时返回)history_words is optional; passing the user's previous search words (comma separated)words list directly, no extraction needed.payload = {
"keyword": "Artificial Intelligence",
"history_words": ""
}words[]: Plain list of suggested keywords (enough for most use cases)items[]: Full suggestion entries, use when highlight positions or sources are neededcontent: Suggested keywordpos[]: Matched position (begin / end character positions)word_record: Word record (group_id, words_source, etc.)extra_info: Extra informationvirtual[]: Virtual suggestion list (only for some keywords)empty_reason: Why the suggestion list is empty (only returned when there is no result)Authorization: Bearer ********************curl --location 'https://api.tikhub.io/api/v1/douyin/search/fetch_search_suggest_v2' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"keyword": "人工智能",
"history_words": ""
}'{
"code": 200,
"request_id": "string",
"message": "Request successful. This request will incur a charge.",
"message_zh": "请求成功,本次请求将被计费。",
"support": "Discord: https://discord.gg/aMEAS8Xsvz",
"time": "string",
"time_stamp": 0,
"time_zone": "America/Los_Angeles",
"docs": "string",
"cache_message": "string",
"cache_message_zh": "string",
"cache_url": "string",
"router": "",
"params": {},
"data": null
}