---
title: "TikTok API: turn TikTok into structured data | Scrape.ly"
description: "Scrape public TikTok videos from profiles, hashtags, video URLs, and keyword search: captions, plays, likes, shares, comments, music, and author details."
url: https://scrape.ly/api/tiktok-api
markdown: https://scrape.ly/api/tiktok-api.md
---

G2

4.7/5

[Excellent](https://www.trustpilot.com/review/scrape.ly)

[Trustpilot](https://www.trustpilot.com/review/scrape.ly)

# Turn TikTok into structured data

Scrape public TikTok videos from profiles, hashtags, video URLs, and keyword search: captions, plays, likes, shares, comments, music, and author details.

[Try TikTok API](https://scrape.ly/store/echofield/tiktok-scraper.md)

01 Integration

## Integrate TikTok API your way

Connect to Scrape.ly using Python, JavaScript, HTTP, cURL, OpenAPI, or MCP and start extracting TikTok data in minutes.

from scrapely_client import ScrapelyClient

client = ScrapelyClient ( 'YOUR_TOKEN' , api_url = 'https\://api.scrape.ly' )

run = client. actor ( 'echofield/tiktok-scraper' ) . call (

run_input = {

'hashtags' : \[ 'fyp' ] ,

'resultsPerPage' : 20 ,

}

)

for item in client. dataset ( run.default_dataset_id ) . iterate_items () :

print ( item )

02 Input & Output

## Send a hashtag or profile, get structured video data

Pass hashtags, profiles, video URLs, and search terms into Scrape.ly. Get structured outputs with captions and hashtags, plays, likes, shares, and comments, music details, author profiles, and video URLs, and more.

Input

1 2 3 4 5 6

```
{
 "hashtags":[
  "fyp"
 ],
 "resultsPerPage":20
}
```

Output

1 2 3 4 5 6 7 8 9 10 11 12 13 14

```
{
 "id":"7428931056728112389",
 "text":"POV: you finally automated your weekly report #fyp",
 "createTimeISO":"2026-10-16T19:44:02.000Z",
 "playCount":1830000,
 "diggCount":214500,
 "shareCount":9120,
 "commentCount":3341,
 "authorMeta":{
  "name":"dataduo",
  "fans":128400
 },
 "webVideoUrl":"https://www.tiktok.com/@dataduo/video/7428931056728112389"
}
```

03 How it works

## Start extracting TikTok data in four simple steps

Scrape.ly keeps the setup simple so you can move from signup to live TikTok data without wasting time on scraping infrastructure.

[Get started for free](https://my.scrape.ly/register)

Step 1

### Create your Scrape.ly account

Create your account and get access to ready-made APIs, scrapers, and automation tools.

Step 2

### Get your Scrape.ly API token

Copy your API token from the Scrape.ly dashboard and use it to authenticate your requests.

Step 3

### Connect TikTok API

Choose Python, JavaScript, HTTP, or MCP and connect Scrape.ly to your app or workflow.

Step 4

### Fetch TikTok data

Send your hashtags, profiles, video URLs, and search terms, then receive clean structured data ready for analysis.

04 Why Scrape.ly

## Everything you need to extract data reliably

Scrape.ly gives you ready-made APIs, proxy support, monitoring, exports, integrations, and scalable infrastructure in one platform.

### Never Get Blocked

Use built-in proxy support to reduce blocks, rate limits, and failed requests.

### Export Any Format

Get results in JSON, CSV, Excel, XML, HTML table, RSS, or other workflow-friendly formats.

### Monitor Every Run

Track scraper status, performance, failures, retries, and outputs from one dashboard.

### Built-In Integrations

Connect with webhooks, APIs, automation tools, cloud apps, and internal systems.

### Scalable Infrastructure

Run small tests or high-volume extraction jobs without rebuilding your scraping stack.

### Developer-Friendly

Use clean APIs, SDKs, docs, examples, and structured outputs built for real workflows.

05 AI-Ready Data

## Feed TikTok data into your tools instantly

Connect Scrape.ly with your apps, dashboards, sheets, agents, and automation workflows to turn TikTok data into action.

[Browse integrations](https://scrape.ly/integrations.md) [API Reference](https://scrape.ly/docs/api-overview.md)

![AI-ready data workflow illustration](https://scrape.ly/assets/pages/api/ai-ready-data/ai-ready.svg)

06 Explore APIs

## More TikTok APIs on Scrape.ly

Browse ready-made TikTok scrapers and APIs available inside Scrape.ly and choose the one that fits your workflow.

![TikTok Scraper logo](https://scrape.ly/cdn-cgi/image/width=132,fit=scale-down,format=auto/https://api.scrape.ly/v2/actors/b5dbf7391c64467d8/picture.webp?v=ccfb9f0e2bff223476a8e0b6bafd4ef4)

### [TikTok Scraper](https://scrape.ly/store/echofield/tiktok-scraper.md)

scrape.ly/store/echofield/tiktok-scraper

---

[Echofield](https://scrape.ly/users/echofield.md "Developed by Echofield")

Social media Videos

---

1.3K monthly users

[Try for free](https://my.scrape.ly/store/echofield~tiktok-scraper?intent=signup)

![TikTok Shop Scraper logo](https://scrape.ly/cdn-cgi/image/width=132,fit=scale-down,format=auto/https://api.scrape.ly/v2/actors/0b0dffd5aaf94d01b/picture.webp?v=29d57cff31633780fccc921c90ade905)

### [TikTok Shop Scraper](https://scrape.ly/store/shelfbright/tiktok-shop-scraper.md)

scrape.ly/store/shelfbright/tiktok-shop-scraper

---

[Shelfbright](https://scrape.ly/users/shelfbright.md "Developed by Shelfbright")

E-commerce Social media

---

87 monthly users

[Try for free](https://my.scrape.ly/store/shelfbright~tiktok-shop-scraper?intent=signup)

![TikTok Shop Top Products Scraper logo](https://scrape.ly/cdn-cgi/image/width=132,fit=scale-down,format=auto/https://api.scrape.ly/v2/actors/2d8a8ceb327749348/picture.webp?v=1251840b83b660beb54e2a112bef0eea)

### [TikTok Shop Top Products Scraper](https://scrape.ly/store/lergassy/tiktok-shop-top-products-scraper.md)

scrape.ly/store/lergassy/tiktok-shop-top-products-scraper

---

[lergassy](https://scrape.ly/users/lergassy.md "Developed by lergassy")

E-commerce Social media

---

3 monthly users

[Try for free](https://my.scrape.ly/store/lergassy~tiktok-shop-top-products-scraper?intent=signup)

### Check other related APIs

[View all](https://scrape.ly/api.md)

[Facebook API](https://scrape.ly/api/facebook-api.md)

[Facebook Marketplace API](https://scrape.ly/api/facebook-marketplace-api.md)

[Facebook Ads Library API](https://scrape.ly/api/facebook-ads-library-api.md)

[Twitter (X) API](https://scrape.ly/api/twitter-x-api.md)

[Threads API](https://scrape.ly/api/threads-api.md)

[Reddit API](https://scrape.ly/api/reddit-api.md)

07 FAQ

## Common questions about TikTok API

Quick answers about using Scrape.ly's TikTok API, available data, setup, and legal usage.

Got more questions? [Reach out to us](mailto:hello@scrape.ly?subject=TikTok%20API%20question\&body=I%20have%20a%20question%20about%20the%20TikTok%20API.)

### How is this different from an official TikTok API?

---

Official APIs, where they exist, usually need approval, keys, or paid tiers and limit which public data you can pull. Scrape.ly's TikTok API collects the public data shown on TikTok and returns it as structured JSON, with no approval process.

### Can I try the TikTok API for free?

### What data can I get from the TikTok API?

### Is it legal to scrape TikTok data?

### How do I get started with the TikTok API?

G2

4.7/5

[Excellent](https://www.trustpilot.com/review/scrape.ly)

[Trustpilot](https://www.trustpilot.com/review/scrape.ly)

## The internet is full of data. Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

[Get Started Free](https://my.scrape.ly/register) [Chat with Support](mailto:hello@scrape.ly?subject=Question%20about%20Scrape.ly\&body=Hi%2C%20I%20have%20a%20question%20about%20Scrape.ly.)

No credit card. No setup calls.
