Skip to content

Latest commit

 

History

History
116 lines (67 loc) · 3.35 KB

HotsearchApi.md

File metadata and controls

116 lines (67 loc) · 3.35 KB

\HotsearchApi

All URIs are relative to https://open.douyin.com

Method HTTP request Description
HotsearchSentences Get /hotsearch/sentences 获取实时热点词
HotsearchTrendingSentences Get /hotsearch/trending/sentences 获取上升词
HotsearchVideos Get /hotsearch/videos 获取热点词聚合的视频

HotsearchSentences

HotsearchSentencesRsp HotsearchSentences(ctx, accessToken)

获取实时热点词

获取实时热点词

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accessToken string 调用/oauth/access_token/生成的token,此token需要用户授权。

Return type

HotsearchSentencesRsp

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

HotsearchTrendingSentences

HotsearchTrendingSentencesRsp HotsearchTrendingSentences(ctx, accessToken, cursor, count)

获取上升词

获取上升词

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accessToken string 调用/oauth/access_token/生成的token,此token需要用户授权。
cursor int64 分页游标, 第一页请求cursor是0, response中会返回下一页请求用到的cursor, 同时response还会返回has_more来表明是否有更多的数据。
count int64 每页数量

Return type

HotsearchTrendingSentencesRsp

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

HotsearchVideos

HotsearchVideosRsp HotsearchVideos(ctx, accessToken, hotSentence)

获取热点词聚合的视频

获取热点词聚合的视频

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accessToken string 调用/oauth/access_token/生成的token,此token需要用户授权。
hotSentence string 热点词

Return type

HotsearchVideosRsp

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]