← IPIPAI Home · TKLens Home · 中文文档

TikTok Data Scraper — TKLens Technical Docs

Contents
  1. What does TKLens do?
  2. What data can you get from TikTok?
  3. How to scrape TikTok with TKLens?
  4. Input parameters
  5. Output format
  6. Deep analysis report (exclusive)
  7. Pricing
  8. Error codes
  9. Architecture
  10. API & MCP integration
  11. FAQ

1. What does TKLens do?

TKLens extracts public data from TikTok and exports it in your preferred format. Use it for your own data projects, business reports, or as the foundation for new apps.

2. What data can you get from TikTok?

FieldDescription
Username / nickname / IDauthorMeta.name, nickName, id
Biosignature, with bio link
Followers / followingfans, following
Total likesheart
PlaysplayCount (per video)
Likes / Comments / SharesdiggCount, commentCount, shareCount
Captiontext (full caption)
Hashtagshashtags (platform structured + regex completion)
MusicmusicMeta: title, author, original or not, play URL
Publish timecreateTime / createTimeISO
Video URLwebVideoUrl
Is adisAd (platform-flagged, not inferred)
Location createdlocationCreated (country code)
Text languagetextLanguage
PinnedisPinned
Direct video URLplayAddr (downloadable)

3. How to scrape TikTok with TKLens?

  1. Sign up: free with email (free during beta)
  2. Submit: enter any TikTok username in the console, e.g. @princessbridediamonds
  3. Wait: all public videos are collected in the background (usually a few hours, up to 24h for large accounts)
  4. Read the report: 9-section deep analysis, Top10 inline
  5. Download: full CSVs (video details / captions / hashtags / music)

4. Input parameters

ParameterTypeDefaultDescription
handlestringrequiredTikTok username
max_videosinteger40Max videos; null = all (MCP/API)

5. Output format

Example JSON per video:

{
  "id": "7697441806480461070",
  "text": "How well do you know your girl? #ring #engagementring",
  "textLanguage": "en",
  "createTimeISO": "2025-08-28T17:44:35.000Z",
  "isAd": false,
  "locationCreated": "US",
  "authorMeta": {"name": "princessbridediamonds", "fans": 349600, "heart": 31800000},
  "musicMeta": {"musicName": "original sound", "musicAuthor": "princessbridediamonds"},
  "playCount": 8900000, "diggCount": 23400, "commentCount": 46,
  "shareCount": 145, "collectCount": 1637,
  "webVideoUrl": "https://www.tiktok.com/@princessbridediamonds/video/7697441806480461070"
}

6. Deep analysis report (exclusive)

SectionContent
1. ProfileFollowers/following/likes/bio/verification/country
2. Core metricsMedian plays, viral count, engagement rate, cadence, gaps
3. Paid trafficPlatform-flagged ads (isAd) + heuristic suspect list
4. Top videosTop10 detail
5. CaptionsAll captions Top10 + full CSV
6. HashtagsFull frequency stats
7. MusicBGM usage frequency
8. Risk signalsSuspected bots, abnormal growth alerts
9. FollowersComing soon (not available during beta)

Case study: Princess Bride Diamonds full report (2,730 videos)

7. Pricing

Free during beta (registration required, 10 tasks/day per user). Official pricing coming soon.

Full data download: bundled with the paid report. All CSVs (videos/captions/hashtags/music) are downloadable from the report page, available only to the report buyer.

8. Error codes

errorCodeMeaning
NOT_FOUNDAccount does not exist
PROFILE_PRIVATEAccount is private
PROFILE_EMPTYNo videos on the account
RATE_LIMITEDCollection timed out / rate limited, retry later
INVALID_INPUTBad input parameters

9. Architecture (frontend-backend separation)

TKLens uses a separated architecture — the core engine never leaves the server:

Core assets (analysis algorithms, collection strategies) stay server-side — the technical basis for the pricing model.

10. API & MCP integration

EndpointDescription
POST api/registerSign up {email, password}
POST api/loginLog in
POST api/tasksSubmit {handle, proxy} (login required; proxy required, http/socks5)
GET api/tasksTask list (login required)
GET r/{id}.htmlHTML report (owner only)

Auth: Authorization: Bearer <token> or cookie tklens_token.

MCP: POST /mcp, JSON-RPC 2.0, 7 tools (traverse_account, analyze_account, normalize_video, normalize_profile, extract_hashtags, detect_ad, export_report).

11. FAQ

How long until the report?
Video analysis: queued in background, usually within a few hours (up to 24h for large accounts). Watch status in the console. Follower data is T+1 (~24h) and not available during beta.

Private accounts?
Public accounts only.

How accurate?
Plays/followers are snapshots at collection time; isAd is platform-verified.

How is this different from other data platforms?
Other platforms sell raw data (per-item pricing); TKLens sells conclusions (per-account pricing) with zero signature cost on full collection. Paid-traffic detection, viral attribution, and risk signals are layers they do not offer.

Is it legal?
Only publicly shared information is collected. Reports are for research and analysis.

Is my data isolated?
Each user's tasks, reports, and downloads are fully isolated — you only see your own. All query history is kept permanently.

Which IP is used for scraping?
Proxy required, never server IP. Supports http:// and socks5:// (SS/V2Ray OK), e.g. socks5://user:pass@host:port. Tasks without proxy will be rejected.