TikTok connector

TikTok Scraper API for Videos, Comments, and Trend Research

The SurfSense TikTok scraper extracts public videos by hashtag, creator profile, or URL, plus comment threads and trending feeds, without TikTok's approval-gated Research API. Give your AI agents a live feed of what your market watches and shares, so you catch a trend while it is still rising.

agent · surfsense

$

tiktok.scrape({ hashtags: ["mealprep"], max_items: 25 })
  • 5 high-protein lunches under 400 cals@fitmeals · 2.1M plays · 184K likesbreakout
  • The $20 weekly meal prep everyone's copying@budgetbites · 980K plays · 72K likesrising
  • POV: your fridge after Sunday meal prep@cleaneats · 640K plays · 51K likeshigh engagement

25 videos · 8.4M plays · surfaced in 3.2s

What you can extract from TikTok

Every TikTok scraper call returns structured items. Scrape videos from a hashtag, creator profile, or video URL, or switch verbs to pull a video's comments, discover accounts by keyword, or fetch the current trending feed.

Videos

Caption text, canonical web URL, duration, and cover image for each TikTok video.

Engagement

Play, like, comment, share, and save counts, the signal for what is breaking out.

Authors and profiles

Creator handle, nickname, follower and heart counts, and verified status.

Comments

Public comment threads on any video URL, so you can read audience reaction beyond vanity views.

Music

Track name, artist, and whether the sound is original, the seed of a trend.

Hashtags

Every hashtag on a video, so you can map a topic cluster or campaign.

What teams do with the TikTok scraper API

Trend and hashtag monitoring

Use the TikTok hashtag scraper to track a topic and feed the stream to an agent that flags breakout videos, rising sounds, and formats before they saturate. Catch the wave while it is still rising, not after.

Creator and influencer discovery

Scrape TikTok profiles and search users by keyword to surface the creators driving a topic, ranked by real engagement, so your team shortlists partners from data instead of a manager's pitch deck.

Competitor content analysis

Watch what your category posts and what actually lands. Turn a competitor's best-performing formats and hooks into your own content brief.

Campaign and comment sentiment

Measure how a launch or branded hashtag spreads across TikTok, then use the TikTok comments scraper on top videos to read how the audience actually reacts, not just a vanity view count.

Call it from your code or your agent

One typed endpoint, one API key. Or add the SurfSense MCP server and let your agent call tiktok.scrape as a native tool.

curl -X POST "$SURFSENSE_API_URL/workspaces/$WORKSPACE_ID/scrapers/tiktok/scrape" \
  -H "Authorization: Bearer $SURFSENSE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "hashtags": [
      "mealprep"
    ],
    "max_items": 25
  }'

TikTok API request and response schema

The exact contract behind POST /workspaces/{workspace_id}/scrapers/tiktok/scrape. The same fields power the tiktok.scrape MCP tool.

Request parameters

Provide at least one source: urls, profiles, or hashtags. Up to 20 sources per call. To find accounts by keyword, use the user search verb.

Request parameters
FieldTypeDescription
urlsstring[]
default []
TikTok URLs to scrape: a video, a profile (/@user), or a hashtag (/tag/name). Max 20.
profilesstring[]
default []
Profile usernames to scrape, with or without a leading @. Max 20.
hashtagsstring[]
default []
Hashtag names to scrape, without the # prefix. Max 20.
results_per_pageinteger
default 10
Max videos to pull per profile or hashtag target. 1 to 100.
max_itemsinteger
default 10
Max total videos to return across all sources. 1 to 100.

Response fields

The response is { items: [...] } with one video item per result. One returned item is one billable unit.

Response fields
FieldTypeDescription
id / webVideoUrlstringThe TikTok video ID and its canonical web URL.
textstringThe video caption, including inline hashtags and mentions.
authorMetaobjectCreator handle, nickname, follower and heart counts, and verified flag.
musicMetaobjectTrack name, artist, and whether the sound is original.
videoMetaobjectDuration, dimensions, and cover image for the video.
playCount / diggCountintegerPlay count and like (digg) count, the core reach and engagement signals.
commentCount / shareCountintegerComment and share counts for measuring conversation and spread.
hashtagsobject[]The hashtags attached to the video, for topic and campaign mapping.
createTimeISO / scrapedAtstringISO timestamps for when the video was posted and when it was scraped.

A TikTok Research API alternative built for agents

TikTok's official Research API is approval-gated and largely limited to academic and nonprofit use. If you cannot get access or need commercial TikTok scraping, SurfSense is a TikTok API alternative. Here is how it compares.

FeatureOfficial TikTok APISurfSense
AccessApplication and approval, often restricted to academic/nonprofit useOne API key, no approval process
PricingFree but gated, with usage quotas per approved projectPay per item returned, with a free tier to start
SigningYou manage the client-side signature that TikTok rotatesHandled for you; a real browser signs each request
SetupRegister a developer app and await reviewOne API key, or add the MCP server to your agent
Agent-readyNo; you build the harness yourselfMCP server exposes scrape, comments, user search, and trending as native tools

TikTok API: frequently asked questions

Point your agents at TikTok

The TikTok connector is one of many in the SurfSense competitive intelligence platform. Start free, no credit card required.

SurfSense