Docs
Log in
Use the JS token

TikTok scrapers work best with your JavaScript token.

API usage

Add &scraper=tiktok-profile to a Crawling API request. URL-encode the target URL in the url parameter.

curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
  --data-urlencode 'url=https://www.tiktok.com/@loveyourboka' \
  --data-urlencode 'scraper=tiktok-profile' -G
from crawlbase import CrawlingAPI

api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
    'https://www.tiktok.com/@loveyourboka',
    {'scraper': 'tiktok-profile'}
)

import json
data = json.loads(res['body'])
const { CrawlingAPI } = require('crawlbase');
const api = new CrawlingAPI({ token: 'YOUR_TOKEN' });

const res = await api.get(
  'https://www.tiktok.com/@loveyourboka',
  { scraper: 'tiktok-profile' }
);
const data = JSON.parse(res.body);
require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')

res = api.get('https://www.tiktok.com/@loveyourboka', scraper: 'tiktok-profile')
data = JSON.parse(res.body)

Example input URL

The URL passed in the url parameter (URL-decoded for readability):

https://www.tiktok.com/@loveyourboka

Response shape

JSON response body. Field types may be null when the source page omits the value.

username
string
Profile @username.
display_name
string
Display name.
bio
string | null
Profile bio.
avatar_url
string
Profile picture URL.
verified
boolean
Verification badge present.
follower_count
integer
Total followers.
following_count
integer
Number of accounts followed.
likes_count
integer
Total likes received.
videos_count
integer
Total videos posted.
recent_videos
array
Recent video objects.

Sample response

{
  "username": "loveyourboka",
  "display_name": "Love Your Boka",
  "verified": false,
  "follower_count": 82400,
  "following_count": 213,
  "likes_count": 1820000,
  "videos_count": 412
}