---
title: "抖音热搜 API (V1)"
description: "搜索抖音内容，支持可选的关键词、类别、视频类型、排序、分页、互动量和创作者粉丝数筛选。用于支持趋势发现和活动研究。"
aiUsagePrompt: true
---

# 抖音热搜 API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/douyin/hot-search/v1\"")'
  :summary='JSON.parse("\"热搜 (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/douyin-tiktok-china/hot-search-v1-zh.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"此 API 服务的访问令牌。\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"keyword\",\"in\":\"query\",\"description\":\"可选的搜索关键词。\",\"required\":false,\"schema\":{\"type\":\"string\"}},{\"name\":\"contentType\",\"in\":\"query\",\"description\":\"顶级内容类型。只能选择一种内容类型。\\n\\n可选值：\\n- `ALL`：所有内容类型。\\n- `FASHION`：时尚。\\n- `TECHNOLOGY`：科技。\\n- `SCIENCE`：科学。\\n- `PHOTOGRAPHY`：摄影与摄像。\\n- `FOOD`：美食。\\n- `MOTHER_BABY`：母婴。\\n- `PARENTING`：育儿。\\n- `DRAMA`：戏剧。\\n- `GAME`：游戏。\\n- `AUTOMOTIVE`：汽车。\\n- `ANIMAL`：动物。\\n- `TRAVEL`：旅行。\\n- `DANCE`：舞蹈。\\n- `TRADITIONAL_CULTURE`：传统文化。\\n- `ART`：艺术。\\n- `SPORTS`：体育。\\n- `MUSIC`：音乐。\\n- `LIFE_RECORD`：生活记录。\\n- `HOME_LIVING`：家居生活。\\n- `LEISURE_ENTERTAINMENT`：休闲娱乐。\\n- `WORKPLACE`：职场。\\n- `AGRICULTURE`：农业。\\n- `CASUAL`：随拍。\\n- `ACG`：动漫、漫画与游戏。\\n- `MOVIE`：电影。\\n- `TV_SERIES`：电视剧。\\n- `VARIETY_SHOW`：综艺。\\n- `CELEBRITY`：明星。\\n- `HUMANITIES_SOCIAL_SCIENCE`：人文社科。\\n- `EDUCATION_CAMPUS`：教育校园。\\n- `EMOTION`：情感。\\n- `FINANCE`：财经。\\n- `PUBLIC_WELFARE`：公益。\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"ALL\",\"description\":\"顶级内容类型。\",\"enum\":[\"ALL\",\"FASHION\",\"TECHNOLOGY\",\"SCIENCE\",\"PHOTOGRAPHY\",\"FOOD\",\"MOTHER_BABY\",\"PARENTING\",\"DRAMA\",\"GAME\",\"AUTOMOTIVE\",\"ANIMAL\",\"TRAVEL\",\"DANCE\",\"TRADITIONAL_CULTURE\",\"ART\",\"SPORTS\",\"MUSIC\",\"LIFE_RECORD\",\"HOME_LIVING\",\"LEISURE_ENTERTAINMENT\",\"WORKPLACE\",\"AGRICULTURE\",\"CASUAL\",\"ACG\",\"MOVIE\",\"TV_SERIES\",\"VARIETY_SHOW\",\"CELEBRITY\",\"HUMANITIES_SOCIAL_SCIENCE\",\"EDUCATION_CAMPUS\",\"EMOTION\",\"FINANCE\",\"PUBLIC_WELFARE\"]}},{\"name\":\"videoType\",\"in\":\"query\",\"description\":\"视频类型筛选。\\n\\n可选值：\\n- `ALL`：所有视频类型。\\n- `XINGTU_VIDEO`：星图商业视频。\\n- `NATURAL_VIDEO`：自然视频。\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"ALL\",\"description\":\"视频类型筛选。\",\"enum\":[\"ALL\",\"XINGTU_VIDEO\",\"NATURAL_VIDEO\"]}},{\"name\":\"sortType\",\"in\":\"query\",\"description\":\"热门内容结果的排序标准。\\n\\n可选值：\\n- `COMPREHENSIVE`：综合排序。\\n- `HIGH_INTERACTION`：最高互动量。\\n- `HIGH_LIKE`：最高点赞量。\\n- `HIGH_COMMENT`：最高评论量。\\n- `HIGH_SHARE`：最高分享量。\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"COMPREHENSIVE\",\"description\":\"热门内容结果的排序标准。\",\"enum\":[\"COMPREHENSIVE\",\"HIGH_INTERACTION\",\"HIGH_LIKE\",\"HIGH_COMMENT\",\"HIGH_SHARE\"]}},{\"name\":\"page\",\"in\":\"query\",\"description\":\"页码（从1开始）。每页固定10条。\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int32\",\"default\":1}},{\"name\":\"likeCountMin\",\"in\":\"query\",\"description\":\"最低原始点赞数。\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"likeCountMax\",\"in\":\"query\",\"description\":\"最高原始点赞数。\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"commentCountMin\",\"in\":\"query\",\"description\":\"最低原始评论数。\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"commentCountMax\",\"in\":\"query\",\"description\":\"最高原始评论数。\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"shareCountMin\",\"in\":\"query\",\"description\":\"最低原始分享数。\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"shareCountMax\",\"in\":\"query\",\"description\":\"最高原始分享数。\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"interactionCountMin\",\"in\":\"query\",\"description\":\"最低原始互动数。\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"interactionCountMax\",\"in\":\"query\",\"description\":\"最高原始互动数。\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"followerCountMin\",\"in\":\"query\",\"description\":\"最低原始创作者粉丝数。\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"followerCountMax\",\"in\":\"query\",\"description\":\"最高原始创作者粉丝数。\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"好的\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":[\"object\",\"null\"],\"description\":\"抖音热搜结果，包含接口返回的分页信息及内容属性。\",\"properties\":{\"base_resp\":{\"type\":\"object\",\"description\":\"结果中包含的搜索状态信息。\",\"properties\":{\"status_code\":{\"type\":\"integer\",\"description\":\"内容搜索返回的状态码。\"},\"status_message\":{\"type\":\"string\",\"description\":\"内容搜索返回的状态消息，可以为空字符串。\"}}},\"pagination\":{\"type\":\"object\",\"description\":\"此次搜索返回的分页信息。\",\"properties\":{\"page\":{\"type\":\"integer\",\"description\":\"此批结果返回的页码。\"},\"limit\":{\"type\":\"integer\",\"description\":\"此次搜索返回的分页大小。\"},\"total_count\":{\"type\":\"integer\",\"description\":\"此次查询返回的结果总数。\"},\"has_more\":{\"type\":\"boolean\",\"description\":\"搜索结果是否报告还有下一页。\"}}},\"content_list\":{\"type\":\"array\",\"description\":\"此搜索页返回的热门内容条目。\",\"items\":{\"type\":\"object\",\"description\":\"一条热门内容条目。\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"以字符串返回的内容标识。\"},\"object_type\":{\"type\":\"integer\",\"description\":\"此条内容返回的对象类型代码。\"},\"attribute_datas\":{\"type\":\"object\",\"description\":\"此条内容返回的属性及指标。\",\"properties\":{\"item_title\":{\"type\":\"string\",\"description\":\"内容标题，可以为空字符串。\"},\"item_create_time\":{\"type\":\"string\",\"description\":\"内容创建时间，Unix 秒级时间戳，以字符串返回。\"},\"cover_image_uri\":{\"type\":\"string\",\"description\":\"接口返回的封面图资源 URI。\"},\"core_user_id\":{\"type\":\"string\",\"description\":\"内容属性中关联的作者账号标识。\"},\"is_star_item\":{\"type\":\"string\",\"description\":\"以字符串返回的星图内容标记。\"},\"v2_first_tag_id\":{\"type\":\"string\",\"description\":\"以字符串返回的内容一级标签标识。\"},\"v2_second_tag_id\":{\"type\":\"string\",\"description\":\"以字符串返回的内容二级标签标识。\"},\"vv_all\":{\"type\":\"string\",\"description\":\"以字符串返回的内容播放次数。\"},\"like_cnt_all\":{\"type\":\"string\",\"description\":\"以字符串返回的内容点赞数。\"},\"comment_cnt_all\":{\"type\":\"string\",\"description\":\"以字符串返回的内容评论数。\"},\"share_cnt_all\":{\"type\":\"string\",\"description\":\"以字符串返回的内容分享数。\"},\"interact_cnt\":{\"type\":\"string\",\"description\":\"以字符串返回的互动次数。已核对的回包中，此值等于点赞、评论和分享次数之和。\"},\"interact_rate\":{\"type\":\"string\",\"description\":\"以小数比例文本返回的互动率。已核对的值与互动次数除以播放次数的结果近似一致。\"},\"finish_rate\":{\"type\":\"string\",\"description\":\"以小数比例文本返回的完播率。\"},\"quality_score\":{\"type\":\"string\",\"description\":\"接口以文本返回的内容质量分。\"},\"score\":{\"type\":\"string\",\"description\":\"接口以文本返回的搜索结果分值。\"}}},\"user_info\":{\"type\":\"object\",\"description\":\"内容关联的作者资料。\",\"properties\":{\"core_user_id\":{\"type\":\"string\",\"description\":\"作者资料中返回的账号标识。\"},\"name\":{\"type\":\"string\",\"description\":\"内容作者的展示名称。\"},\"avatar_url\":{\"type\":\"string\",\"description\":\"作者头像链接。\"},\"follower\":{\"type\":\"string\",\"description\":\"以字符串返回的作者粉丝数。\"},\"star_id\":{\"type\":\"string\",\"description\":\"存在时返回的星图达人标识。\"}}}}}}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"请求参数或请求体无效\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"访问令牌无效或未激活\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"权限不足\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"请求速率或每日配额已超限\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"服务器内部错误\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"服务暂时不可用\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"全球生产 API（默认）\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/douyin/hot-search/v1\"")' />

<p>搜索抖音内容，支持可选的关键词、类别、视频类型、排序、分页、互动量和创作者粉丝数筛选。用于支持趋势发现和活动研究。</p>

## 请求参数

<div class="api-doc-table api-doc-table--params">

| 参数名 | 位置 | 类型 | 必填 | 默认值 | 说明 |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | 是 | - | 此 API 服务的访问令牌。 |
| <code>keyword</code> | query | <code>string</code> | 否 | - | 可选的搜索关键词。 |
| <code>contentType</code> | query | <code>string</code> | 否 | <code>ALL</code> | 顶级内容类型。只能选择一种内容类型。<br /><br><br>可选值：<br /><br>- <code>ALL</code>：所有内容类型。<br /><br>- <code>FASHION</code>：时尚。<br /><br>- <code>TECHNOLOGY</code>：科技。<br /><br>- <code>SCIENCE</code>：科学。<br /><br>- <code>PHOTOGRAPHY</code>：摄影与摄像。<br /><br>- <code>FOOD</code>：美食。<br /><br>- <code>MOTHER_BABY</code>：母婴。<br /><br>- <code>PARENTING</code>：育儿。<br /><br>- <code>DRAMA</code>：戏剧。<br /><br>- <code>GAME</code>：游戏。<br /><br>- <code>AUTOMOTIVE</code>：汽车。<br /><br>- <code>ANIMAL</code>：动物。<br /><br>- <code>TRAVEL</code>：旅行。<br /><br>- <code>DANCE</code>：舞蹈。<br /><br>- <code>TRADITIONAL_CULTURE</code>：传统文化。<br /><br>- <code>ART</code>：艺术。<br /><br>- <code>SPORTS</code>：体育。<br /><br>- <code>MUSIC</code>：音乐。<br /><br>- <code>LIFE_RECORD</code>：生活记录。<br /><br>- <code>HOME_LIVING</code>：家居生活。<br /><br>- <code>LEISURE_ENTERTAINMENT</code>：休闲娱乐。<br /><br>- <code>WORKPLACE</code>：职场。<br /><br>- <code>AGRICULTURE</code>：农业。<br /><br>- <code>CASUAL</code>：随拍。<br /><br>- <code>ACG</code>：动漫、漫画与游戏。<br /><br>- <code>MOVIE</code>：电影。<br /><br>- <code>TV_SERIES</code>：电视剧。<br /><br>- <code>VARIETY_SHOW</code>：综艺。<br /><br>- <code>CELEBRITY</code>：明星。<br /><br>- <code>HUMANITIES_SOCIAL_SCIENCE</code>：人文社科。<br /><br>- <code>EDUCATION_CAMPUS</code>：教育校园。<br /><br>- <code>EMOTION</code>：情感。<br /><br>- <code>FINANCE</code>：财经。<br /><br>- <code>PUBLIC_WELFARE</code>：公益。 |
| <code>videoType</code> | query | <code>string</code> | 否 | <code>ALL</code> | 视频类型筛选。<br /><br><br>可选值：<br /><br>- <code>ALL</code>：所有视频类型。<br /><br>- <code>XINGTU_VIDEO</code>：星图商业视频。<br /><br>- <code>NATURAL_VIDEO</code>：自然视频。 |
| <code>sortType</code> | query | <code>string</code> | 否 | <code>COMPREHENSIVE</code> | 热门内容结果的排序标准。<br /><br><br>可选值：<br /><br>- <code>COMPREHENSIVE</code>：综合排序。<br /><br>- <code>HIGH_INTERACTION</code>：最高互动量。<br /><br>- <code>HIGH_LIKE</code>：最高点赞量。<br /><br>- <code>HIGH_COMMENT</code>：最高评论量。<br /><br>- <code>HIGH_SHARE</code>：最高分享量。 |
| <code>page</code> | query | <code>integer</code> | 否 | <code>1</code> | 页码（从1开始）。每页固定10条。 |
| <code>likeCountMin</code> | query | <code>integer</code> | 否 | - | 最低原始点赞数。 |
| <code>likeCountMax</code> | query | <code>integer</code> | 否 | - | 最高原始点赞数。 |
| <code>commentCountMin</code> | query | <code>integer</code> | 否 | - | 最低原始评论数。 |
| <code>commentCountMax</code> | query | <code>integer</code> | 否 | - | 最高原始评论数。 |
| <code>shareCountMin</code> | query | <code>integer</code> | 否 | - | 最低原始分享数。 |
| <code>shareCountMax</code> | query | <code>integer</code> | 否 | - | 最高原始分享数。 |
| <code>interactionCountMin</code> | query | <code>integer</code> | 否 | - | 最低原始互动数。 |
| <code>interactionCountMax</code> | query | <code>integer</code> | 否 | - | 最高原始互动数。 |
| <code>followerCountMin</code> | query | <code>integer</code> | 否 | - | 最低原始创作者粉丝数。 |
| <code>followerCountMax</code> | query | <code>integer</code> | 否 | - | 最高原始创作者粉丝数。 |

</div>

## 代码示例

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/douyin/hot-search/v1?token=YOUR_API_KEY'
```

```text [🤖 AI 提示词]
我想使用 JustOneAPI 提供的“热搜 (V1)”接口。
接入地址: https://api.justoneapi.com。
接口路径: /api/douyin/hot-search/v1?token=YOUR_API_KEY
接口地址: BASE_URL + /api/douyin/hot-search/v1?token=YOUR_API_KEY
HTTP 方法: GET
身份验证: 在 URL 中传入 token 查询参数。
OpenAPI 定义: https://docs.justoneapi.com/openapi/douyin-tiktok-china/hot-search-v1-zh.json

请求参数说明:
- token (query): 此 API 服务的访问令牌。 (必填)
- keyword (query): 可选的搜索关键词。
- contentType (query): 顶级内容类型。只能选择一种内容类型。

可选值：
- `ALL`：所有内容类型。
- `FASHION`：时尚。
- `TECHNOLOGY`：科技。
- `SCIENCE`：科学。
- `PHOTOGRAPHY`：摄影与摄像。
- `FOOD`：美食。
- `MOTHER_BABY`：母婴。
- `PARENTING`：育儿。
- `DRAMA`：戏剧。
- `GAME`：游戏。
- `AUTOMOTIVE`：汽车。
- `ANIMAL`：动物。
- `TRAVEL`：旅行。
- `DANCE`：舞蹈。
- `TRADITIONAL_CULTURE`：传统文化。
- `ART`：艺术。
- `SPORTS`：体育。
- `MUSIC`：音乐。
- `LIFE_RECORD`：生活记录。
- `HOME_LIVING`：家居生活。
- `LEISURE_ENTERTAINMENT`：休闲娱乐。
- `WORKPLACE`：职场。
- `AGRICULTURE`：农业。
- `CASUAL`：随拍。
- `ACG`：动漫、漫画与游戏。
- `MOVIE`：电影。
- `TV_SERIES`：电视剧。
- `VARIETY_SHOW`：综艺。
- `CELEBRITY`：明星。
- `HUMANITIES_SOCIAL_SCIENCE`：人文社科。
- `EDUCATION_CAMPUS`：教育校园。
- `EMOTION`：情感。
- `FINANCE`：财经。
- `PUBLIC_WELFARE`：公益。
- videoType (query): 视频类型筛选。

可选值：
- `ALL`：所有视频类型。
- `XINGTU_VIDEO`：星图商业视频。
- `NATURAL_VIDEO`：自然视频。
- sortType (query): 热门内容结果的排序标准。

可选值：
- `COMPREHENSIVE`：综合排序。
- `HIGH_INTERACTION`：最高互动量。
- `HIGH_LIKE`：最高点赞量。
- `HIGH_COMMENT`：最高评论量。
- `HIGH_SHARE`：最高分享量。
- page (query): 页码（从1开始）。每页固定10条。
- likeCountMin (query): 最低原始点赞数。
- likeCountMax (query): 最高原始点赞数。
- commentCountMin (query): 最低原始评论数。
- commentCountMax (query): 最高原始评论数。
- shareCountMin (query): 最低原始分享数。
- shareCountMax (query): 最高原始分享数。
- interactionCountMin (query): 最低原始互动数。
- interactionCountMax (query): 最高原始互动数。
- followerCountMin (query): 最低原始创作者粉丝数。
- followerCountMax (query): 最高原始创作者粉丝数。

返回格式: 请根据实际 Content-Type 安全处理 JSON 或文本响应。

响应处理与错误码：
1. 需通过返回体中的 "code" 字段判断业务结果（code 为 0 表示成功）。
2. 超时建议：建议将请求超时时间设置为 120 秒；如果 120 秒偏长，请至少设置为 60 秒，但可能会有少量请求因超时而未接收到结果。
3. 业务码说明：
   - 0: 成功
   - 100: Token 无效或已失效
   - 301: 采集失败，请重试
   - 302: 超出速率限制
   - 303: 超出每日配额
   - 400: 参数错误
   - 500: 内部服务器错误
   - 600: 权限不足
   - 601: 账户余额不足
   - 602: TOKEN 限额超限
4. code 601 表示账户共享余额不足。code 602 表示当前 API TOKEN 自身的累计消费上限已达到。TOKEN 限额不是资金划拨，多个 TOKEN 仍共享同一个账户余额。

请帮我用我擅长的编程语言写一个脚本来调用这个接口，并处理返回结果。
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # 由 OpenAPI servers 提供

url = BASE_URL + "/api/douyin/hot-search/v1?token=YOUR_API_KEY"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // 由 OpenAPI servers 提供
const url = BASE_URL + "/api/douyin/hot-search/v1?token=YOUR_API_KEY";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
```

```java [☕ Java]
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // 由 OpenAPI servers 提供
        final String url = BASE_URL + "/api/douyin/hot-search/v1?token=YOUR_API_KEY";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
```

```go [🐹 Go]
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // 由 OpenAPI servers 提供

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/douyin/hot-search/v1?token=YOUR_API_KEY"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
```

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // 由 OpenAPI servers 提供
$url = $BASE_URL . '/api/douyin/hot-search/v1?token=YOUR_API_KEY';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/douyin-tiktok-china/hot-search-v1-zh.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI 定义 (JSON)]</a>
</div>

## 返回字段

业务成功时（`code = 0`）的主要返回字段。

<div class="api-doc-table api-doc-table--response">

| 字段路径 | 类型 | 说明 |
| --- | --- | --- |
| <code>data</code> | <code>object &#124; null</code> | 抖音热搜结果，包含接口返回的分页信息及内容属性。 |
| <code>data.base_resp</code> | <code>object</code> | 结果中包含的搜索状态信息。 |
| <code>data.base_resp.status_code</code> | <code>integer</code> | 内容搜索返回的状态码。 |
| <code>data.base_resp.status_message</code> | <code>string</code> | 内容搜索返回的状态消息，可以为空字符串。 |
| <code>data.pagination</code> | <code>object</code> | 此次搜索返回的分页信息。 |
| <code>data.pagination.page</code> | <code>integer</code> | 此批结果返回的页码。 |
| <code>data.pagination.limit</code> | <code>integer</code> | 此次搜索返回的分页大小。 |
| <code>data.pagination.total_count</code> | <code>integer</code> | 此次查询返回的结果总数。 |
| <code>data.pagination.has_more</code> | <code>boolean</code> | 搜索结果是否报告还有下一页。 |
| <code>data.content_list</code> | <code>array</code> | 此搜索页返回的热门内容条目。 |
| <code>data.content_list[]</code> | <code>object</code> | 一条热门内容条目。 |
| <code>data.content_list[].id</code> | <code>string</code> | 以字符串返回的内容标识。 |
| <code>data.content_list[].object_type</code> | <code>integer</code> | 此条内容返回的对象类型代码。 |
| <code>data.content_list[].attribute_datas</code> | <code>object</code> | 此条内容返回的属性及指标。 |
| <code>data.content_list[].attribute_datas.item_title</code> | <code>string</code> | 内容标题，可以为空字符串。 |
| <code>data.content_list[].attribute_datas.item_create_time</code> | <code>string</code> | 内容创建时间，Unix 秒级时间戳，以字符串返回。 |
| <code>data.content_list[].attribute_datas.cover_image_uri</code> | <code>string</code> | 接口返回的封面图资源 URI。 |
| <code>data.content_list[].attribute_datas.core_user_id</code> | <code>string</code> | 内容属性中关联的作者账号标识。 |
| <code>data.content_list[].attribute_datas.is_star_item</code> | <code>string</code> | 以字符串返回的星图内容标记。 |
| <code>data.content_list[].attribute_datas.v2_first_tag_id</code> | <code>string</code> | 以字符串返回的内容一级标签标识。 |
| <code>data.content_list[].attribute_datas.v2_second_tag_id</code> | <code>string</code> | 以字符串返回的内容二级标签标识。 |
| <code>data.content_list[].attribute_datas.vv_all</code> | <code>string</code> | 以字符串返回的内容播放次数。 |
| <code>data.content_list[].attribute_datas.like_cnt_all</code> | <code>string</code> | 以字符串返回的内容点赞数。 |
| <code>data.content_list[].attribute_datas.comment_cnt_all</code> | <code>string</code> | 以字符串返回的内容评论数。 |
| <code>data.content_list[].attribute_datas.share_cnt_all</code> | <code>string</code> | 以字符串返回的内容分享数。 |
| <code>data.content_list[].attribute_datas.interact_cnt</code> | <code>string</code> | 以字符串返回的互动次数。已核对的回包中，此值等于点赞、评论和分享次数之和。 |
| <code>data.content_list[].attribute_datas.interact_rate</code> | <code>string</code> | 以小数比例文本返回的互动率。已核对的值与互动次数除以播放次数的结果近似一致。 |
| <code>data.content_list[].attribute_datas.finish_rate</code> | <code>string</code> | 以小数比例文本返回的完播率。 |
| <code>data.content_list[].attribute_datas.quality_score</code> | <code>string</code> | 接口以文本返回的内容质量分。 |
| <code>data.content_list[].attribute_datas.score</code> | <code>string</code> | 接口以文本返回的搜索结果分值。 |
| <code>data.content_list[].user_info</code> | <code>object</code> | 内容关联的作者资料。 |
| <code>data.content_list[].user_info.core_user_id</code> | <code>string</code> | 作者资料中返回的账号标识。 |
| <code>data.content_list[].user_info.name</code> | <code>string</code> | 内容作者的展示名称。 |
| <code>data.content_list[].user_info.avatar_url</code> | <code>string</code> | 作者头像链接。 |
| <code>data.content_list[].user_info.follower</code> | <code>string</code> | 以字符串返回的作者粉丝数。 |
| <code>data.content_list[].user_info.star_id</code> | <code>string</code> | 存在时返回的星图达人标识。 |

</div>

## 响应示例

<ApiExampleSection :api='JSON.parse("\"/api/douyin/hot-search/v1\"")' />

