# TikTok API — UnifAPI

> Videos, creators, comments, hashtags, music. Pull TikTok profiles, videos, comments, hashtags, music and trending feeds as unified JSON — every endpoint tested against the live API.

- Category: Social platforms
- API base URL: https://api.unifapi.com
- Auth: `Authorization: Bearer <UnifAPI API key>` (OAuth recommended for MCP clients)
- MCP server: https://mcp.unifapi.com
- Developer docs: https://docs.unifapi.com/api/tiktok
- OpenAPI spec: https://unifapi.com/openapi.json
- HTML page: https://unifapi.com/apis/tiktok
- Full catalog: https://unifapi.com/apis.md

## Agent workflows

- Analyze public TikTok videos, creators, comments, hashtags, music, feeds, and search results for creator and trend workflows.
- Power KOL pricing, campaign vetting, and content discovery Skills with canonical video, user, music, and hashtag records.
- Resolve TikTok URLs or ids into normalized data that an agent can rank, cite, and compare across other platforms.

## Endpoints (20)

Every endpoint returns the UnifAPI JSON envelope (`request_id`, `data`, `pagination` on lists, `billing`) and bills max(records × credits per record, minimum) in credits.

### Get TikTok recommendation videos

`POST /tiktok/feed/recommended`

Return a batch of videos from TikTok's recommendation feed for a given region. Useful for sampling trending and algorithmically surfaced content across a market.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Details: https://unifapi.com/apis/tiktok/feed/recommended/post
- Docs: https://docs.unifapi.com/api/tiktok/feed/recommended/post

### Get a TikTok hashtag by ID

`GET /tiktok/hashtags/{id}`

Return a TikTok hashtag (challenge) by its numeric ID, including its title, description, and aggregate view count. Useful for sizing a hashtag's reach before pulling its videos.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Required: `id` (path)
- Details: https://unifapi.com/apis/tiktok/hashtags/id/get
- Docs: https://docs.unifapi.com/api/tiktok/hashtags/id/get

### List videos tagged with a TikTok hashtag

`GET /tiktok/hashtags/{id}/videos`

Return the videos tagged with a given TikTok hashtag, by hashtag ID, as a cursor-paginated list. Useful for tracking trend participation and collecting user-generated content around a campaign.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Required: `id` (path)
- Details: https://unifapi.com/apis/tiktok/hashtags/id/videos/get
- Docs: https://docs.unifapi.com/api/tiktok/hashtags/id/videos/get

### Get a TikTok music track by ID

`GET /tiktok/music/{id}`

Return a TikTok sound (music track) by its numeric ID, including title, author, and usage stats. Useful for sound-trend research and identifying the audio driving a trend.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Required: `id` (path)
- Details: https://unifapi.com/apis/tiktok/music/id/get
- Docs: https://docs.unifapi.com/api/tiktok/music/id/get

### List videos using a TikTok music track

`GET /tiktok/music/{id}/videos`

Return the videos that use a given TikTok sound, by music ID, as a cursor-paginated list. Useful for measuring how a sound is spreading and finding the creators who adopted it.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Required: `id` (path)
- Details: https://unifapi.com/apis/tiktok/music/id/videos/get
- Docs: https://docs.unifapi.com/api/tiktok/music/id/videos/get

### General TikTok search (returns videos)

`GET /tiktok/search`

Returns TikTok videos for the keyword `q`. Use type-specific endpoints when needed.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Required: `q` (query)
- Details: https://unifapi.com/apis/tiktok/search/get
- Docs: https://docs.unifapi.com/api/tiktok/search/get

### Search TikTok hashtags by keyword

`GET /tiktok/search/hashtags`

Search TikTok hashtags by keyword, returning matching hashtags with their metadata as a cursor-paginated list. Useful for trend discovery and planning hashtag strategy.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Required: `q` (query)
- Details: https://unifapi.com/apis/tiktok/search/hashtags/get
- Docs: https://docs.unifapi.com/api/tiktok/search/hashtags/get

### Search TikTok users by keyword

`GET /tiktok/search/users`

Search TikTok accounts by keyword, returning matching public profiles as a cursor-paginated list. Useful for creator discovery, influencer research, and competitive account mapping.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Required: `q` (query)
- Details: https://unifapi.com/apis/tiktok/search/users/get
- Docs: https://docs.unifapi.com/api/tiktok/search/users/get

### Search TikTok videos by keyword

`GET /tiktok/search/videos`

Returns a paginated list of TikTok videos matching the keyword `q`. Use `next_cursor` from the response as the next request's `cursor`.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Required: `q` (query)
- Details: https://unifapi.com/apis/tiktok/search/videos/get
- Docs: https://docs.unifapi.com/api/tiktok/search/videos/get

### Get a TikTok user profile

`GET /tiktok/users/{id}`

Returns the canonicalized public profile for the TikTok user with the given sec_uid, numeric user id, or handle.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Required: `id` (path)
- Details: https://unifapi.com/apis/tiktok/users/id/get
- Docs: https://docs.unifapi.com/api/tiktok/users/id/get

### List a TikTok user's followers

`GET /tiktok/users/{id}/followers`

Return a paginated list of the accounts that follow a given TikTok user, identified by sec_uid, numeric ID, or handle. Useful for audience analysis and mapping a creator's following.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Required: `id` (path)
- Details: https://unifapi.com/apis/tiktok/users/id/followers/get
- Docs: https://docs.unifapi.com/api/tiktok/users/id/followers/get

### List users a TikTok user is following

`GET /tiktok/users/{id}/following`

Return a paginated list of the accounts a given TikTok user follows, identified by sec_uid, numeric ID, or handle. Returns empty when the user hides their following list — useful for mapping a creator's interest graph.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Required: `id` (path)
- Details: https://unifapi.com/apis/tiktok/users/id/following/get
- Docs: https://docs.unifapi.com/api/tiktok/users/id/following/get

### List videos liked by a TikTok user

`GET /tiktok/users/{id}/likes`

Returns a paginated list of videos the user has liked where the user has made their likes public.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Required: `id` (path)
- Details: https://unifapi.com/apis/tiktok/users/id/likes/get
- Docs: https://docs.unifapi.com/api/tiktok/users/id/likes/get

### List videos posted by a TikTok user

`GET /tiktok/users/{id}/videos`

Returns a paginated list of public videos posted by the user. Use `next_cursor` from the response as the next request's `cursor`.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Required: `id` (path)
- Details: https://unifapi.com/apis/tiktok/users/id/videos/get
- Docs: https://docs.unifapi.com/api/tiktok/users/id/videos/get

### Resolve a TikTok username to a user id

`GET /tiktok/users/resolve`

Accepts a public TikTok username (handle) and returns the user's stable opaque id for other /tiktok/users/{id} endpoints.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Required: `username` (query)
- Details: https://unifapi.com/apis/tiktok/users/resolve/get
- Docs: https://docs.unifapi.com/api/tiktok/users/resolve/get

### Get a TikTok video by ID

`GET /tiktok/videos/{id}`

Returns canonicalized metadata for a single TikTok video. The `{id}` must be the numeric TikTok video id.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Required: `id` (path)
- Details: https://unifapi.com/apis/tiktok/videos/id/get
- Docs: https://docs.unifapi.com/api/tiktok/videos/id/get

### List top-level comments on a TikTok video

`GET /tiktok/videos/{id}/comments`

Returns a paginated list of top-level comments on the given video. Use `next_cursor` from the response as the next request's `cursor`.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Required: `id` (path)
- Details: https://unifapi.com/apis/tiktok/videos/id/comments/get
- Docs: https://docs.unifapi.com/api/tiktok/videos/id/comments/get

### List replies to a TikTok comment

`GET /tiktok/videos/{id}/comments/{comment_id}/replies`

Return the replies to a specific comment on a TikTok video, identified by the numeric video ID and comment ID, as a cursor-paginated list. Useful for following threaded conversations and analyzing audience discussion.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Required: `id` (path), `comment_id` (path)
- Details: https://unifapi.com/apis/tiktok/videos/id/comments/comment_id/replies/get
- Docs: https://docs.unifapi.com/api/tiktok/videos/id/comments/comment_id/replies/get

### Batch-fetch TikTok videos by ID

`POST /tiktok/videos/batch`

Return canonicalized metadata — author, captions, sound, and engagement counts — for up to 20 TikTok videos in one request, by numeric video ID. Useful for hydrating a set of videos without one call each.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Details: https://unifapi.com/apis/tiktok/videos/batch/post
- Docs: https://docs.unifapi.com/api/tiktok/videos/batch/post

### Resolve a TikTok share URL to a video

`GET /tiktok/videos/resolve`

Accepts a TikTok share URL (long or short / vm.tiktok.com) and returns the canonical Video object.

- Price: 1 credit per record, minimum 1 credit ($0.001) per call
- Required: `url` (query)
- Details: https://unifapi.com/apis/tiktok/videos/resolve/get
- Docs: https://docs.unifapi.com/api/tiktok/videos/resolve/get

## Guides

- [Free TikTok viewer](https://unifapi.com/tools/tiktok-viewer) — See any public TikTok profile and its latest videos with views and likes, free with no login.
- [Free TikTok followers viewer](https://unifapi.com/tools/tiktok-followers-viewer) — See who follows any public TikTok account and who it follows, free with no login.

## Related APIs

- [LinkedIn API](https://unifapi.com/apis/linkedin/index.md) — People, companies, posts, jobs, ads, search
- [Amazon API](https://unifapi.com/apis/amazon/index.md) — Creator storefronts
- [Instagram API](https://unifapi.com/apis/instagram/index.md) — Profiles, posts, reels, stories, comments, audio, search
- [Linktree API](https://unifapi.com/apis/linktree/index.md) — Link-in-bio pages
- [YouTube API](https://unifapi.com/apis/youtube/index.md) — Channels, videos, comments, captions, playlists, hashtags, search, trending
- [Rumble API](https://unifapi.com/apis/rumble/index.md) — Videos, channels, search, comments, transcripts
