# TikTok Scraper - Videos, Profiles, Hashtags & Comments (`socialscrapers/tiktok-scraper`) Actor

TikTok scraper for videos, profiles, hashtags, sounds and comments: views, likes, shares, saves, followers, captions, music and video links. Scrape TikTok profiles, hashtag videos and comments with no login or cookies. TikTok API alternative: JSON, CSV, Excel. $0.15 per 1,000 videos.

- **URL**: https://apify.com/socialscrapers/tiktok-scraper.md
- **Developed by:** [Social Scrapers](https://apify.com/socialscrapers) (community)
- **Categories:** Social media, Videos, Marketing
- **Features:** Limited permissions
- **Stats:** 68 total users, 44 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.12 / 1,000 videos

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

**TikTok Scraper** extracts public TikTok data without logging in: **videos and photo posts from profiles, hashtags, sounds and video URLs**, each with its **views, likes, shares, saves and comment count**, caption, hashtags, mentions, music, subtitle links and the creator's followers, plus **comments and replies** and **profile details**. Download JSON, CSV or Excel, or call it as a **TikTok API** alternative: no TikTok account, no cookies, no API key. It costs **$0.28 per 1,000 videos** (until 26 November 2026: $0.15 per 1,000 videos).

> 💡 **Need a feature that isn't here? Just ask.** Open an issue on the **Issues** tab and tell us what you need: a new field, filter, input type or output format. We build requested features fast, usually within 24 hours, at no extra cost.

> ⭐ **Found it useful?** A short review on the **Reviews** tab helps other people find this scraper, and tells us what to build next.

### What does TikTok Scraper do?

TikTok Scraper reads what TikTok shows a visitor who is not logged in. You can:

- 👤 **Scrape TikTok profiles**: every video a profile shows, newest first, with exact counts, or just the newest few. Usernames (`nasa`, `@nasa`) or profile URLs.
- \#️⃣ **Scrape TikTok hashtags**: the videos on a hashtag's page, with the hashtag's total views and videos.
- 🎵 **Scrape TikTok sounds (music)**: the videos that use a sound.
- 🎬 **Scrape single TikTok videos and photo posts** by URL, short share link (`vm.tiktok.com/…`), mobile link or video ID.
- 💬 **Scrape TikTok comments and replies**: text, likes, reply count, date, author, and whether the creator liked or pinned the comment.
- 📊 **Get profile details**: followers (exact), following, total likes, number of videos, bio, bio link, verified badge, avatar, business and seller flags.
- 📅 **Only new videos**: a date filter (`7 days`, `2w`, `2026-01-31`, `31/01/2026`, `Jan 31 2026`, `yesterday`) that stops reading a profile as soon as it passes the date.
- ♾️ **No upper limits**: 10 videos or a whole profile; set any limit to `0` for everything TikTok shows.
- ✅ **Each video once per run** (even when a profile and a hashtag both find it), and **you pay only for results**: missing videos, private accounts and unknown hashtags cost nothing. Set a maximum cost per run and it stops cleanly there.

### What data can you extract from TikTok?

| Item | Data you get |
| --- | --- |
| **Video** (also photo posts) | caption, URL, ID, post date, views, likes, shares, saves, comment count, reposts, duration, hashtags, mentions, cover image, first frame, animated cover, video file URL, download URL, width, height, resolution, subtitle and caption file links, photo post pictures, effects, tagged place, country of posting, pinned, ad and AI-generated flags |
| **Sound of each video** | sound ID, title, artist, album, original sound or not, duration, cover, audio URL |
| **Creator of each video** | username, display name, user ID, profile URL, verified badge, private account, bio, avatar, followers, following, total likes, number of videos |
| **Comment and reply** | text, comment ID, likes, reply count, date, language, author (username, display name, profile URL, avatar), liked by the creator, pinned by the creator, the comment a reply answers |
| **Profile details** | username, display name, user ID, bio, bio link, followers (exact), following, likes, videos, friends, verified, private, organization, business and TikTok Shop seller flags, avatar, language |
| **Where it was found** | `source` (profile, hashtag, sound or URL) and the input entry |

### How to scrape TikTok

1. Open TikTok Scraper on Apify and click **Try for free**.
2. Enter **profiles**, **video URLs**, **hashtags** or **sounds**, in any mix.
3. Set how many videos you want per profile, hashtag and sound (`0` = everything TikTok shows).
4. Optionally add a date filter, profile details, comments and replies.
5. Click **Start**. When the run finishes, download the results as JSON, CSV, Excel, XML or HTML, or read them through the API.

#### How to scrape a TikTok profile

Add the username or the profile URL, for example `https://www.tiktok.com/@nasa`. **Videos per profile** sets how many of its newest videos you get; `0` gets every video the profile shows. Switch on **Save profile details** for one extra item with the followers, likes, bio and link, or **Profile details only** to skip the videos.

#### How to scrape TikTok hashtags

Add hashtags with or without the #, for example `booktok` or `#料理` (any language works), or hashtag URLs such as `https://www.tiktok.com/tag/booktok`. Each hashtag gets the videos TikTok shows on its page, top videos first.

#### How to scrape TikTok comments

Add videos, profiles, hashtags or sounds, switch on **Save comments** and set **Comments per video** (`0` = all). Switch on **Save replies** to get each comment's replies right after it, with `parentId` pointing to the comment.

### How much does it cost to scrape TikTok?

TikTok Scraper is pay-per-result: **$0.28 per 1,000 videos, $0.28 per 1,000 comments and $0.10 per 1,000 profiles** from 26 November 2026 (22:20 UTC), platform usage and proxies included. Until then the price is $0.15 per 1,000 videos, $0.05 per 1,000 comments and $0.10 per 1,000 profiles. There is no monthly fee for the Actor. You pay one `video` event for each video or photo post saved, one `comment` event for each comment or reply, and one `profile` event for each profile details item:

| Your Apify plan | Per 1,000 videos | Per 1,000 comments | Per 1,000 profiles |
| --- | --- | --- | --- |
| Free and Starter (Bronze) | **$0.28** | **$0.28** | **$0.10** |
| Scale (Silver) | $0.252 (−10%) | $0.252 | $0.09 |
| Business (Gold), Platinum, Diamond | $0.224 (−20%) | $0.224 | $0.08 |

Until 26 November 2026: videos $0.15 (Silver $0.135, Gold $0.12), comments $0.05 (Silver $0.045, Gold $0.04), profiles $0.10 (Silver $0.09, Gold $0.08) per 1,000.

From 26 November 2026 each run also carries Apify's standard start charge of $0.00005, one per GB of memory (one at the default 1 GB).

Examples, until 26 November 2026 → from 26 November 2026:

- **1,000 videos** from profiles, hashtags or URLs: $0.15 → **$0.28**.
- **100 videos with 100 comments each** (10,000 comments): $0.015 + $0.50 = $0.515 → $0.028 + $2.80 = **$2.828**.
- **5,000 profiles, details only**: **$0.50** in both periods.

Apify's free plan comes with $5 of platform credit every month, enough to try TikTok Scraper on about 30,000 videos until 26 November 2026, and about 17,000 videos after. To cap a run's cost, set **Maximum cost per run** in the run options: the scraper stops cleanly before the first result that would go over it.

### Input example

```json
{
  "profiles": ["nasa", "https://www.tiktok.com/@natgeo"],
  "maxVideosPerProfile": 50,
  "videoUrls": ["https://www.tiktok.com/@nasa/video/7705574810113314061"],
  "hashtags": ["booktok", "#space"],
  "maxVideosPerHashtag": 100,
  "sounds": ["https://www.tiktok.com/music/original-sound-7066027456276581122"],
  "maxVideosPerSound": 50,
  "onlyPostsNewerThan": "30 days",
  "includeProfileInfo": true,
  "includeComments": true,
  "maxCommentsPerVideo": 200,
  "includeReplies": true,
  "maxRepliesPerComment": 10
}
```

Supported URLs: profiles (`tiktok.com/@user`, also `m.tiktok.com`), videos and photo posts (`/@user/video/…`, `/@user/photo/…`), short links (`vm.tiktok.com/…`, `vt.tiktok.com/…`, `tiktok.com/t/…`), mobile and embed links (`m.tiktok.com/v/….html`, `/embed/v2/…`, `/player/v1/…`), hashtags (`/tag/…`) and sounds (`/music/…`). Video and sound IDs work on their own too.

### Output example

Each result has a `dataType`: `video`, `comment` or `profile`. A value TikTok does not show is `null`. The dataset has three views: Videos, Comments and Profiles.

A video from NASA's profile (long media URLs shortened):

```json
{
  "dataType": "video",
  "id": "7702504724049743117",
  "url": "https://www.tiktok.com/@nasa/video/7702504724049743117",
  "text": "Another week of building, flying, and looking ahead at NASA 🚀 🌔 Artemis III core stage integrated 🛰️ New solar array installed on the ISS 🪐 Send your name to Titan aboard Dragonfly ✈️ MAX POWER heads to Kennedy Space Center next week Here’s your NASA Minute!",
  "textLanguage": "en",
  "createTime": 1793379164,
  "createTimeISO": "2026-10-30T16:52:44.000Z",
  "hashtags": [],
  "mentions": [],
  "playCount": 223100,
  "diggCount": 18600,
  "shareCount": 713,
  "commentCount": 394,
  "collectCount": 2151,
  "repostCount": 0,
  "duration": 108,
  "isSlideshow": false,
  "images": [],
  "isPinned": false,
  "isAd": false,
  "isAIGenerated": null,
  "locationCreated": null,
  "location": null,
  "coverUrl": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/o8e3EAJERS9f6tHYlgAMTQA5IAHqg8Dy6arDFC~tplv-tiktokx-origin.image?...",
  "originalCoverUrl": "https://p16-common-sign.tiktokcdn-us.com/...",
  "dynamicCoverUrl": "https://p19-common-sign.tiktokcdn-us.com/...",
  "playUrl": "https://v16-webapp-prime.us.tiktok.com/video/tos/useast5/...",
  "downloadUrl": "https://v16-webapp-prime.us.tiktok.com/video/tos/useast5/...",
  "width": 720,
  "height": 1280,
  "definition": "720p",
  "subtitles": [{ "language": "eng-US", "format": "webvtt", "url": "https://v16m-webapp.tiktokcdn-us.com/...", "isAutoGenerated": true }],
  "effects": [],
  "categories": [],
  "music": {
    "id": "7702504816472640270",
    "title": "original sound - NASA",
    "authorName": "NASA",
    "album": null,
    "isOriginal": false,
    "duration": 108,
    "coverUrl": "https://p16-common.tiktokcdn-us.com/...",
    "playUrl": "https://v16-webapp-prime.us.tiktok.com/..."
  },
  "author": {
    "id": "7664638705177150477",
    "username": "nasa",
    "nickname": "NASA",
    "url": "https://www.tiktok.com/@nasa",
    "verified": true,
    "isPrivate": false,
    "bio": "Making the seemingly impossible, possible.✨",
    "avatarUrl": "https://p19-common-sign.tiktokcdn-us.com/...",
    "followers": 2200000,
    "following": 23,
    "likes": 11600000,
    "videos": 63
  },
  "source": "profile",
  "sourceInput": "nasa",
  "scrapedAt": "2026-11-08T11:58:54.000Z"
}
```

A comment (a reply has the same fields, with `parentId` set):

```json
{
  "dataType": "comment",
  "id": "COMMENT_ID",
  "videoId": "7700397098994273549",
  "videoUrl": "https://www.tiktok.com/@nasa/video/7700397098994273549",
  "text": "When is the next launch?",
  "createTime": 1792888662,
  "createTimeISO": "2026-10-25T00:37:42.000Z",
  "diggCount": 29,
  "replyCount": 2,
  "parentId": null,
  "likedByAuthor": false,
  "pinnedByAuthor": false,
  "language": "en",
  "author": { "id": "USER_ID", "username": "viewer", "nickname": "Viewer", "url": "https://www.tiktok.com/@viewer", "avatarUrl": "https://..." },
  "scrapedAt": "2026-11-08T11:58:55.000Z"
}
```

NASA's profile details:

```json
{
  "dataType": "profile",
  "id": "7664638705177150477",
  "username": "nasa",
  "nickname": "NASA",
  "url": "https://www.tiktok.com/@nasa",
  "bio": "Making the seemingly impossible, possible.✨",
  "bioLink": "science.nasa.gov/feature/artemis-ii-preliminary-lunar-science-report",
  "verified": true,
  "isPrivate": false,
  "followers": 2166152,
  "following": 23,
  "likes": 11586067,
  "videos": 63,
  "friends": 17,
  "language": "en",
  "region": null,
  "isOrganization": true,
  "isSeller": false,
  "isBusiness": false,
  "input": "nasa"
}
```

### Use cases

- **Influencer marketing**: find creators by hashtag or sound, then pull each one's followers, likes and recent performance.
- **Competitor and brand monitoring**: track what brands and media accounts post and how each video performs, daily with a date filter.
- **Trend research**: the top videos of a hashtag or a sound, with their views, likes and shares.
- **Comment and sentiment analysis**: collect comments and replies for opinion mining, product feedback and community research.
- **Content strategy**: compare captions, hashtags, lengths and posting times of the videos that perform best.
- **AI and LLM datasets**: captions, comments and subtitle links with metadata, ready for training, summaries or retrieval (RAG).

### Use TikTok Scraper via API, Python, JavaScript and integrations

Run it and get the results in one call with the [Apify API](https://docs.apify.com/api/v2):

```bash
curl -X POST "https://api.apify.com/v2/acts/socialscrapers~tiktok-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"profiles": ["nasa"], "maxVideosPerProfile": 20}'
```

Python, with the [Apify client](https://docs.apify.com/api/client/python):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("socialscrapers/tiktok-scraper").call(run_input={
    "hashtags": ["booktok"],
    "maxVideosPerHashtag": 100,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["url"], item["playCount"])
```

JavaScript, with the [Apify client](https://docs.apify.com/api/client/js):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('socialscrapers/tiktok-scraper').call({ videoUrls: ['https://www.tiktok.com/@nasa/video/7705574810113314061'], includeComments: true });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

You can also **schedule** runs, get a **webhook** when a run finishes, and connect the results to **Make, Zapier, n8n, Google Sheets, Slack** and other tools through [Apify integrations](https://docs.apify.com/integrations). AI agents and assistants can run TikTok Scraper through [Apify's MCP server](https://docs.apify.com/mcp).

### Limits

- **Public content only.** The scraper never logs in. Private accounts give their profile details but no videos; deleted and private videos are skipped and listed in the log.
- **Hashtags**: TikTok shows a visitor who is not logged in the top videos of a hashtag, about 100 to 200, not every video ever posted with it. For more, add related hashtags.
- **Comments**: on very busy videos TikTok shows a visitor most comments but not every one (in tests, about 3,900 top-level comments of a video with 6,200 comments and replies).
- **Search** is not included: TikTok shows search results only to logged-in users.
- **Media links expire** after some hours: download covers, pictures and video files soon after the run.
- **Numbers** are exact on profile items; the creator's counts inside video items are TikTok's rounded ones (2.2M).
- **Proxy and region**: The scraper picks Apify Proxy's tier itself: datacenter first, residential only when TikTok refuses a request. TikTok shows each country its own version of the site: the default is the United States; pick another proxy country for another region.
- Not included: follower and following lists, stories, live streams, reposts, TikTok Shop products and the video files themselves.
- **Short share links** (`vm.tiktok.com/…`, `vt.tiktok.com/…`, `tiktok.com/t/…`) are followed to what they open, under either field: a video is scraped as a video, a profile as a profile. Following a link is never charged.
- **A run with 0 results still succeeds, and no results are charged.** When a profile does not exist or is private, a video was deleted, a short link leads nowhere, or a hashtag shows nothing, the run ends as Succeeded with a status message naming each entry and why. When no entry is usable at all (an empty input, a name with spaces, a link to another site), the run ends as Succeeded at once, with a status message that starts "Nothing to scrape:", says how to fix the input and ends "No results were charged." A run fails only when TikTok refuses the scraper itself (every one of 3 or more entries, and a profile that is always public too), or on an internal error.

### FAQ

**Is it legal to scrape TikTok?**
TikTok Scraper collects only data that anyone can see on [tiktok.com](https://www.tiktok.com) without logging in. Comments and profiles can contain personal data, which laws such as the GDPR protect, so collect only what you need and have a legitimate reason for it. You are responsible for how you use the data and for following TikTok's terms and the laws that apply to you.

**Do I need a TikTok account, cookies or an API key?**
No. Give profiles, video URLs, hashtags or sounds and start the run.

**How many videos can I get?**
The scraper sets no upper limit. Profiles are read in full if you set `0`; hashtags give what TikTok shows visitors (about 100 to 200 top videos each); sounds go as deep as TikTok lists them.

**Why did I get fewer results than I asked for?**
The profile has fewer videos, the date filter cut the list, TikTok showed no more for that hashtag, or the run reached its maximum cost. The run log says which, for each input.

**How do I get only new videos?**
Set **Only videos newer than** (for example `7 days`) and schedule the run daily or weekly. Profiles stop reading as soon as they pass the date.

**Can I download TikTok videos?**
Each video item has `playUrl` and `downloadUrl` links to the video file and `coverUrl` for the cover. The links expire after some hours, so download soon after the run.

**Does it get TikTok photo posts (slideshows)?**
Yes: `isSlideshow` is `true` and `images` lists the pictures.

**How fast is it?**
In test runs, start-up included: 500 videos from 5 profiles took about 25 seconds, 300 video URLs about 40 seconds, all 3,900 comments of a busy video about a minute, and a hashtag's 150 top videos 40 to 90 seconds at the default 1 GB of memory (about 20 seconds at 4 GB).

### Other scrapers by Social Scrapers

| Scraper | What it gets |
| --- | --- |
| [TikTok API](https://apify.com/socialscrapers/tiktok-api) | Profiles, Videos and Comments |
| [TikTok Comments Scraper](https://apify.com/socialscrapers/tiktok-comments-scraper) | Comments, Replies and Likes |
| [TikTok Hashtag Scraper](https://apify.com/socialscrapers/tiktok-hashtag-scraper) | Top Videos, Views and Likes |
| [TikTok Profile Scraper](https://apify.com/socialscrapers/tiktok-profile-scraper) | Followers, Bio, Stats and Videos |
| [TikTok Sound Scraper](https://apify.com/socialscrapers/tiktok-sound-scraper) | Videos Using a Sound and Music Info |
| [TikTok Video Scraper](https://apify.com/socialscrapers/tiktok-video-scraper) | Views, Likes, Captions and Comments |
| [Instagram API](https://apify.com/socialscrapers/instagram-api) | Profiles, Posts, Reels, Comments and Hashtags |
| [Instagram Comments Scraper](https://apify.com/socialscrapers/instagram-comments-scraper) | Comments, Likes and Reply Counts |
| [Instagram Hashtag Scraper](https://apify.com/socialscrapers/instagram-hashtag-scraper) | Reels and Keyword Search |
| [Instagram Post Details Scraper](https://apify.com/socialscrapers/instagram-post-details-scraper) | Likes, Comments, Views and Media |
| [Instagram Post Scraper](https://apify.com/socialscrapers/instagram-post-scraper) | Posts, Reels and Comments |
| [Instagram Profile Scraper](https://apify.com/socialscrapers/instagram-profile-scraper) | Followers, Bio, Posts and Reels |
| [Instagram Reels Scraper](https://apify.com/socialscrapers/instagram-reels-scraper) | Reels, Plays, Likes and Comments |
| [Instagram Reels Transcript Scraper](https://apify.com/socialscrapers/instagram-reels-transcript-scraper) | Speech to Text and Captions |
| [Instagram Scraper](https://apify.com/socialscrapers/instagram-scraper) | Posts, Profiles, Reels, Comments and Hashtags |
| [YouTube API](https://apify.com/socialscrapers/youtube-api) | Videos, Transcripts, Search, Channels and Comments |
| [YouTube Channel Scraper](https://apify.com/socialscrapers/youtube-channel-scraper) | Videos, Shorts, Subscribers and About |
| [YouTube Comments Scraper](https://apify.com/socialscrapers/youtube-comments-scraper) | Comments, Replies and Likes |
| [YouTube Scraper](https://apify.com/socialscrapers/youtube-scraper) | Videos, Shorts, Channels and Comments |
| [YouTube Search Scraper](https://apify.com/socialscrapers/youtube-search-scraper) | Videos, Channels, Views and Filters |
| [YouTube Shorts Scraper](https://apify.com/socialscrapers/youtube-shorts-scraper) | Shorts, Views, Likes and Search |
| [YouTube Transcript Scraper](https://apify.com/socialscrapers/youtube-transcript-scraper) | Subtitles, Captions and SRT |
| [YouTube Video Details Scraper](https://apify.com/socialscrapers/youtube-video-details-scraper) | Stats, Subtitles and Comments |
| [Facebook Ads Library Scraper](https://apify.com/socialscrapers/facebook-ads-library-scraper) | Meta Ad Library and Spend |
| [Facebook Comments Scraper](https://apify.com/socialscrapers/facebook-comments-scraper) | Posts, Reels, Videos and Replies |
| [Facebook Groups Scraper](https://apify.com/socialscrapers/facebook-groups-scraper) | Public Group Posts and Reactions |
| [Facebook Marketplace Scraper](https://apify.com/socialscrapers/facebook-marketplace-scraper) | Prices, Locations and Sellers |
| [Facebook Page Contact Info Scraper](https://apify.com/socialscrapers/facebook-page-contact-scraper) | Email, Phone and WhatsApp |
| [Facebook Posts Scraper](https://apify.com/socialscrapers/facebook-profile-posts-scraper) | Pages, Profiles and Timelines |
| [Facebook Pages Scraper](https://apify.com/socialscrapers/facebook-profile-scraper) | Profiles, Contact Info and Reviews |
| [Facebook Reels Scraper](https://apify.com/socialscrapers/facebook-reels-scraper) | Reels, Videos, Plays and Captions |
| [X (Twitter) Profile Scraper](https://apify.com/socialscrapers/x-profile-scraper) | Followers, Bio and Tweets |
| [X (Twitter) Tweet Scraper](https://apify.com/socialscrapers/x-tweet-scraper) | Latest Posts by Profile |
| [Threads Profile Scraper](https://apify.com/socialscrapers/threads-profile-scraper) | Followers, Bio, Links and Posts |
| [Threads Replies Scraper](https://apify.com/socialscrapers/threads-replies-scraper) | Comments, Authors, Likes and Media |
| [Threads Scraper](https://apify.com/socialscrapers/threads-scraper) | Posts, Profiles, Replies and Search |
| [Threads Search Scraper](https://apify.com/socialscrapers/threads-search-scraper) | Keywords, Hashtags, Top and Recent Posts |
| [Reddit Comments Scraper](https://apify.com/socialscrapers/reddit-comments-scraper) | Threads, Replies, Votes and Authors |
| [Reddit Scraper](https://apify.com/socialscrapers/reddit-scraper) | Posts, Comments, Subreddits, Users and Search |
| [Reddit Search Scraper](https://apify.com/socialscrapers/reddit-search-scraper) | Posts by Keyword, Subreddit and Date |
| [Reddit User Scraper](https://apify.com/socialscrapers/reddit-user-scraper) | Profiles, Karma, Posts and Comments |
| [Subreddit Scraper](https://apify.com/socialscrapers/subreddit-scraper) | Hot, New and Top Posts with Comments |
| [Quora Scraper](https://apify.com/socialscrapers/quora-scraper) | Answers, Questions, Profiles and Topic Search |
| [LinkedIn Ad Library Scraper](https://apify.com/socialscrapers/linkedin-ad-library-scraper) | Ads, Advertisers and Impressions |
| [LinkedIn Job Search Scraper](https://apify.com/socialscrapers/linkedin-job-search-scraper) | Filters, Salaries and New Jobs |
| [LinkedIn Jobs Scraper](https://apify.com/socialscrapers/linkedin-jobs-scraper) | Job Listings, Salaries and Companies |
| [Google Maps Email Extractor](https://apify.com/socialscrapers/google-maps-email-extractor) | Emails, Phones and Social Links |
| [Google Maps Scraper](https://apify.com/socialscrapers/google-maps-scraper) | Places, Phones, Websites, Ratings and Hours |
| [Google News Scraper](https://apify.com/socialscrapers/google-news-scraper) | Headlines, Articles and Search |
| [Google Ads Transparency Scraper](https://apify.com/socialscrapers/google-ads-transparency-scraper) | Ad Creatives and Advertisers |
| [Amazon Product Scraper](https://apify.com/socialscrapers/amazon-product-scraper) | Search Results, Prices, Ratings, ASINs |
| [Indeed Jobs Scraper](https://apify.com/socialscrapers/indeed-jobs-scraper) | Salaries, Full Descriptions, Company Data |
| [Contact Details Scraper](https://apify.com/socialscrapers/contact-details-scraper) | Emails, Phones and Social Links |
| [Telegram Channel Scraper](https://apify.com/socialscrapers/telegram-channel-scraper) | Posts, Views and Media |
| [Doximity Scraper](https://apify.com/socialscrapers/doximity-physician-scraper) | Physician Profiles and Doctor Directory |
| [KevinMD Scraper](https://apify.com/socialscrapers/kevinmd-articles-scraper) | Physician Articles and Author Specialties |
| [Op-Med Scraper](https://apify.com/socialscrapers/opmed-articles-scraper) | Physician Essays and Doctor Profiles |
| [Career Site Jobs Scraper](https://apify.com/socialscrapers/career-site-jobs-scraper) | Greenhouse, Lever, Ashby and Workday |
| [Google Trends Scraper](https://apify.com/socialscrapers/google-trends-scraper) | Interest Over Time, Regions and Queries |

# Actor input Schema

## `profiles` (type: `array`):

TikTok usernames (<code>nasa</code> or <code>@nasa</code>) or profile URLs (<code>https://www.tiktok.com/@nasa</code>). Short share links (<code>https://vm.tiktok.com/…</code>) work too: each is followed to the profile or video it opens. Several in one entry (<code>nasa, natgeo</code> or <code>@nasa @natgeo</code>) are read one by one. Each profile's videos are saved newest first. Profiles that do not exist and private profiles are skipped and never charged.

## `maxVideosPerProfile` (type: `integer`):

How many of each profile's videos to save, newest first. Set <code>0</code> for every video the profile shows. Example: <code>100</code>.

## `videoUrls` (type: `array`):

Single TikTok videos or photo posts: video URLs (<code>https://www.tiktok.com/@nasa/video/7705574810113314061</code>), photo URLs, short share links (<code>https://vm.tiktok.com/…</code>, <code>https://vt.tiktok.com/…</code>, <code>tiktok.com/t/…</code>; one that opens a profile scrapes that profile), mobile links or bare video IDs. A profile link (<code>https://www.tiktok.com/@nasa</code>) here scrapes that profile's videos.

## `hashtags` (type: `array`):

Hashtags with or without the #, or hashtag URLs (<code>https://www.tiktok.com/tag/space</code>, or the same hashtag's link on Instagram, X, Facebook or YouTube). Several in one entry (<code>#funny #cats</code>, <code>funny, cats</code> or <code>funny OR cats</code>) are read one by one. Each hashtag gets the videos TikTok shows on its page, top videos first. Example: <code>space</code>.

## `maxVideosPerHashtag` (type: `integer`):

How many videos to save for each hashtag. Set <code>0</code> for every video TikTok lists on the hashtag's page (about 100 to 200 for a visitor who is not logged in).

## `sounds` (type: `array`):

Sound page URLs (<code>https://www.tiktok.com/music/original-sound-7066027456276581122</code>) or sound IDs. Each sound gets the videos that use it.

## `maxVideosPerSound` (type: `integer`):

How many videos to save for each sound. Set <code>0</code> for every video TikTok lists for it.

## `onlyPostsNewerThan` (type: `string`):

Leave out videos posted before this. Pick a date or an age, or type one: a date (<code>2026-01-31</code>, <code>31/01/2026</code>, <code>Jan 31 2026</code>; a UTC day), an ISO date-time through the API (<code>2026-01-31T18:00:00Z</code>), or an age such as <code>7 days</code>, <code>2w</code>, <code>3 months</code> or <code>yesterday</code>. Applies to profiles, hashtags and sounds; profiles stop reading as soon as they pass the date. Leave empty for no limit.

## `includeProfileInfo` (type: `boolean`):

Also save one profile item per profile: followers, following, total likes, number of videos, bio, bio link, verified badge, avatar and account type.

## `profileDetailsOnly` (type: `boolean`):

Save each profile's details and none of its videos.

## `includeComments` (type: `boolean`):

Save each video's comments as separate items: text, likes, reply count, date, author, and whether the creator liked or pinned it.

## `maxCommentsPerVideo` (type: `integer`):

How many top-level comments to save for each video. Set <code>0</code> for every comment TikTok shows. Example: <code>500</code>.

## `includeReplies` (type: `boolean`):

Also save the replies to each comment, right after it, with <code>parentId</code> set to the comment they answer.

## `maxRepliesPerComment` (type: `integer`):

How many replies to save under each comment. Set <code>0</code> for every reply TikTok shows.

## `proxyConfiguration` (type: `object`):

The scraper picks Apify Proxy's tier itself: datacenter first, residential only when TikTok refuses a request. Any Apify Proxy choice (RESIDENTIAL included) works this way, in the country you pick (the United States by default; TikTok shows each country its own version of the site). Your own proxy URLs are used exactly as given. Without a proxy, requests leave from the server's own country, and TikTok blocks some countries.

## Actor input object example

```json
{
  "profiles": [
    "nasa"
  ],
  "maxVideosPerProfile": 10,
  "maxVideosPerHashtag": 20,
  "maxVideosPerSound": 20,
  "includeProfileInfo": false,
  "profileDetailsOnly": false,
  "includeComments": false,
  "maxCommentsPerVideo": 100,
  "includeReplies": false,
  "maxRepliesPerComment": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "profiles": [
        "nasa"
    ],
    "maxVideosPerProfile": 10,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("socialscrapers/tiktok-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "profiles": ["nasa"],
    "maxVideosPerProfile": 10,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("socialscrapers/tiktok-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "profiles": [
    "nasa"
  ],
  "maxVideosPerProfile": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US"
  }
}' |
apify call socialscrapers/tiktok-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,socialscrapers/tiktok-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/0MP03KW6XDYZFRkqP/builds/UoUuKIK61vedHQ9Fm/openapi.json
