Skip to content
ScrapeField

Blog · Guides ·

How to scrape TikTok in 2026: three ways

TikTok’s Research API, a scraper of your own, or an API that does it for you: who each is for, what each costs, and the calls for an account’s videos and a search.

ScrapeField

TikTok data people ask for is mostly accounts, their videos with views and likes, the comments under them, and what is trending. There are three ways to get it, and the first is closed to most people asking.

1. TikTok’s Research API

Official, and for non-commercial research only: academic institutions and not-for-profit researchers, by application and an ethical review that takes about four weeks. If that is you, apply; your ethics board will ask. If you are building a product, it is not an option. Our comparison with the Research API has who qualifies.

2. A scraper of your own

A browser you drive from code opens TikTok, scrolls an account or a search, and reads what loads. It works for a handful of accounts. Past that, TikTok limits automated traffic and changes the app often, so it needs upkeep, servers and proxies, and the parser breaks when the page does.

3. An API that does it for you

One call with a username, and the answer is JSON, with the field names TikTok’s own APIs use. An account’s videos come up to 30 a call for 3 credits, so 1,000 videos cost about $0.08 on our smallest pack and $0.04 on the largest.

curl -H "Authorization: Bearer $SCRAPEFIELD_KEY" \
  "https://api.scrapefield.com/v1/tiktok/videos?username=ferrari"

Every recent video of an account, following the cursor, in TypeScript:

const base = 'https://api.scrapefield.com/v1/tiktok/videos';
const headers = { Authorization: `Bearer ${process.env.SCRAPEFIELD_KEY}` };
const videos = [];
let cursor: string | null = null;
do {
  const q = new URLSearchParams({ username: 'ferrari' });
  if (cursor) q.set('cursor', cursor);
  const res = await fetch(`${base}?${q}`, { headers });
  const body = await res.json();
  if (!res.ok) throw new Error(body.error.message);
  videos.push(...body.data);
  cursor = body.meta.next_cursor;
} while (cursor);

And in Python:

import os, requests

base = "https://api.scrapefield.com/v1/tiktok/videos"
headers = {"Authorization": f"Bearer {os.environ['SCRAPEFIELD_KEY']}"}
videos, cursor = [], None
while True:
    params = {"username": "ferrari"}
    if cursor:
        params["cursor"] = cursor
    body = requests.get(base, params=params, headers=headers).json()
    if "error" in body:
        raise RuntimeError(body["error"]["message"])
    videos += body["data"]
    cursor = body["meta"]["next_cursor"]
    if cursor is None:
        break

A video has video_description, create_time, view_count, like_count, comment_count, share_count and hashtag_names. Search finds videos by a term, and trending gives what is rising in a country. Every TikTok endpoint, with a playground that runs with no key, is on the TikTok API page.

Which one

Academic research: the Research API. A few accounts by hand: the app. Creator vetting, trend tracking and anything that runs every day: an API. From here: every comment on a video.

More articles