---
title: "TikTok API: Official Options and Public Trend Data"
description: "TikTok's Research API is for vetted researchers; Display and Content Posting APIs act for signed-in users. Trend endpoints cover hashtags at 1 credit."
url: https://perceptlayer.com/blog/tiktok-api-trend-data
---

[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)

# TikTok API: Official Options and Public Trend Data

24 Oct 2026 Perceptlayer 6 min read

TikTok has several official APIs, and each serves a narrow audience. The Research API gives public-content data to approved non-commercial researchers; the Display API and Content Posting API let an app read or post for a TikTok user who signs in; the Commercial Content API covers ads. None of them is a general data feed for a company that wants to follow what's trending. For that, aggregate trend endpoints return trending hashtags by country, hashtag ("challenge") details and posts, and music, at 1 credit a call. This post compares the routes and says which fits which job.

## Key takeaways

-   The TikTok Research API is for academic institutions in the US, EEA, UK, Canada or Switzerland and some not-for-profit research bodies; applicants need independence from commercial interests and a research proposal.
-   The Display API reads a signed-in user's profile and public videos with scopes such as `user.info.basic` and `video.list`; the Content Posting API posts for users, and unaudited apps can only post privately.
-   `GET /v1/tiktok/trending-hashtags` takes a `country_code` and an optional `time_range` of `7` or `30` days; `challenges-search`, `challenges-posts` and `music-posts` follow a hashtag or sound.
-   All TikTok endpoints in the catalogue are restricted: accept the restricted-endpoint terms first, use them for public and aggregate data, and don't profile individuals.

## What official TikTok APIs are there, and who are they for?

TikTok for Developers offers four API families, each tied to a specific kind of user: researchers, apps acting for signed-in users, and ads transparency. Matching your job to one of them is the first step, because most commercial analytics jobs, such as a brand tracking trends across a market, fit none of them.

| API | What it does | Who can use it |
| --- | --- | --- |
| Research API | Public videos, comments and accounts for research | Approved non-commercial researchers |
| Display API | Read a signed-in user's profile and public videos | Apps the user authorises through Login Kit |
| Content Posting API | Post videos and photos for a signed-in user | Apps the user authorises; private-only until audited |
| Commercial Content API | Ads and commercial content | Approved applicants; a research client is issued on approval |

The Research API is the closest thing to a data feed, and it's deliberately limited. TikTok lists eligible applicants as academic institutions in the US, EEA, UK, Canada or Switzerland and not-for-profit or independent research bodies in the EU, and asks for demonstrated expertise, independence from commercial interests, a research proposal, data security commitments and ethical review ( [TikTok Research Tools](https://developers.tiktok.com/products/research-api/), 2026). Brands, agencies and analytics startups don't qualify.

The Display API reads data only for users who sign in and grant scopes: `user.info.basic` for the basic profile and `video.list` for that user's public videos ( [TikTok scopes reference](https://developers.tiktok.com/docs/en/tiktok-api-scopes), 2026). The Content Posting API publishes for signed-in users; TikTok's guidelines say content posted by unaudited clients is restricted to private viewing until the app passes an audit ( [Content Sharing Guidelines](https://developers.tiktok.com/docs/en/content-sharing-guidelines), 2026). Both are the right tools for apps built around TikTok users.

## What do the trend endpoints return?

The catalogue's TikTok API has 29 endpoints, all `GET`, all 1 credit per successful call; this post uses the aggregate ones, which describe what's popular rather than who posted it. Failed calls cost nothing and return `X-Credits-Used: 0`. You authenticate with one API key in the `X-API-Key` header.

| Endpoint | Required | Optional | Use |
| --- | --- | --- | --- |
| `GET /v1/tiktok/trending-hashtags` | `country_code` (2 characters) | `time_range`: `7` or `30` | What's trending in a country |
| `GET /v1/tiktok/challenges-search` | `keywords` | `count`, `cursor` | Find hashtags on a topic |
| `GET /v1/tiktok/challenges-details` | `challenge_id` or `challenge_name` |  | One hashtag's details |
| `GET /v1/tiktok/challenges-posts` | `challenge_id` or `challenge_name` | `region`, `count`, `cursor` | Posts under a hashtag |
| `GET /v1/tiktok/music-details` | `url` |  | One sound's details |
| `GET /v1/tiktok/music-posts` | `music_id` | `count`, `cursor` | Posts using a sound |
| `GET /v1/tiktok/feed-search` | `keywords` | `region`, `publish_time`, `sort_type`, `count`, `cursor` | Posts matching a keyword |
| `GET /v1/tiktok/regions` |  |  | Supported region codes |

The catalogue's example call searches hashtags:

```bash
curl "https://api.perceptlayer.com/v1/tiktok/challenges-search?keywords=cosplay&count=10&cursor=0" \
  -H "X-API-Key: $API_KEY"
```

And trending hashtags in the US over 7 days:

```bash
curl "https://api.perceptlayer.com/v1/tiktok/trending-hashtags?country_code=US&time_range=7" \
  -H "X-API-Key: $API_KEY"
```

We didn't run these requests, and we haven't recorded a response from the TikTok endpoints yet, so this post doesn't show one. Run them in the playground on the [TikTok API page](https://perceptlayer.com/apis/tiktok) to see the fields, and check `regions` for the codes `region` accepts.

### What are the terms for these endpoints?

Every TikTok endpoint in the catalogue is a restricted endpoint. They work after you accept the [restricted-endpoint terms](https://perceptlayer.com/legal/restricted-endpoints) in your dashboard; until then a call returns `restricted_endpoint` (403). Use them for public content and aggregate analysis: which hashtags and sounds are rising, how much a topic is posted about. Don't build profiles of individual people, track specific users, or use the data to contact anyone. The catalogue also has user-level endpoints; this post doesn't cover them, for that reason. Data is collected from publicly available sources and returned as found at the time of the call.

## How do the two routes compare?

The routes don't really compete: they serve different people. The official APIs are for researchers who qualify and for apps acting for signed-in users, and they cost nothing within TikTok's terms. The trend endpoints are for teams that want public, aggregate signals, such as rising hashtags in a market, without a research affiliation or a user signing in.

|  | Research API | Display / Content Posting APIs | Trend endpoints |
| --- | --- | --- | --- |
| Access | Application; non-commercial researchers only | App review; each user signs in | One API key, after accepting the restricted terms |
| Data | Public videos, comments, accounts for research | One signed-in user's profile and videos; posting | Trending hashtags, hashtag and sound posts, keyword search |
| Commercial use | No | Yes, within TikTok's terms | Yes, within the restricted-endpoint terms |
| Write actions | No | Posting (private until audited) | No |
| Cost | No charge | No charge | 1 credit per successful call |

### What does tracking trends cost?

Cost follows calls. Checking trending hashtags in 10 countries daily is 10 × 30 = 300 credits a month; the 100 free credits on signup cover the first 10 days. Adding one page of posts for each of the top 20 hashtags in each country is 10 × 20 × 30 = 6,000 more, so 6,300 in all, inside the Starter pack's 10,000. A weekly 30-day snapshot ( `time_range=30`) in the same 10 countries is 40 credits a month. See [pricing](https://perceptlayer.com/pricing) for what credits cost.

## Which should you use?

Start from who you are and what you need, because eligibility decides most of it: researchers have a free official route, apps for creators have another, and commercial trend tracking has neither. If the job needs data about specific people, stop there; none of these routes is for that. The verdicts per use case:

-   **Academic research on TikTok content**: apply for the Research API. It's built for that, covers comments and accounts under research terms, and costs nothing.
-   **An app where creators sign in** (a scheduler, an analytics dashboard for a creator's own account): the Display and Content Posting APIs, with Login Kit.
-   **Brand or agency trend tracking** (which hashtags and sounds are rising in a market): the trend endpoints, under the restricted-endpoint terms, aggregated by hashtag, sound and country.
-   **Feeding trends to an AI agent or a content-planning tool**: the trend endpoints through MCP; the agent finds them with `search_endpoints` and spends credits only on successful calls. [Build a Market Research Agent with Search and Trends Data](https://perceptlayer.com/blog/market-research-agent-search-trends) shows the pattern.
-   **Monitoring what specific people post**: none of these. That's profiling individuals, which the restricted-endpoint terms don't allow.

To see the data, accept the restricted-endpoint terms in your dashboard, then run `trending-hashtags` for your market in the playground on the [TikTok API page](https://perceptlayer.com/apis/tiktok). Other social sources are under [Social media](https://perceptlayer.com/verticals/social). To start, [get a free API key](https://perceptlayer.com/signup).

## APIs in this post

-   [TikTok **1 credit per call** · 31 endpoints](https://perceptlayer.com/apis/tiktok)

## Frequently asked questions

### Does TikTok have a public API?

Not a general one. TikTok's official APIs serve approved researchers (Research API), apps acting for signed-in users (Display and Content Posting APIs) and ads transparency (Commercial Content API). There's no self-serve feed of public TikTok data for businesses; trend endpoints such as `trending-hashtags` fill that gap at 1 credit per call.

### How do I get access to the TikTok Research API?

Create a TikTok for Developers account with a professional email and submit the research application. TikTok asks for an eligible institution, a research proposal, independence from commercial interests, data security commitments and ethical review. Academic access covers the US, EEA, UK, Canada and Switzerland, with separate routes for some not-for-profits and EU vetted researchers.

### Can I get trending TikTok hashtags by country?

Yes. `GET /v1/tiktok/trending-hashtags` takes a two-character `country_code` and an optional `time_range` of `7` or `30` days, for 1 credit per successful call. Follow a hashtag with `challenges-details` and `challenges-posts`. It's a restricted endpoint, so accept the restricted-endpoint terms first.

### Is it legal to collect TikTok data?

It depends on the data, the purpose and where you are. Aggregate, public signals such as trending hashtags carry the least risk; data about identifiable people brings privacy law into play. Use the restricted endpoints only within their terms, don't profile individuals, and get legal advice for commercial data products.

### What happens if a TikTok call fails?

You get an HTTP status and a JSON body with a `code`, a `message` and a `request_id`, and you aren't charged. `restricted_endpoint` (403) means the terms haven't been accepted yet; `invalid_parameters` (422) usually means a missing required parameter such as `country_code`. The [errors docs](https://docs.perceptlayer.com/errors) list every code.

tiktok tiktok api social media data trends research api

## More from the blog

1.  [API guides](https://perceptlayer.com/blog/category/api-guides) 4 Nov 2026 Perceptlayer 9 min read
    
    ## [TikTok Scraper or API: Hashtag, Sound and Trend Data](https://perceptlayer.com/blog/tiktok-scraper-vs-api)
    
    A TikTok scraper next to 31 TikTok endpoints at 1 credit a call: trending hashtags by country, hashtag and sound posts, and 2 credits per hashtag tracked a day.
    
2.  [API guides](https://perceptlayer.com/blog/category/api-guides) 3 Nov 2026 Perceptlayer 8 min read
    
    ## [Twitter Scraper or X API: Options for Public Data](https://perceptlayer.com/blog/twitter-scraper-vs-api)
    
    Scraping X, X's own developer API, or 20 X endpoints at 1 credit a call for public tweets, threads and trends: upkeep, terms and a verdict per use case.
    
3.  [API guides](https://perceptlayer.com/blog/category/api-guides) 24 Nov 2026 Perceptlayer 8 min read
    
    ## [Mastodon API: Public Posts and Hashtags as JSON](https://perceptlayer.com/blog/mastodon-api-json)
    
    Get public Mastodon hashtag timelines as JSON: language, created\_at, reblogs\_count and tags per post, with a pagination cursor. 1 credit per call.
