Product Capacity
Developer
TaskAGI

Maintained by TaskAGI

Service Metrics

Monthly users
750
Stars
85
Up-time
97%
Last updated
8 days ago

Integrates with

Industries

Data Scraping eCommerce
image

TikTok Scraper

Scrape TikTok comments, posts, profiles and much more!
24 Jan, 2024
Active since
Overall rating

Overview

The TikTok Scraper is a cutting-edge tool designed to extract and analyze content from one of the world's fastest-growing social media platforms. This powerful scraper offers an efficient method to collect videos, comments, user data, and engagement metrics, providing valuable insights for various industries and applications.

What Does the TikTok Scraper Do?

  • Extracts detailed video and comment information from specified TikTok URLs
  • Gathers comprehensive data about user profiles and their content
  • Organizes engagement metrics and associated metadata in a structured format
  • Provides up-to-date information on trending hashtags and viral content
  • Offers access to music usage and sound popularity data

Data Provided by the TikTok Scraper

Data Point Description Example
Video Information Details about TikTok posts Post ID, description, creation time
Engagement Metrics Interaction data Likes, shares, comments, play count
User Profiles Creator information Username, bio, follower count
Comment Data User feedback on videos Comment text, likes, replies
Hashtags Categorization tags List of hashtags used in video
Music Information Audio used in videos Song title, artist, usage count
Video Statistics Technical video data Duration, dimensions, preview image

Advantages of Using the TikTok Scraper

  1. Trend Analysis: Stay ahead of viral content and emerging patterns
  2. Influencer Insights: Gain deep understanding of top creators and their impact
  3. Content Strategy: Inform your own content creation based on successful formats
  4. Audience Research: Analyze user preferences and engagement behaviors
  5. Competitive Intelligence: Monitor competitor activities and performance
  6. Music Industry Insights: Track song popularity and usage in videos

Industries That Can Benefit from the TikTok Scraper

The TikTok Scraper is a valuable asset for various sectors, including:

  • Digital Marketing and Advertising
  • Social Media Management
  • Entertainment and Talent Management
  • Market Research and Consumer Insights
  • Music Industry and Artist Promotion
  • E-commerce and Product Trend Analysis
  • Public Relations and Brand Management
  • Academic Research in Social Media Studies
  • Content Creation and Influencer Marketing
  • Advertising and Media Buying Agencies

Available on RapidAPI

Connect on RapidAPI


Relevant tasks

SocialMedia LinkedIn Scraper
Scrape company, profile, post, lead and comment data from LinkedIn.
Scrape Instagram comments, posts, profiles, reels, and more!
SocialMedia Facebook Scraper
Scrape Facebook comments, profiles, posts and reels with API.
Scrape Pinterest posts, profiles and pins!
SocialMedia Reddit Scraper
Scrape Reddit posts & comments
SocialMedia Quora Scraper
Scrape profiles, posts, questions and answers from Quora.
SocialMedia Vimeo Scraper
Scrape videos, comments and more from Vimeo.com
SocialMedia YouTube Scraper
Scrape videos, comments and shorts from YouTube.
Scrape tweets, replies, profiles, favorites and much more data from X (Twitter)
...
Get best offer Request custom scraper
You need to scrape a website or get data from a web page? We can help you with that. Just request a custom scraper and we will get back to you with the best offer.
Starting from $500 / One time payment

TikTok Scraper

Description

The TikTok Scraper API allows you to extract various types of information from TikTok, including comments, posts, profiles, and more. This powerful tool enables developers to integrate TikTok data into their applications for social media analysis, content discovery, and trend monitoring.

How to Use

To use the TikTok Scraper API, you'll need to authenticate your requests using your API key. The API provides several endpoints for retrieving different types of information:

Endpoints

  • POST https://taskagi.net/api/social-media/tiktok-scraper/comments - Retrieve comments by post URL
  • POST https://taskagi.net/api/social-media/tiktok-scraper/posts - Retrieve post information by URL
  • POST https://taskagi.net/api/social-media/tiktok-scraper/posts-by-profile - Retrieve posts by profile URL
  • POST https://taskagi.net/api/social-media/tiktok-scraper/posts-by-keyword - Discover posts by keyword
  • POST https://taskagi.net/api/social-media/tiktok-scraper/posts-by-url - Discover posts by URL
  • POST https://taskagi.net/api/social-media/tiktok-scraper/profiles - Retrieve profile information by URL
  • POST https://taskagi.net/api/social-media/tiktok-scraper/profiles-by-search-url - Discover profiles by search URL

Authentication

Include your API key in the request headers:

Authorization: Bearer YOUR_API_KEY

Request Body

The request body should be a JSON object with the following structure:


{
    "url": "https://www.tiktok.com/@username/video/video_id"
}

Rate Limiting

Please note that usage is subject to rate limiting. Refer to your plan details for specific limits.

Sample Response

Here's an example of the data you can expect to receive for the posts endpoint:


[
    {
        "input": {
            "url": "https://www.tiktok.com/@vantoan___/video/7294298719665622305",
            "discovery_input": ""
        },
        "url": "https://www.tiktok.com/@vantoan___/video/7294298719665622305",
        "post_id": "7294298719665622305",
        "description": "Wait for it 🥹❤️ I was playing the piano when suddenly, a 8 years old girl asked me to play « River Flows in you » and then she played with me ! 🎻😱 All the train station was shocked !!  #piano #violin #riverflowinyou #publicreaction ",
        "create_time": "2023-10-26T16:04:30.000Z",
        "digg_count": 55900000,
        "share_count": "747400",
        "collect_count": 5436796,
        "comment_count": 363700,
        "play_count": 498500000,
        "video_duration": 101,
        "hashtags": [
            "piano",
            "violin",
            "riverflowinyou",
            "publicreaction"
        ],
        "original_sound": "Van: son original",
        "profile_id": "6839815725969687558",
        "profile_username": "Van",
        "profile_url": "https://www.tiktok.com/@vantoan___",
        "profile_avatar": "https://p16-sign-useast2a.tiktokcdn.com/tos-useast2a-avt-0068-euttp/da08c164c1e4c507fbee7d97e963ab36~c5_1080x1080.jpeg?lk3s=a5d48078&nonce=98799&refresh_token=b10bb91e3ccebb54f1d92f99562ce67e&x-expires=1726509600&x-signature=WMmjUcoE%2BlaalE0kfWOKz3tpNcs%3D&shp=a5d48078&shcp=81f88b70",
        "profile_biography": "Piano ❤️\nCollab 📨 : vantoanlam.pro@gmail.com",
        "preview_image": "https://p16-sign-useast2a.tiktokcdn.com/obj/tos-useast2a-p-0037-euttp/ac945e5f0d424a86a9f672d83468de98_1698336272?lk3s=81f88b70&x-expires=1726509600&x-signature=Q2qXneBLzZOINsMV%2BAoUP9BZB5U%3D&shp=81f88b70&shcp=-",
        "post_type": "video",
        "offical_item": false,
        "secu_id": "MS4wLjABAAAAQhcYf_TjRKUku-aF8oqngAfzrYksgGLRz8CKMciBFdfR54HQu3qGs-WoJ-KO7hO8",
        "original_item": false,
        "shortcode": "7294298719665622305",
        "width": 576,
        "ratio": "540p",
        "video_url": "https://v16-webapp-prime.tiktok.com/video/tos/useast2a/tos-useast2a-ve-0068-euttp/oYi6N7oEitBAnnMiUyADgyja2U6hICQQInixfq/?a=1988&bti=ODszNWYuMDE6&ch=0&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C&cv=1&br=3264&bt=1632&cs=0&ds=3&ft=4fUEKMM58Zmo0bf0v-4jVzfOZpWrKsd.&mime_type=video_mp4&qs=0&rc=PDhoaWYzOGY2Zmk2Zjc3ZkBpamtoM3A5cnA7bjMzZjczM0BgLjFfMjY0NmAxNjAzMDY1YSMzaXNxMmRzbnFgLS1kMWNzcw%3D%3D&btag=e00090000&expire=1726360486&l=202409141833049B51C620C5D07534C521&ply_type=2&policy=2&signature=d8e3b00d249f67b1a92abaa368e0c9a4&tk=tt_chain_token",
        "music": {
            "authorname": "Van",
            "covermedium": "https://p16-sign-useast2a.tiktokcdn.com/tos-useast2a-avt-0068-euttp/da08c164c1e4c507fbee7d97e963ab36~c5_720x720.jpeg?lk3s=a5d48078&nonce=72415&refresh_token=9e425867e27b58d6331712f1446326bd&x-expires=1726509600&x-signature=2mH4RUXl5vI415rgrlGtK6EkD0o%3D&shp=a5d48078&shcp=81f88b70",
            "id": "7294298748561394465",
            "original": false,
            "playurl": "https://v16-webapp-prime.tiktok.com/video/tos/useast2a/tos-useast2a-v-2370-euttp/oQBjcpIMIGgKlcdeLjLe6LUUQhwfsoEfGERTQy/?a=1988&bti=ODszNWYuMDE6&ch=0&cr=0&dr=0&er=0&lr=default&cd=0%7C0%7C0%7C0&br=250&bt=125&ft=GNDpcInz7ThO1hyrXq8Zmo&mime_type=audio_mpeg&qs=6&rc=O2dpaGhkNmQ7Z2ZoaDszOkBpM3Z3c3Y5cjc7bjMzZjU8M0AuNjZeMGFhNV4xMDYxLmMxYSM1NWNrMmRrcHFgLS1kMWNzcw%3D%3D&btag=e00090000&expire=1726360486&l=202409141833049B51C620C5D07534C521&ply_type=3&policy=3&signature=0d4fae1e4e4fb7a8914f354ab4fe6f0c&tk=0",
            "title": "son original"
        },
        "cdn_url": "https://v16-webapp-prime.tiktok.com/video/tos/useast2a/tos-useast2a-ve-0068-euttp/o4h6IyT6nsDiCjyvhAEnx2aft76oNiIBQqnANU/?a=1988&bti=ODszNWYuMDE6&ch=0&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C&cv=1&br=3160&bt=1580&cs=0&ds=6&ft=4fUEKMM58Zmo0bf0v-4jVzfOZpWrKsd.&mime_type=video_mp4&qs=0&rc=MzpnZTRkNTdkOzg6ZzY3Z0BpamtoM3A5cnA7bjMzZjczM0AyXy4xMC4xXy0xM2BgMGIuYSMzaXNxMmRzbnFgLS1kMWNzcw%3D%3D&btag=e00090000&expire=1726360486&l=202409141833049B51C620C5D07534C521&ply_type=2&policy=2&signature=742be253346060e932e5669a14cf8409&tk=tt_chain_token",
        "is_verified": false
    }
]

import requests
import json

# Your API Key
api_key = 'YOUR_API_KEY'

# API Endpoint for post information
url = 'https://taskagi.net/api/social-media/tiktok-scraper/posts'

# Headers
headers = {
    'Authorization': f'Bearer {api_key}',
    'Content-Type': 'application/json'
}

# Request Body
data = {
    'url': 'https://www.tiktok.com/@vantoan___/video/7294298719665622305'
}

# Send POST request
response = requests.post(url, headers=headers, json=data)

# Check if the request was successful
if response.status_code == 200:
    # Parse the JSON response
    post_info = response.json()
    
    # Print the post information
    print(json.dumps(post_info, indent=2))
else:
    print(f"Error: {response.status_code}")
    print(response.text)

# Example for posts by keyword
url = 'https://taskagi.net/api/social-media/tiktok-scraper/posts-by-keyword'

# Request Body for keyword search
data = {
    'keyword': 'piano'
}

# Send POST request
response = requests.post(url, headers=headers, json=data)

# Check if the request was successful
if response.status_code == 200:
    # Parse the JSON response
    keyword_posts = response.json()
    
    # Print the posts
    print(json.dumps(keyword_posts, indent=2))
else:
    print(f"Error: {response.status_code}")
    print(response.text)

Case studies & Product updates

View all

Start your free trial

Join thousands of others automating their work with TaskAGI

Choose Your Plan

Beginner

Optimal for smaller developers & businesses.
$ 38 / Mon
2000 Requests / month
50 Requests per minute
API Access
Free support
Try for free

Advanced

Optimal for growing enterprises
$ 280 / Mon
15000 Requests / month
5 Requests per second
API Access
Free support
Try for free

Frequesntly Asked Questions

Product

The TikTok Scraper retrieves data in real-time. When you make a request, it fetches the most recent information available on TikTok, including the latest videos, comments, and engagement metrics. This ensures you're always working with the most up-to-date data in this fast-paced platform.
No, the TikTok Scraper is designed to collect only publicly available information. It cannot access private accounts, direct messages, or personalized 'For You' page content. The scraper respects user privacy and TikTok's terms of service, focusing solely on data that is openly shared on the platform.
The TikTok Scraper provides detailed metadata about video content, including duration, view counts, and engagement metrics. While it doesn't download video files directly, it offers URLs to access the video content. This approach allows users to analyze video performance and trends without storing large media files, making the data management process more efficient.
Absolutely! The TikTok Scraper is an excellent tool for competitor analysis. You can use it to gather insights on competitor accounts, analyze their top-performing content, track their engagement rates, and identify the hashtags and music they use most effectively. This information can help you benchmark your performance, identify gaps in your strategy, and discover new opportunities for growth on the platform.
Our team constantly monitors TikTok's platform updates and API changes to ensure the TikTok Scraper remains fully functional and compliant. We regularly release updates to adapt to new features, data structures, or policy changes. Users benefit from automatic updates, ensuring uninterrupted access to the latest TikTok data and metrics. We also maintain open communication channels with our users to quickly address any issues or incorporate new feature requests that align with TikTok's evolving landscape.