How do I get more than 30 items?

How do I get more than 30 items?

Usually you can get about 30 items from a API request (excluding the search endpoint which returns 12). This is not a limit set by us, but by TikTok.
 
In order to collect more items you have to use the iterating parameters, such as cursor or offset. Iteration parameters are a common practice when working with data that has millions of items. 
 
The next iterating parameter is returned in every response and should be included in the following request to get the new items (A loop). It works like a pagination.
 
We have implemented a easy looping method to do this on the Javascript/Python libraries, check out the code examples in our documentation.

    • Related Articles

    • How to collect posts for a topic or identify industry trends?

      We have multiple endpoints which you can use in combination in order to collect posts for a specific topic or identify industry trends.  Here are our recommendations on things you can do: Getting feed posts (For You) from an authenticated account ...
    • How can I get access to special endpoints?

      Interaction endpoints such as Follow, Like, Comment are only available to trusted clients in order to prevent abuse and keep the service working properly. If you want access to these endpoints please send us an email or a chat request and include the ...
    • How to download videos?

      Endpoints for getting posts such as Get feed posts or the Get video information endpoint return the video(s) information in the JSON response object.  You can download the video file using the link at the downloadAddr or playAddr field. Example ...
    • How can I stream Live videos?

      You can easily get the Stream Key and Server parameters using the Start Live endpoint if you meet certain requirements by TikTok. The account has at least 1000 followers and Live streaming is enabled Third-Party Live streaming is enabled ...
    • Getting search results from an user session

      When you call Public endpoints such as the Search endpoint, it will return results from a random unauthenticated session. If you want to get more uniform results and tailored for a specific user, it is possible to call the endpoint from an user scope ...