Skip to content
ShortVid API
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.

$0.20 / 1K Videos · $0.10 / 1K Comments & Followers · No OAuth Needed

Instant Quickstart · Copy & Run in 30 Seconds

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

Execute in Live Playground →
import time
import statistics
import requests

API_KEY = "tk_live_your_api_key"
BASE_URL = "https://api.shortvidapi.com"
HEADERS = {"x-api-key": API_KEY}

def analyze_creator(username: str) -> dict:
    # 1. Profile stats
    prof = requests.get(f"{BASE_URL}/v1/user/info", params={"unique_id": username}, headers=HEADERS, timeout=20).json()
    stats = prof["data"]["stats"]
    followers = max(1, stats["followerCount"])

    # 2. Latest 35 videos
    posts = requests.get(f"{BASE_URL}/v1/user/posts", params={"unique_id": username, "count": 35}, headers=HEADERS, timeout=25).json()
    videos = [v for v in posts["data"].get("videos", []) if not v.get("is_top")]

    now = time.time()
    erv_list, save_rate_list, views_list, vph_list = [], [], [], []
    for v in videos:
        views = max(1, v.get("play_count", 0))
        interactions = (
            v.get("digg_count", 0)
            + v.get("comment_count", 0)
            + v.get("share_count", 0)
            + v.get("collect_count", 0)
        )
        age_hours = max(1.0, (now - v.get("create_time", now)) / 3600.0)
        views_list.append(views)
        erv_list.append(interactions / views)
        save_rate_list.append(v.get("collect_count", 0) / views)
        vph_list.append(views / age_hours)

    return {
        "username": username,
        "followers": followers,
        "videos_analyzed": len(videos),
        "median_views": int(statistics.median(views_list)) if views_list else 0,
        "views_to_followers_pct": round((statistics.median(views_list) / followers) * 100, 2) if views_list else 0,
        "avg_engagement_rate_pct": round(statistics.mean(erv_list) * 100, 2) if erv_list else 0,
        "avg_save_rate_pct": round(statistics.mean(save_rate_list) * 100, 2) if save_rate_list else 0,
        "top_views_per_hour": round(max(vph_list), 1) if vph_list else 0,
    }

if __name__ == "__main__":
    print(analyze_creator("tiktok"))

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 ShortVid API, 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, ShortVid API returns the complete upstream aweme statistics object for every video, creator, hashtag, and sound.

TikTok Analytics & Studio Metrics Exposed by ShortVid API 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.shortvidapi.com/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.shortvidapi.com/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)
ShortVid API (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).

More engineering guides

View all guides →

Architecture Guide · 2026

Unofficial TikTok API vs Official TikTok API: Complete 2026 Developer Guide

8 min read →

Video Parser Guide · 1080p HD

How to Get TikTok Video Metadata & 1080p No-Watermark MP4 via API

6 min read →

Search & Discovery Guide

TikTok Search API Guide: Search Videos, Creators & Commercial Ads by Keyword

7 min read →

Pricing & Cost Analysis · 2026

TikAPI Pricing Breakdown (2026): Real Cost per 1,000 Videos & Pay-As-You-Go Comparison

6 min read →

Troubleshooting · HTTP Error 403 & WAF Fix

Fix TikTok HTTP Error 403 ("Access to www.tiktok.com Was Denied") — Working Python & API Bypass

8 min read →

Ad Intelligence Tutorial

TikTok Ads Library & Creative Center API: Scrape Winning Ads, CTR & Keywords

8 min read →

Social Listening Tutorial

TikTok Comments & Replies Scraper API: Extract Threads at $0.10/1K

7 min read →

Creator & Follower Graph Guide

TikTok Profile & Followers Scraper API: Fetch User Data, Videos & 200-Item Follower Lists

8 min read →

Creator Discovery · 2026

TikTok Influencer Search API: Find Creators by Niche & Follower Tier

8 min read →

Lead Generation · 2026

How to Extract Creator Emails & Bio Leads from TikTok via API (Python & Node.js)

7 min read →

Trend Intelligence · 2026

TikTok Hashtag, Sound & Viral Trends API: Track Breakout Topics in Real Time

8 min read →

No-Code & AI Workflows · 2026

n8n & Make.com TikTok API Integration: Automate Video & Creator Workflows

7 min read →

E-Commerce & Affiliates · 2026

TikTok Shop Affiliate & E-Commerce Product Intelligence via API

8 min read →

Official API Architecture · 2026

TikTok Research API: Academic Eligibility, 1,000/Day Quota & Commercial REST Endpoints

8 min read →

OAuth & Scopes Reference · 2026

TikTok Display API: OAuth 2.0 Scopes, Limitations & How to Fetch Public Profiles

6 min read →

Python SDK & Asyncio Hub · 2026

Python TikTok API Tutorial (2026): requests, asyncio & Why Playwright Libraries Break

9 min read →

Scraper Architecture · $0.20/1K Videos

TikTok Scraper API: Extract Public Videos, Profiles, Comments & Ads at Scale

8 min read →