---
title: "Douyin (TikTok China) Hot Search API (V1)"
description: "Searches Douyin (TikTok China) content with optional keyword, category, video-type, ranking, pagination, engagement, and creator-follower filters. Use it to support trend discovery and campaign research."
aiUsagePrompt: true
---

# Douyin \(TikTok China\) Hot Search API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/douyin/hot-search/v1\"")'
  :summary='JSON.parse("\"Hot Search (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/douyin-tiktok-china/hot-search-v1-en.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"Access token for this API service.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"keyword\",\"in\":\"query\",\"description\":\"Optional search keyword.\",\"required\":false,\"schema\":{\"type\":\"string\"}},{\"name\":\"contentType\",\"in\":\"query\",\"description\":\"Top-level content type. Only one content type can be selected.\\n\\nAvailable Values:\\n- `ALL`: All content types.\\n- `FASHION`: Fashion.\\n- `TECHNOLOGY`: Technology.\\n- `SCIENCE`: Science.\\n- `PHOTOGRAPHY`: Photography and videography.\\n- `FOOD`: Food.\\n- `MOTHER_BABY`: Mother and baby.\\n- `PARENTING`: Parenting.\\n- `DRAMA`: Drama.\\n- `GAME`: Game.\\n- `AUTOMOTIVE`: Automotive.\\n- `ANIMAL`: Animal.\\n- `TRAVEL`: Travel.\\n- `DANCE`: Dance.\\n- `TRADITIONAL_CULTURE`: Traditional culture.\\n- `ART`: Art.\\n- `SPORTS`: Sports.\\n- `MUSIC`: Music.\\n- `LIFE_RECORD`: Life records.\\n- `HOME_LIVING`: Home and living.\\n- `LEISURE_ENTERTAINMENT`: Leisure entertainment.\\n- `WORKPLACE`: Workplace.\\n- `AGRICULTURE`: Agriculture.\\n- `CASUAL`: Casual videos.\\n- `ACG`: Animation, comics, and games.\\n- `MOVIE`: Movie.\\n- `TV_SERIES`: TV series.\\n- `VARIETY_SHOW`: Variety show.\\n- `CELEBRITY`: Celebrity.\\n- `HUMANITIES_SOCIAL_SCIENCE`: Humanities and social science.\\n- `EDUCATION_CAMPUS`: Education and campus.\\n- `EMOTION`: Emotion.\\n- `FINANCE`: Finance.\\n- `PUBLIC_WELFARE`: Public welfare.\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"ALL\",\"description\":\"Douyin Hot Search content type.\",\"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\":\"Video type filter.\\n\\nAvailable Values:\\n- `ALL`: All video types.\\n- `XINGTU_VIDEO`: Xingtu commercial videos.\\n- `NATURAL_VIDEO`: Natural videos.\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"ALL\",\"description\":\"Douyin Hot Search video type.\",\"enum\":[\"ALL\",\"XINGTU_VIDEO\",\"NATURAL_VIDEO\"]}},{\"name\":\"sortType\",\"in\":\"query\",\"description\":\"Sorting criteria for hot content results.\\n\\nAvailable Values:\\n- `COMPREHENSIVE`: Comprehensive ranking.\\n- `HIGH_INTERACTION`: Highest interaction count.\\n- `HIGH_LIKE`: Highest like count.\\n- `HIGH_COMMENT`: Highest comment count.\\n- `HIGH_SHARE`: Highest share count.\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"COMPREHENSIVE\",\"description\":\"Douyin Hot Search sort type.\",\"enum\":[\"COMPREHENSIVE\",\"HIGH_INTERACTION\",\"HIGH_LIKE\",\"HIGH_COMMENT\",\"HIGH_SHARE\"]}},{\"name\":\"page\",\"in\":\"query\",\"description\":\"Page number (starting from 1). Page size is fixed at 10.\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int32\",\"default\":1}},{\"name\":\"likeCountMin\",\"in\":\"query\",\"description\":\"Minimum raw like count.\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"likeCountMax\",\"in\":\"query\",\"description\":\"Maximum raw like count.\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"commentCountMin\",\"in\":\"query\",\"description\":\"Minimum raw comment count.\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"commentCountMax\",\"in\":\"query\",\"description\":\"Maximum raw comment count.\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"shareCountMin\",\"in\":\"query\",\"description\":\"Minimum raw share count.\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"shareCountMax\",\"in\":\"query\",\"description\":\"Maximum raw share count.\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"interactionCountMin\",\"in\":\"query\",\"description\":\"Minimum raw interaction count.\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"interactionCountMax\",\"in\":\"query\",\"description\":\"Maximum raw interaction count.\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"followerCountMin\",\"in\":\"query\",\"description\":\"Minimum raw creator follower count.\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}},{\"name\":\"followerCountMax\",\"in\":\"query\",\"description\":\"Maximum raw creator follower count.\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int64\"}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":[\"object\",\"null\"],\"description\":\"Douyin hot-content search result with reported pagination and content attributes.\",\"properties\":{\"base_resp\":{\"type\":\"object\",\"description\":\"Search status information included in the result.\",\"properties\":{\"status_code\":{\"type\":\"integer\",\"description\":\"Status code reported for the content search.\"},\"status_message\":{\"type\":\"string\",\"description\":\"Status message reported for the content search. It can be empty.\"}}},\"pagination\":{\"type\":\"object\",\"description\":\"Pagination information reported for this search.\",\"properties\":{\"page\":{\"type\":\"integer\",\"description\":\"Page number reported for the returned results.\"},\"limit\":{\"type\":\"integer\",\"description\":\"Page size value reported for the search.\"},\"total_count\":{\"type\":\"integer\",\"description\":\"Total result count reported for the query.\"},\"has_more\":{\"type\":\"boolean\",\"description\":\"Whether the search reports that another page is available.\"}}},\"content_list\":{\"type\":\"array\",\"description\":\"Hot-content entries returned for this search page.\",\"items\":{\"type\":\"object\",\"description\":\"One hot-content entry.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Content identifier returned as a string.\"},\"object_type\":{\"type\":\"integer\",\"description\":\"Content object type code reported for this entry.\"},\"attribute_datas\":{\"type\":\"object\",\"description\":\"Reported attributes and metrics for the content entry.\",\"properties\":{\"item_title\":{\"type\":\"string\",\"description\":\"Content title. It can be empty.\"},\"item_create_time\":{\"type\":\"string\",\"description\":\"Content creation time as a Unix timestamp in seconds, encoded as a string.\"},\"cover_image_uri\":{\"type\":\"string\",\"description\":\"Resource URI reported for the cover image.\"},\"core_user_id\":{\"type\":\"string\",\"description\":\"Author account identifier attached to the content attributes.\"},\"is_star_item\":{\"type\":\"string\",\"description\":\"Xingtu content flag reported as a string.\"},\"v2_first_tag_id\":{\"type\":\"string\",\"description\":\"First-level content tag identifier reported as a string.\"},\"v2_second_tag_id\":{\"type\":\"string\",\"description\":\"Second-level content tag identifier reported as a string.\"},\"vv_all\":{\"type\":\"string\",\"description\":\"Play count reported for the content as a string.\"},\"like_cnt_all\":{\"type\":\"string\",\"description\":\"Like count reported for the content as a string.\"},\"comment_cnt_all\":{\"type\":\"string\",\"description\":\"Comment count reported for the content as a string.\"},\"share_cnt_all\":{\"type\":\"string\",\"description\":\"Share count reported for the content as a string.\"},\"interact_cnt\":{\"type\":\"string\",\"description\":\"Interaction count reported as a string. In checked results it equals the sum of likes, comments and shares.\"},\"interact_rate\":{\"type\":\"string\",\"description\":\"Interaction rate reported as decimal ratio text. Checked values approximately match interaction count divided by play count.\"},\"finish_rate\":{\"type\":\"string\",\"description\":\"Completion rate reported as decimal ratio text.\"},\"quality_score\":{\"type\":\"string\",\"description\":\"Content quality score reported as text.\"},\"score\":{\"type\":\"string\",\"description\":\"Score reported for the search result as text.\"}}},\"user_info\":{\"type\":\"object\",\"description\":\"Author profile information attached to the content.\",\"properties\":{\"core_user_id\":{\"type\":\"string\",\"description\":\"Author account identifier reported in the profile.\"},\"name\":{\"type\":\"string\",\"description\":\"Display name of the content author.\"},\"avatar_url\":{\"type\":\"string\",\"description\":\"Author profile avatar URL.\"},\"follower\":{\"type\":\"string\",\"description\":\"Follower count reported for the author as a string.\"},\"star_id\":{\"type\":\"string\",\"description\":\"Xingtu creator identifier when reported.\"}}}}}}}}}},\"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\":\"Invalid request parameters or body\",\"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\":\"Invalid or inactive access token\",\"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\":\"Permission denied\",\"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\":\"Request rate or daily quota limit exceeded\",\"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\":\"Internal server error\",\"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\":\"Service temporarily unavailable\",\"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\":\"Global production API (default)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

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

<p>Searches Douyin (TikTok China) content with optional keyword, category, video-type, ranking, pagination, engagement, and creator-follower filters. Use it to support trend discovery and campaign research.</p>

## Parameters

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

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Yes | - | Access token for this API service. |
| <code>keyword</code> | query | <code>string</code> | No | - | Optional search keyword. |
| <code>contentType</code> | query | <code>string</code> | No | <code>ALL</code> | Top-level content type. Only one content type can be selected.<br /><br><br>Available Values:<br /><br>- <code>ALL</code>: All content types.<br /><br>- <code>FASHION</code>: Fashion.<br /><br>- <code>TECHNOLOGY</code>: Technology.<br /><br>- <code>SCIENCE</code>: Science.<br /><br>- <code>PHOTOGRAPHY</code>: Photography and videography.<br /><br>- <code>FOOD</code>: Food.<br /><br>- <code>MOTHER_BABY</code>: Mother and baby.<br /><br>- <code>PARENTING</code>: Parenting.<br /><br>- <code>DRAMA</code>: Drama.<br /><br>- <code>GAME</code>: Game.<br /><br>- <code>AUTOMOTIVE</code>: Automotive.<br /><br>- <code>ANIMAL</code>: Animal.<br /><br>- <code>TRAVEL</code>: Travel.<br /><br>- <code>DANCE</code>: Dance.<br /><br>- <code>TRADITIONAL_CULTURE</code>: Traditional culture.<br /><br>- <code>ART</code>: Art.<br /><br>- <code>SPORTS</code>: Sports.<br /><br>- <code>MUSIC</code>: Music.<br /><br>- <code>LIFE_RECORD</code>: Life records.<br /><br>- <code>HOME_LIVING</code>: Home and living.<br /><br>- <code>LEISURE_ENTERTAINMENT</code>: Leisure entertainment.<br /><br>- <code>WORKPLACE</code>: Workplace.<br /><br>- <code>AGRICULTURE</code>: Agriculture.<br /><br>- <code>CASUAL</code>: Casual videos.<br /><br>- <code>ACG</code>: Animation, comics, and games.<br /><br>- <code>MOVIE</code>: Movie.<br /><br>- <code>TV_SERIES</code>: TV series.<br /><br>- <code>VARIETY_SHOW</code>: Variety show.<br /><br>- <code>CELEBRITY</code>: Celebrity.<br /><br>- <code>HUMANITIES_SOCIAL_SCIENCE</code>: Humanities and social science.<br /><br>- <code>EDUCATION_CAMPUS</code>: Education and campus.<br /><br>- <code>EMOTION</code>: Emotion.<br /><br>- <code>FINANCE</code>: Finance.<br /><br>- <code>PUBLIC_WELFARE</code>: Public welfare. |
| <code>videoType</code> | query | <code>string</code> | No | <code>ALL</code> | Video type filter.<br /><br><br>Available Values:<br /><br>- <code>ALL</code>: All video types.<br /><br>- <code>XINGTU_VIDEO</code>: Xingtu commercial videos.<br /><br>- <code>NATURAL_VIDEO</code>: Natural videos. |
| <code>sortType</code> | query | <code>string</code> | No | <code>COMPREHENSIVE</code> | Sorting criteria for hot content results.<br /><br><br>Available Values:<br /><br>- <code>COMPREHENSIVE</code>: Comprehensive ranking.<br /><br>- <code>HIGH_INTERACTION</code>: Highest interaction count.<br /><br>- <code>HIGH_LIKE</code>: Highest like count.<br /><br>- <code>HIGH_COMMENT</code>: Highest comment count.<br /><br>- <code>HIGH_SHARE</code>: Highest share count. |
| <code>page</code> | query | <code>integer</code> | No | <code>1</code> | Page number (starting from 1). Page size is fixed at 10. |
| <code>likeCountMin</code> | query | <code>integer</code> | No | - | Minimum raw like count. |
| <code>likeCountMax</code> | query | <code>integer</code> | No | - | Maximum raw like count. |
| <code>commentCountMin</code> | query | <code>integer</code> | No | - | Minimum raw comment count. |
| <code>commentCountMax</code> | query | <code>integer</code> | No | - | Maximum raw comment count. |
| <code>shareCountMin</code> | query | <code>integer</code> | No | - | Minimum raw share count. |
| <code>shareCountMax</code> | query | <code>integer</code> | No | - | Maximum raw share count. |
| <code>interactionCountMin</code> | query | <code>integer</code> | No | - | Minimum raw interaction count. |
| <code>interactionCountMax</code> | query | <code>integer</code> | No | - | Maximum raw interaction count. |
| <code>followerCountMin</code> | query | <code>integer</code> | No | - | Minimum raw creator follower count. |
| <code>followerCountMax</code> | query | <code>integer</code> | No | - | Maximum raw creator follower count. |

</div>

## Code Samples

::: 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 Prompt]
I want to use the "Hot Search (V1)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/douyin/hot-search/v1?token=YOUR_API_KEY
API Endpoint: BASE_URL + /api/douyin/hot-search/v1?token=YOUR_API_KEY
HTTP Method: GET
Authentication: Append the "token" query parameter to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/douyin-tiktok-china/hot-search-v1-en.json

Parameters:
- token (query): Access token for this API service. (Required)
- keyword (query): Optional search keyword.
- contentType (query): Top-level content type. Only one content type can be selected.

Available Values:
- `ALL`: All content types.
- `FASHION`: Fashion.
- `TECHNOLOGY`: Technology.
- `SCIENCE`: Science.
- `PHOTOGRAPHY`: Photography and videography.
- `FOOD`: Food.
- `MOTHER_BABY`: Mother and baby.
- `PARENTING`: Parenting.
- `DRAMA`: Drama.
- `GAME`: Game.
- `AUTOMOTIVE`: Automotive.
- `ANIMAL`: Animal.
- `TRAVEL`: Travel.
- `DANCE`: Dance.
- `TRADITIONAL_CULTURE`: Traditional culture.
- `ART`: Art.
- `SPORTS`: Sports.
- `MUSIC`: Music.
- `LIFE_RECORD`: Life records.
- `HOME_LIVING`: Home and living.
- `LEISURE_ENTERTAINMENT`: Leisure entertainment.
- `WORKPLACE`: Workplace.
- `AGRICULTURE`: Agriculture.
- `CASUAL`: Casual videos.
- `ACG`: Animation, comics, and games.
- `MOVIE`: Movie.
- `TV_SERIES`: TV series.
- `VARIETY_SHOW`: Variety show.
- `CELEBRITY`: Celebrity.
- `HUMANITIES_SOCIAL_SCIENCE`: Humanities and social science.
- `EDUCATION_CAMPUS`: Education and campus.
- `EMOTION`: Emotion.
- `FINANCE`: Finance.
- `PUBLIC_WELFARE`: Public welfare.
- videoType (query): Video type filter.

Available Values:
- `ALL`: All video types.
- `XINGTU_VIDEO`: Xingtu commercial videos.
- `NATURAL_VIDEO`: Natural videos.
- sortType (query): Sorting criteria for hot content results.

Available Values:
- `COMPREHENSIVE`: Comprehensive ranking.
- `HIGH_INTERACTION`: Highest interaction count.
- `HIGH_LIKE`: Highest like count.
- `HIGH_COMMENT`: Highest comment count.
- `HIGH_SHARE`: Highest share count.
- page (query): Page number (starting from 1). Page size is fixed at 10.
- likeCountMin (query): Minimum raw like count.
- likeCountMax (query): Maximum raw like count.
- commentCountMin (query): Minimum raw comment count.
- commentCountMax (query): Maximum raw comment count.
- shareCountMin (query): Minimum raw share count.
- shareCountMax (query): Maximum raw share count.
- interactionCountMin (query): Minimum raw interaction count.
- interactionCountMax (query): Maximum raw interaction count.
- followerCountMin (query): Minimum raw creator follower count.
- followerCountMax (query): Maximum raw creator follower count.

Return format: safely handle JSON or text according to the actual Content-Type.

Response Handling & Error Codes:
1. Business results should be determined by the "code" field in the response body (code 0 means success).
2. Timeout Recommendation: Set the request timeout to 120 seconds. If 120 seconds is too long for your use case, use at least 60 seconds, but a small number of requests may time out before receiving a result.
3. Business Code Reference:
   - 0: Success
   - 100: Invalid or Inactive Token
   - 301: Collection Failed. Please Retry.
   - 302: Rate Limit Exceeded
   - 303: Daily Quota Exceeded
   - 400: Invalid Parameters
   - 500: Internal Server Error
   - 600: Permission Denied
   - 601: Insufficient Balance
   - 602: Token Budget Exceeded
4. Code 601 means the shared account balance is insufficient. Code 602 means the current API token's own cumulative budget limit has been reached. Token budget limits do not transfer funds out of the shared account balance.

Please help me write a script in my preferred programming language to call this API and handle the response.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Provided by 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"; // Provided by 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"; // Provided by 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" // Provided by 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'; // Provided by 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-en.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI Definition (JSON)]</a>
</div>

## Response Fields

Key fields in a successful response (`code = 0`).

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

| Field path | Type | Description |
| --- | --- | --- |
| <code>data</code> | <code>object &#124; null</code> | Douyin hot-content search result with reported pagination and content attributes. |
| <code>data.base_resp</code> | <code>object</code> | Search status information included in the result. |
| <code>data.base_resp.status_code</code> | <code>integer</code> | Status code reported for the content search. |
| <code>data.base_resp.status_message</code> | <code>string</code> | Status message reported for the content search. It can be empty. |
| <code>data.pagination</code> | <code>object</code> | Pagination information reported for this search. |
| <code>data.pagination.page</code> | <code>integer</code> | Page number reported for the returned results. |
| <code>data.pagination.limit</code> | <code>integer</code> | Page size value reported for the search. |
| <code>data.pagination.total_count</code> | <code>integer</code> | Total result count reported for the query. |
| <code>data.pagination.has_more</code> | <code>boolean</code> | Whether the search reports that another page is available. |
| <code>data.content_list</code> | <code>array</code> | Hot-content entries returned for this search page. |
| <code>data.content_list[]</code> | <code>object</code> | One hot-content entry. |
| <code>data.content_list[].id</code> | <code>string</code> | Content identifier returned as a string. |
| <code>data.content_list[].object_type</code> | <code>integer</code> | Content object type code reported for this entry. |
| <code>data.content_list[].attribute_datas</code> | <code>object</code> | Reported attributes and metrics for the content entry. |
| <code>data.content_list[].attribute_datas.item_title</code> | <code>string</code> | Content title. It can be empty. |
| <code>data.content_list[].attribute_datas.item_create_time</code> | <code>string</code> | Content creation time as a Unix timestamp in seconds, encoded as a string. |
| <code>data.content_list[].attribute_datas.cover_image_uri</code> | <code>string</code> | Resource URI reported for the cover image. |
| <code>data.content_list[].attribute_datas.core_user_id</code> | <code>string</code> | Author account identifier attached to the content attributes. |
| <code>data.content_list[].attribute_datas.is_star_item</code> | <code>string</code> | Xingtu content flag reported as a string. |
| <code>data.content_list[].attribute_datas.v2_first_tag_id</code> | <code>string</code> | First-level content tag identifier reported as a string. |
| <code>data.content_list[].attribute_datas.v2_second_tag_id</code> | <code>string</code> | Second-level content tag identifier reported as a string. |
| <code>data.content_list[].attribute_datas.vv_all</code> | <code>string</code> | Play count reported for the content as a string. |
| <code>data.content_list[].attribute_datas.like_cnt_all</code> | <code>string</code> | Like count reported for the content as a string. |
| <code>data.content_list[].attribute_datas.comment_cnt_all</code> | <code>string</code> | Comment count reported for the content as a string. |
| <code>data.content_list[].attribute_datas.share_cnt_all</code> | <code>string</code> | Share count reported for the content as a string. |
| <code>data.content_list[].attribute_datas.interact_cnt</code> | <code>string</code> | Interaction count reported as a string. In checked results it equals the sum of likes, comments and shares. |
| <code>data.content_list[].attribute_datas.interact_rate</code> | <code>string</code> | Interaction rate reported as decimal ratio text. Checked values approximately match interaction count divided by play count. |
| <code>data.content_list[].attribute_datas.finish_rate</code> | <code>string</code> | Completion rate reported as decimal ratio text. |
| <code>data.content_list[].attribute_datas.quality_score</code> | <code>string</code> | Content quality score reported as text. |
| <code>data.content_list[].attribute_datas.score</code> | <code>string</code> | Score reported for the search result as text. |
| <code>data.content_list[].user_info</code> | <code>object</code> | Author profile information attached to the content. |
| <code>data.content_list[].user_info.core_user_id</code> | <code>string</code> | Author account identifier reported in the profile. |
| <code>data.content_list[].user_info.name</code> | <code>string</code> | Display name of the content author. |
| <code>data.content_list[].user_info.avatar_url</code> | <code>string</code> | Author profile avatar URL. |
| <code>data.content_list[].user_info.follower</code> | <code>string</code> | Follower count reported for the author as a string. |
| <code>data.content_list[].user_info.star_id</code> | <code>string</code> | Xingtu creator identifier when reported. |

</div>

## Response Example

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

