TikTok API for AI agents
Pull TikTok profiles, videos, comments, hashtags, music and trending feeds as unified JSON — every endpoint tested against the live API.
Using ChatGPT, Claude Code or another client? See the setup steps
Use TikTok records as evidence, not glue code.
UnifAPI keeps the public TikTok surface discoverable through MCP and callable over HTTP. Agents can inspect the schema, fetch only the records needed for the task, and return the result with request, pagination, and billing metadata intact.
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.
Agents & Skills that use the TikTok API
You rarely call an API by hand. These prebuilt agents and skills already read TikTok records inside Claude or Codex — start from one of them, or call the endpoints below yourself.
Agents
20 ready-to-call endpoints
Get TikTok recommendation videos
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.
Get a TikTok hashtag by 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.
List videos tagged with a TikTok hashtag
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.
Get a TikTok music track by 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.
List videos using a TikTok music track
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.
General TikTok search (returns videos)
Returns TikTok videos for the keyword `q`. Use type-specific endpoints when needed.
Search TikTok hashtags by keyword
Search TikTok hashtags by keyword, returning matching hashtags with their metadata as a cursor-paginated list. Useful for trend discovery and planning hashtag strategy.
Search TikTok users by keyword
Search TikTok accounts by keyword, returning matching public profiles as a cursor-paginated list. Useful for creator discovery, influencer research, and competitive account mapping.
Search TikTok videos by keyword
Returns a paginated list of TikTok videos matching the keyword `q`. Use `next_cursor` from the response as the next request's `cursor`.
Get a TikTok user profile
Returns the canonicalized public profile for the TikTok user with the given sec_uid, numeric user id, or handle.
List a TikTok user's 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.
List users a TikTok user is 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.
List videos liked by a TikTok user
Returns a paginated list of videos the user has liked where the user has made their likes public.
List videos posted by a TikTok user
Returns a paginated list of public videos posted by the user. Use `next_cursor` from the response as the next request's `cursor`.
Resolve a TikTok username to a user id
Accepts a public TikTok username (handle) and returns the user's stable opaque id for other /tiktok/users/{id} endpoints.
Get a TikTok video by ID
Returns canonicalized metadata for a single TikTok video. The `{id}` must be the numeric TikTok video id.
List top-level comments on a TikTok video
Returns a paginated list of top-level comments on the given video. Use `next_cursor` from the response as the next request's `cursor`.
List replies to a TikTok comment
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.
Batch-fetch TikTok videos by ID
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.
Resolve a TikTok share URL to a video
Accepts a TikTok share URL (long or short / vm.tiktok.com) and returns the canonical Video object.
APIs to pair with TikTok
LinkedIn API
People, companies, posts, jobs, ads, search
Amazon API
Creator storefronts
Instagram API
Profiles, posts, reels, stories, comments, audio, search
Linktree API
Link-in-bio pages
YouTube API
Channels, videos, comments, captions, playlists, hashtags, search, trending
Rumble API
Videos, channels, search, comments, transcripts