Skip to content
tiktokapi.io
Analytics & Python SDK · 20268 min read·Updated 2026-11-01

TikTok Analytics API & Python Guide: Creator Engagement, Video Velocity & Studio Metrics

How to build automated TikTok creator analytics, influencer vetting pipelines, and TikTok Studio metric dashboards in Python and TypeScript without per-user OAuth login.

Key Engineering Takeaways (TL;DR)

  • ✓ByteDance's native TikTok Studio and Display APIs only expose analytics for accounts where the creator manually grants OAuth 2.0 permission — making competitor benchmarking and influencer discovery impossible.
  • ✓With TikTokAPI.io, a single GET /v1/user/info + GET /v1/user/posts pipeline returns full engagement counters (play_count, digg_count, comment_count, share_count, collect_count) for any public creator at $0.20 per 1,000 videos.
  • ✓You can compute true Engagement Rate by Views ((likes + comments + shares + saves) / views) and 24-hour Viral Velocity directly from the Unix create_time timestamp in under 40 lines of Python.
  • ✓Every video item also includes AI comment sentiment inputs (/v1/comment/list) and 1080p no-watermark MP4 links (hdplay) for multimodal vision/audio analysis.

1. Core TikTok Analytics Metrics Available via REST API

Unlike web scrapers that only capture surface-level view counts from HTML cards, TikTokAPI.io returns the complete upstream aweme statistics object for every video, creator, hashtag, and sound.

TikTok Analytics & Studio Metrics Exposed by TikTokAPI.io Endpoints
Metric CategoryJSON Field PathsEndpointCost (Unified Credits)
Creator Account KPIsstats.followerCount, stats.heartCount, stats.videoCount, stats.followingCount, user.verifiedGET /v1/user/info10 Credits / profile ($0.001)
Per-Video Engagement Countersplay_count, digg_count, comment_count, share_count, collect_count (saves/bookmarks), download_countGET /v1/user/posts · /v1/video/search2 Credits / video ($0.20 / 1K videos)
Viral Velocity & Cadencecreate_time (Unix epoch), duration (seconds), is_top (pinned post), region (ISO country)GET /v1/user/postsIncluded in video payload
Audience & Follower Graphfollowers[].unique_id, followers[].follower_count, followers[].regionGET /v1/user/followers1 Credit / follower ($0.10 / 1K users)
Comment Sentiment Corpuscomments[].text, comments[].digg_count, comments[].reply_total, comments[].userGET /v1/comment/list1 Credit / comment ($0.10 / 1K comments)
Commercial Ad Performancectr, impression_tier, like_count, objective, landing_pageGET /v1/ads/top/ads10 Credits / ad ($1.00 / 1K ads)

2. Standard Formulas for Influencer Vetting & Viral Detection

When evaluating creators or tracking brand campaigns in Python, raw follower counts are easily inflated by dormant accounts. Production analytics platforms compute four normalized ratios from the last 35 posts returned by a single GET /v1/user/posts call:

  • Engagement Rate by Views (ERV): (digg_count + comment_count + share_count + collect_count) / play_count. Benchmark: 4.5%–8.0% is healthy; >10% indicates strong algorithmic amplification.
  • Save-to-View Ratio (High-Intent Signal): collect_count / play_count. TikTok's recommendation engine weights bookmarks (collect_count) and shares (share_count) significantly higher than passive likes.
  • Views-to-Followers Ratio (Reach Efficiency): median(play_count of last 20 non-pinned videos) / stats.followerCount. Identifies creators whose recent videos actively reach the For You Page (>15%) versus stagnant accounts (<2%).
  • Views Per Hour (Viral Velocity): play_count / ((now_epoch - create_time) / 3600). Detects breakout videos within the first 6–24 hours of publication.

3. Production Python TikTok Analytics Pipeline (httpx / requests)

The example below fetches a creator's profile and their latest 35 videos in two API calls (total cost: 80 Credits = $0.008), filters out pinned posts, and calculates median views, engagement rate by views, and save-to-view ratio.

Compute Creator Analytics & Engagement Rate in Python, cURL & Node.js

Fetches GET /v1/user/info and GET /v1/user/posts to compute real-time engagement metrics.

# 1. Fetch creator profile KPIs (10 Credits)
curl -s "https://api.tiktokapi.io/v1/user/info?unique_id=tiktok" \
  -H "x-api-key: tk_live_your_api_key" | jq '.data.stats'

# 2. Fetch latest 35 videos with full engagement counters (2 Credits/video)
curl -s "https://api.tiktokapi.io/v1/user/posts?unique_id=tiktok&count=35" \
  -H "x-api-key: tk_live_your_api_key" | jq '.data.videos[0] | {video_id, play_count, digg_count, comment_count, share_count, collect_count}'

Interactive Engineering Workbench · GET /v1/user/info

Verify real-time latency, pagination math & JSON schema

5,000 videos/day
10,000 comments/day
20,000 followers/day
Our HTTP Calls/Day
452
Large page sizes
Legacy Provider Calls
1,334
30-item small pages
Official Research API
Within 1K Cap
1,000 req/day limit
Estimated Monthly Pipeline Cost (30 Days)
$72.73/ mo with Business bonus ($120.00 base rate)
Daily consumption: 40,000 Credits ($4.00/day)
TikTokAPI.io (with volume bonus):$72.73 / mo
Legacy Scrapers ($1.50 / 1K calls):$60.03 / mo
Failed / 404 request fee:$0.00 (0 Credits)

Frequently Asked Questions

Can I fetch historical daily follower growth with the TikTok Analytics API?
TikTok's public profile object exposes real-time point-in-time counters (followerCount, heartCount, videoCount). To build daily time-series growth charts, poll GET /v1/user/info once per day per tracked creator (10 Credits = $0.001 per creator/day, or $0.03/month per creator) and store the snapshot in PostgreSQL or ClickHouse.
Does the API return bookmark / save counts (collect_count) and share counts?
Yes. Every video object returned by /v1/video/detail, /v1/user/posts, /v1/video/search, and /v1/challenge/posts includes play_count, digg_count, comment_count, share_count, collect_count (bookmarks/saves), and download_count.
How fast can I poll thousands of creators in Python?
Paid plans support 120 RPM (Starter), 300 RPM (Pro), and 600 RPM (Business). At 600 RPM, a Python asyncio/httpx worker can refresh full 35-video analytics for 300 creators per minute (18,000 creators per hour).