Sourcelane

TikTok Scraper

TikTok

Operated by Sourcelane✓ verified

Scrape TikTok videos from links, profiles, hashtags, search keywords and sounds in one run: plays, likes, captions, music, creator stats and comments.

Read full description

A TikTok-focused web scraper that collects video-level metadata and engagement data from a mixture of inputs (links, usernames, hashtags, search keywords and sounds) in a single run. The connector extracts video attributes (timestamps, duration, captions, thumbnails and direct media file links where available), engagement metrics (views, likes, comments, shares, saves), creator information (username, display name, IDs, verification and follower counts where present), text metadata (hashtags and mentions), music metadata (title, ID, author, original vs. non-original), and source attribution for each unique video. It can optionally emit separate comment records and profile detail records, performs deduplication so each video appears once even if found via multiple inputs, supports date-based filtering and result limits, and operates without login, cookies or a browser.

Verified Dec 1, 7:47 AM

$0.0004

per video

Up to 100 per call. Only pay for results returned; failed calls are refunded.

What people use it for

You give it

  • TikTok links

    Any mix of TikTok links: videos or photo posts, short links, profiles, hashtags, searches and sounds.

  • Usernames

    TikTok usernames or profile links.

  • Hashtags

    Hashtags with or without #.

  • Search keywords

    Keywords or phrases to search TikTok videos for, like you would in the app's search bar.

  • Sounds

    TikTok sound links or numeric sound IDs.

  • Only videos posted after

    Skip videos older than this.

Optional settings

Max videos per inputSearch sort orderComments per videoAdd a profile details row

You get back

Text & content
CaptionHashtagsMusic title
People & accounts
CreatorCreator nameCreator IDCreator verifiedMusic author
Numbers & stats
FollowersPlaysLikesDuration seconds
Dates
Posted at
Links & media
Video IDURLVideo URLPhoto postPhotos
Other details
Data typeSec uidCommentsSharesSavesMentionsMusic IDMusic is original+5 more

Trust & reliability

7d uptime trend
WindowUptimeSuccess ratep50p95Calls
24h————0
7d————0
30d————0

Calling contract

Call it through Sourcelane's gateway or MCP server. We run the connector, apply your agent's spend guardrails, and bill only the results returned.

Call it via Sourcelane

curl -X POST https://api.usesourcelane.com/v1/call \
  -H "Authorization: Bearer sl_live_your_agent_key" \
  -H "Content-Type: application/json" \
  -d '{"listing":"tiktok-scraper","params":{"startUrls":["https://www.tiktok.com/@khaby.lame/video/7709194461913419038"],"maxVideosPerInput":5},"maxResults":10}'

Request params

FieldTypeRequiredDescription
startUrlsarrayoptionalAny mix of TikTok links: videos or photo posts, short links (vm.tiktok.com, vt.tiktok.com, tiktok.com/t/...), profiles (tiktok.com/@name), hashtags (tiktok.com/tag/...), searches (tiktok.com/search?q=...) and sounds (tiktok.com/music/...). You can also paste a video ID, @username or #hashtag here.
profilesarrayoptionalTikTok usernames (with or without @) or profile links. Returns each profile's latest videos, newest first.
hashtagsarrayoptionalHashtags with or without #. Returns popular videos using each hashtag.
searchQueriesarrayoptionalKeywords or phrases to search TikTok videos for, like you would in the app's search bar.
soundsarrayoptionalTikTok sound links (tiktok.com/music/...) or numeric sound IDs. Returns videos that use each sound.
maxVideosPerInputintegeroptionalMaximum number of videos to collect from each profile, hashtag, search keyword or sound. A video link always returns its one video. Capped at 100 per call.
onlyPostsNewerThanstringoptionalSkip videos older than this. Use a date (2026-01-31) or a relative period (7 days, 2 weeks, 3 months). Applies to profiles, search keywords, hashtags and sounds, not to single video links. Profiles and searches sorted by newest stop as soon as they pass this date.
searchSortstringoptionalHow search keyword results are ordered.
commentsPerVideointegeroptionalAlso collect up to this many top comments for every video, as separate rows with dataType "comment". 0 turns comments off. Billed as one fee per video whose comments are collected plus a small price per comment.
includeProfileDetailsbooleanoptionalFor every username or profile link, also add one row with dataType "profile": bio, bio link, followers, following, total likes, video count, verification and avatar.

Each result contains

FieldTypeDescription
dataTypestring—
videoIdstring—
urlstring—
captionstring—
creatorstring—
creatorNamestring—
creatorIdstring—
secUidstring—
creatorVerifiedboolean—
followersinteger—
playsinteger—
likesinteger—
commentsinteger—
sharesinteger—
savesinteger—
durationSecondsinteger—
postedAtstring—
hashtagsarray—
mentionsarray—
musicTitlestring—
musicIdstring—
musicAuthorstring—
musicIsOriginalboolean—
coverstring—
videoUrlnull—
isPinnedboolean—
isAdboolean—
isPhotoPostboolean—
photosarray—
sourceTypestring—
sourceInputstring—
scrapedAtstring—

Use TikTok Scraper from Claude, ChatGPT or Cursor

Pick your tool and connect in under a minute. Then just ask — for example: “What are the top 25 TikTok videos for 'protein coffee' this week, and what hooks do they use?”

Connect Claude

Web, desktop and mobile. One click, then confirm.

  1. 1Click Add to Claude — claude.ai opens with Sourcelane filled in
  2. 2Click Continue to confirm — it then works in Claude desktop and mobile too
Manual setup (config files, REST, Python) +

Claude Code

Adds the Sourcelane MCP server with your key as a header.

terminal
claude mcp add --transport http sourcelane https://api.usesourcelane.com/mcp \
  --header "Authorization: Bearer sl_live_your_agent_key"

Claude Desktop (config file)

Alternative to the connector URL: add to claude_desktop_config.json, then restart Claude.

claude_desktop_config.json
{
  "mcpServers": {
    "sourcelane": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://api.usesourcelane.com/mcp",
        "--header",
        "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer sl_live_your_agent_key"
      }
    }
  }
}

Cursor & Windsurf

Add to ~/.cursor/mcp.json (or Windsurf's mcp_config.json).

mcp.json
{
  "mcpServers": {
    "sourcelane": {
      "url": "https://api.usesourcelane.com/mcp",
      "headers": {
        "Authorization": "Bearer sl_live_your_agent_key"
      }
    }
  }
}

VS Code

Save as .vscode/mcp.json. VS Code prompts for your key once.

.vscode/mcp.json
{
  "servers": {
    "sourcelane": {
      "type": "http",
      "url": "https://api.usesourcelane.com/mcp",
      "headers": {
        "Authorization": "Bearer ${input:sourcelane-key}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "sourcelane-key",
      "description": "Sourcelane agent key",
      "password": true
    }
  ]
}

ChatGPT Custom GPT (Actions)

Create a GPT → Actions → Import from URL, then Authentication: API Key, Bearer.

OpenAPI schema URL
https://usesourcelane.com/openapi.json

REST

One POST. Pass maxResults to cap cost.

curl
curl -X POST https://api.usesourcelane.com/v1/call \
  -H "Authorization: Bearer sl_live_your_agent_key" \
  -H "Content-Type: application/json" \
  -d '{"listing":"tiktok-scraper","params":{"startUrls":["https://www.tiktok.com/@khaby.lame/video/7709194461913419038"],"maxVideosPerInput":5},"maxResults":10}'

Python, LangChain, CrewAI, OpenAI Agents SDK…

Wrap the REST call as a tool, or point an MCP client at the endpoint.

python
import requests

res = requests.post(
    "https://api.usesourcelane.com/v1/call",
    headers={"Authorization": "Bearer sl_live_your_agent_key"},
    json={
        "listing": "tiktok-scraper",
        "params": {"startUrls":["https://www.tiktok.com/@khaby.lame/video/7709194461913419038"],"maxVideosPerInput":5},
        "maxResults": 10,
    },
    timeout=300,
)
body = res.json()
print(body["receipt"]["chargedMicros"], "micro-USD for", body["receipt"]["results"], "results")
print(body["data"])

Reviews

—

0 reviews

5
0
4
0
3
0
2
0
1
0

Leave a review

Loading reviews…

Related TikTok connectors

See all TikTok data connectors →