Overview
Discovery API is a tool that provides top hashtags and music tracks on TikTok within a specific time window, helping advertisers understand what is popular on TikTok so they can create content around those topics. Along with the list of top hashtags and tracks, users can get insights and metrics related to each hashtag or track that can be used for campaign planning, product design, and ad optimization.
With developers in mind, we make accessing and using our API possible through only a few steps. Below are the steps needed to take before making your first API call and some useful resources to help you quickly integrate with Discovery API.
Step-by-step workflow
4 & 5. Authorization & Authentication.
The specific steps for authorization and authentication depend on which endpoint you want to use:
- For the endpoints related to hashtags (/discovery/trending_list/, /discovery/detail/, and /discovery/video_list/), follow these guides:
- Obtain authorization from an ad account
- Generate an advertiser access token
- For the endpoints related to tracks (/discovery/cml/trending_list/ and /discovery/cml/video_list/), follow these guides:
- Obtain authorization from a TikTok account
- Generate a TikTok account access token
6. Make your first API call.