Skip to content
tiktokapi.io
Scraper Architecture · $0.20/1K Videos8 min read·Updated 2026-11-04

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

Replace brittle headless browsers, residential proxy pools, and slow container queues with a synchronous REST TikTok Scraper API. Extract 1080p videos, creator profiles, 200-item follower lists, nested comments, and Creative Center commercial ads in sub-second JSON.

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

Instant Quickstart · Copy & Run in 30 Seconds

End-to-End TikTok Scraper Pipeline (Profile -> Videos -> Comments)

Execute in Live Playground →
import requests

API_KEY = "tk_live_your_api_key"
HEADERS = {"x-api-key": API_KEY}

def scrape_brand_intelligence(handle: str):
    # 1. Profile & follower count
    profile = requests.get(
        "https://api.tiktokapi.io/v1/user/info",
        params={"username": handle},
        headers=HEADERS,
        timeout=20,
    ).json()["data"]

    # 2. Recent video posts (up to 33 in one call)
    posts = requests.get(
        "https://api.tiktokapi.io/v1/user/posts",
        params={"username": handle, "count": 33},
        headers=HEADERS,
        timeout=25,
    ).json()["data"].get("videos", [])

    # Sort by views to find top viral video
    top_video = max(posts, key=lambda v: v.get("play_count", 0)) if posts else None
    top_comments = []
    if top_video:
        vid = top_video.get("video_id") or top_video.get("id")
        top_comments = requests.get(
            "https://api.tiktokapi.io/v1/comment/list",
            params={"url": vid, "count": 50},
            headers=HEADERS,
            timeout=25,
        ).json()["data"].get("comments", [])

    return {
        "handle": handle,
        "followers": profile["stats"]["followerCount"],
        "videos_scraped": len(posts),
        "top_video_views": top_video.get("play_count") if top_video else 0,
        "comments_scraped": len(top_comments),
    }

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

Key Engineering Takeaways (TL;DR)

  • ✓Complete 16-endpoint coverage across 6 TikTok data domains: Videos, Users & Followers, Comments & Replies, Hashtags, Sounds/Music, and Creative Center Commercial Ads.
  • ✓Transparent per-item unit economics: $0.20 per 1,000 videos retrieved in batch/search, $0.10 per 1,000 comments or followers, and $1.00 per 1,000 commercial ads.
  • ✓Zero charge on failed or non-200 upstream responses — credits are only deducted when the gateway returns HTTP 200 with code === 0.
  • ✓Synchronous HTTP GET responses (p50 latency 420–880ms) instead of waiting 30–90 seconds for container actor cold starts.

1. All 16 TikTok Scraper API Endpoints & Per-1,000 Unit Pricing

Every scraper workflow maps directly to a deterministic REST GET endpoint on https://api.tiktokapi.io:

Complete TikTok Scraper API endpoint catalog, page sizes, and effective cost per 1,000 items
Scraper TargetREST EndpointMax Items / CallCreditsBase Cost ($0.10/1K cr)
Single Video + 1080p MP4GET /v1/video/detail1 video + HD stream10 Credits / call$1.00 / 1,000 lookups
Keyword Video SearchGET /v1/video/search20–30 videos / call2 Credits / video$0.20 / 1,000 videos
Creator Profile & StatsGET /v1/user/info1 profile + stats10 Credits / call$1.00 / 1,000 profiles
Creator Video FeedGET /v1/user/postsUp to 33 videos / call2 Credits / video$0.20 / 1,000 videos
Creator Search by NicheGET /v1/user/searchUp to 20 creators / call1 Credit / user$0.10 / 1,000 creators
Follower / Following GraphGET /v1/user/followers · /followingUp to 200 users / call1 Credit / user$0.10 / 1,000 users
Video Comments & RepliesGET /v1/comment/list · /replyUp to 50 comments / call1 Credit / comment$0.10 / 1,000 comments
Hashtag & Sound FeedsGET /v1/challenge/posts · /music/postsUp to 30 videos / call2 Credits / video$0.20 / 1,000 videos
Creative Center Top AdsGET /v1/ads/top/adsUp to 20 ads / call10 Credits / ad$1.00 / 1,000 ads

2. Multi-Endpoint Scraper Pipeline: Profile + Videos + Comments

Scrape a target brand or creator's profile metrics, latest videos, and audience comments in under 3 seconds:

End-to-End TikTok Scraper Pipeline (Profile -> Videos -> Comments)

Fetches creator metadata, pulls their latest video posts, and extracts top comments for the highest-performing video.

# 1. Scrape creator profile
curl -sS "https://api.tiktokapi.io/v1/user/info?username=gymshark" \
  -H "x-api-key: tk_live_your_api_key"

# 2. Scrape latest 33 videos
curl -sS "https://api.tiktokapi.io/v1/user/posts?username=gymshark&count=33" \
  -H "x-api-key: tk_live_your_api_key"

Interactive Engineering Workbench · Latency & Cost Benchmark

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

How is TikTokAPI.io faster and cheaper than Apify TikTok Scraper actors?
Container-based actors spin up a virtual machine and headless browser on every run, adding 15–45 seconds of cold-start latency plus compute overhead. TikTokAPI.io is an always-hot REST gateway that responds in 400–900ms at $0.20 per 1,000 videos. See /compare/apify for a detailed benchmark.
Can I use this TikTok Scraper API in n8n, Make.com, or Zapier without coding?
Yes. Every endpoint is a standard HTTP GET request that accepts query parameters or a ?json={...} wrapper. See our /guides/n8n-make-tiktok-api-automation guide for ready-to-import workflow templates.

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

TikTok HTTP Error 403 Forbidden: Why 'Access to www.tiktok.com Was Denied' Happens & Working Fix

7 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 →

Analytics & Python SDK · 2026

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

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 →