# TikTok Profile Scraper & Data Extractor: Full Search Results (`h1018y/anvil-tiktok-api`) Actor

No login or cookies needed. Scrapes TikTok videos, profiles, hashtags and search results. Give it video links, profile names, hashtags or search words plus an optional date range; get each video's text, likes, plays, comments, author and music as rows.

- **URL**: https://apify.com/h1018y/anvil-tiktok-api.md
- **Developed by:** [ANVIL Tools](https://apify.com/h1018y) (community)
- **Categories:** Social media, Marketing
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.53 / 1,000 results

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 - Full Search Results

**TikTok Scraper** - TikTok videos from profiles, hashtags and search that scroll until the date limit is reached and retry an empty load.

### What does TikTok Scraper do?

Date limits written as '7 days' make the page scroll until the videos get older than the limit, long scrolls reach past the 10-15 videos search stops at, an empty load is retried once, and profiles can be sorted by likes - same field names as the most used TikTok Scraper.

- Scrolls until the oldest-date limit is reached, so every post in the interval is read (fixes 'not retrieving all posts in the interval')
- Long scroll with a stall check for search and hashtag pages (fixes 'only returns 10-15 videos instead of 100')
- An empty load is retried once before the input is given up, with a log line either way
- profileSorting latest, popular or oldest; date limits accept spans like 7 days
- onlyNew returns just videos not seen last run; same field names as the most used TikTok Scraper

### Who uses TikTok Scraper, and for what

- Marketers - track a hashtag's top videos every morning
- Agencies - read every post a creator made in a campaign month
- Developers - call it from code with a date range and stable fields

### What this TikTok Scraper does that users of the usual tools ask for

- **Search returns more than 10-15 videos** - in the `webVideoUrl` field
- **All posts in the date interval** - in the `createTimeISO` field
- **Every run says which videos are new and which were seen before, so refreshes are visible** - in the `changeType` field

#### Switching takes one minute

The input and result field names are the ones the most used TikTok Scraper has, so the input JSON your code already sends works unchanged and your pipeline reads the same fields - plus the new ones above.

### Why this TikTok Scraper?

Tools with their own field names force code rewrites, and flaky ones lose scheduled users. This TikTok Scraper checks every run and tells you plainly when a page could not be read, instead of returning empty or wrong rows.

### Data you get from TikTok Scraper

Every result is one flat row with these fields (values from a real run):

| Field | Example |
|---|---|
| `text` | pov: first time swimming 😂 💔  #comedy #funny #viral  |
| `diggCount` | 3800000 |
| `shareCount` | 202500 |
| `playCount` | 23600000 |
| `commentCount` | 70800 |
| `collectCount` | 338700 |
| `createTimeISO` | 2026-08-17T18:20:58.000Z |
| `webVideoUrl` | https://www.tiktok.com/@agentoflaughter/video/76750672684930... |
| `locationCreated` | null |
| `isAd` | false |
| `isMuted` | null |
| `hashtags` | \[{"id": "1606334392378370", "name": "comedy", "title": "", "... |
| `id` | 7675067268493004052 |
| `textLanguage` | en |
| `createTime` | 1786990858 |
| `authorMeta` | {"id": "6665668551394148354", "name": "agentoflaughter", "pr... |
| `musicMeta` | {"musicName": "original sound", "musicAuthor": "Agent Of Lau... |
| `videoMeta` | {"height": 1024, "width": 576, "duration": 13, "coverUrl": "... |
| `locationMeta` | null |
| `mediaUrls` | \[] |
| `slideshowImageLinks` | \[] |
| `repostCount` | null |
| `mentions` | \[] |
| `detailedMentions` | \[] |
| `effectStickers` | \["cybershot", "Sahur voice challenge", "XC GFGDS"] |

### How to use TikTok Scraper

1. Press **Start** - the form already holds an example that works.
2. Put in your own input (see the fields on the Input tab).
3. Run it once, or put it on an **Apify Schedule** (with **only new** on, where the form has it) to get just what is new every day; add a **webhookUrl** to get each run's rows sent to your own system, Zapier, Make or Slack.
4. Download the results as JSON, CSV or Excel, or send them to Google Sheets, Zapier, Make, the Apify API or an AI agent (Apify MCP server).

#### Input example

```json
{
  "profiles": [
    "tiktok"
  ],
  "hashtags": [],
  "searchQueries": [],
  "postURLs": [
    "https://www.tiktok.com/@tiktok/video/7106594312292453675"
  ],
  "resultsPerPage": 3,
  "profileScrapeSections": [
    "videos"
  ],
  "profileSorting": "latest",
  "excludePinnedPosts": false,
  "oldestPostDateUnified": "",
  "newestPostDate": "",
  "maxFollowersPerProfile": 0,
  "maxFollowingPerProfile": 0,
  "searchSection": "",
  "maxProfilesPerQuery": 10,
  "videoSearchSorting": "0",
  "videoSearchDateFilter": "0",
  "scrapeRelatedSearchWords": false,
  "scrapeRelatedVideos": false,
  "scrapeAdditionalAuthorMeta": false,
  "shouldDownloadVideos": false,
  "shouldDownloadCovers": false,
  "shouldDownloadSlideshowImages": false,
  "shouldDownloadAvatars": false,
  "shouldDownloadMusicCovers": false,
  "downloadSubtitlesOptions": "NEVER_DOWNLOAD_SUBTITLES",
  "aiVideoDescription": false,
  "aiVideoSummary": false,
  "commentsPerPost": 0,
  "topLevelCommentsPerPost": 0,
  "maxRepliesPerComment": 0,
  "proxyCountryCode": "None",
  "useApifyProxy": true,
  "proxyGroups": [],
  "onlyNew": false
}
```

#### Output example (a real run)

```json
[
  {
    "text": "pov: first time swimming 😂 💔  #comedy #funny #viral ",
    "diggCount": 3800000,
    "shareCount": 202500,
    "playCount": 23600000,
    "commentCount": 70800,
    "collectCount": 338700,
    "createTimeISO": "2026-08-17T18:20:58.000Z",
    "webVideoUrl": "https://www.tiktok.com/@agentoflaughter/video/7675067268493004052",
    "locationCreated": null,
    "isAd": false,
    "isMuted": null,
    "hashtags": [
      {
        "id": "1606334392378370",
        "name": "comedy",
        "title": "",
        "cover": ""
      },
      {
        "id": "5424",
        "name": "funny",
        "title": "What's so #Funny?",
        "cover": ""
      },
      {
        "id": "20884",
        "name": "viral",
        "title": "¡descubre las canciones en tendencia! 🔥➡️ https://bit.ly/TendenciasTikTok_LATAM",
        "cover": "https://p19-common-sign.tiktokcdn-us.com/musically-maliva-obj/8e4d8102460a60717c89acc2d6367a16.png~tplv-tiktokx-origin.image?dr=9627&x-expires=1793548800&x-signature=xgKgHQfAKC5Nhgrtx0ObpIBXHyI%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=9b759fb9&idc=useast8"
      }
    ],
    "id": "7675067268493004052",
    "textLanguage": "en",
    "createTime": 1786990858,
    "authorMeta": {
      "id": "6665668551394148354",
      "name": "agentoflaughter",
      "profileUrl": "https://www.tiktok.com/@agentoflaughter",
      "nickName": "Agent Of Laughter",
      "verified": true,
      "signature": "Horror Just Got Funny! 😂\n✉️ agentoflaughter@gmail.com\nSymphonic One is OUT 👇🏻",
      "avatar": "https://p19-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/7315108118353870853~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=9640&refresh_token=f9f73e81&x-expires=1793700000&x-signature=DxIo1jPAbqGQJ1wfptu%2BvyAvsb0%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast8",
      "fans": 14800000,
      "following": 370,
      "heart": 136200000,
      "video": 200
    },
    "musicMeta": {
      "musicName": "original sound",
      "musicAuthor": "Agent Of Laughter",
      "musicOriginal": true,
      "playUrl": "https://v16m.tiktokcdn-us.com/65afcf566f258d09e1506f2bf44278c9/6ae762eb/video/tos/alisg/tos-alisg-v-27dcd7/oAPAciRElAADiIDqGWCQCaYUd1AoEyAUVBDNy/?a=1233&bti=ODszNWYuMDE6&&bt=125&ft=GSDrKInz7ThuB3yGXq8Zmo&mime_type=audio_mpeg&rc=M3BnOm85cjZvZDMzODU8NEBpM3BnOm85cjZvZDMzODU8NEAwXjVpMmQ0Ly5hLS1kMS1zYSMwXjVpMmQ0Ly5hLS1kMS1zcw%3D%3D&vvpl=1&l=202611011003420B207D56A4B7309A0A29&btag=e00070000",
      "coverMediumUrl": "https://p16-comm
```

One flat row per result.

### Built for pipelines

- **Field names never change** - fixes and new features only ever add fields, so your code keeps working.
- **Every row has the same shape** - a missing value is `null`, never a dropped field.
- **A plain status line** on every run - how many results, and on a problem what to change in the input - for your logs and for AI agents.
- **Runs on its own** - put it on an Apify Schedule and add a `webhookUrl`: each run's rows go straight to your system, Zapier, Make or Slack.

### How much does TikTok Scraper cost?

You pay only per result (pay per event) - no monthly fee, no minimum, and the price per result is lower on Apify's Bronze, Silver and Gold plans. The exact price is on the **Pricing** tab. Apify's free plan credit is enough to try it on real input.

| You want | What you pay for |
|---|---|
| A quick test with the example | a few results |
| A daily scheduled run | only the rows that run returns |
| A big one-off export | the results delivered - set a maximum in the input |

### Also searched as

- tiktok api
- tiktok video scraper
- tiktok hashtag scraper
- tiktok profile scraper
- tiktok monitor

### FAQ

**Does TikTok Scraper need a login, cookies or an API key?** No. It reads public pages only.

**Can I run TikTok Scraper on a schedule?** Yes - with Apify Schedules; each run returns fresh rows.

**Can I call it from Python, JavaScript or an AI agent?** Yes - through the Apify API, the Apify client libraries or the Apify MCP server.

**Is it legal?** It collects only data anyone can see without logging in. You are responsible for using it within the source site's terms and data protection law (GDPR, CCPA).

**What if the site blocks a request?** The run retries from a fresh connection and, if it still cannot read the page, stops with a clear message - never with made-up rows.

**Do I need proxies?** No setup needed - TikTok Scraper uses Apify Proxy by default where the site needs it.

### Troubleshooting

- **No results:** check the input (a public URL or a search term that returns results in a normal browser), then try the example input once.
- **Fewer results than expected:** raise the maximum in the input; some sites show only a part of their data without logging in, and TikTok Scraper never logs in.
- **The run stopped with a message:** the message says what the site answered; run it again later or with fewer items.

### Your feedback

Missing a field, found a bug, or need another site? Open an issue on the **Issues** tab - issues are answered and fixed. If TikTok Scraper saved you time, a short review on this page helps others find it.

Data source: [www.tiktok.com](https://www.tiktok.com)

### More tools from this developer

- [Tweet Scraper: Tweet Details by URL, No Login or Cookies](https://apify.com/h1018y/anvil-tweet-scraper)
- [YouTube Thumbnail Downloader: Bulk, Every Size & Titles](https://apify.com/h1018y/anvil-youtube-thumbnail-downloader)
- [ML Conference Finder: NeurIPS, ICLR & ICML Alternatives](https://apify.com/h1018y/anvil-ml-conference-finder)
- [YouTube Transcript Scraper: Find Every Moment a Word Is Said](https://apify.com/h1018y/anvil-youtube-transcript-scraper)
- [Facebook Ads Library Scraper: Only New Ads & Days Running](https://apify.com/h1018y/anvil-facebook-ads-library-scraper)
- [Reddit Scraper: Keyword Alerts for New Posts & Comments](https://apify.com/h1018y/anvil-reddit-scraper)
- [Twitter Scraper: New Tweets From Any X Account, No Login](https://apify.com/h1018y/anvil-twitter-scraper)
- [Facebook Page Monitor: New Posts & Engagement Growth](https://apify.com/h1018y/anvil-facebook-posts-scraper)

# Actor input Schema

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

TikTok profile names or links to read videos from, one per line, for example tiktok or https://www.tiktok.com/@tiktok.

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

Hashtags to read videos from, without the # sign, one per line, for example fyp.

## `searchQueries` (type: `array`):

Words to search TikTok videos for, one per line, for example cooking pasta.

## `postURLs` (type: `array`):

Direct links to TikTok videos, for example https://www.tiktok.com/@tiktok/video/7106594312292453675.

## `resultsPerPage` (type: `integer`):

How many videos to return for each profile, hashtag or search query, for example 20.

## `profileScrapeSections` (type: `array`):

Which part of a profile to read: videos. Reposts are not supported and are ignored.

## `profileSorting` (type: `string`):

Order of a profile's videos: latest (default), popular (most likes first) or oldest. Popular and oldest look at about three times the asked number of videos first.

## `excludePinnedPosts` (type: `boolean`):

Turn on to leave out the videos a creator pinned to the top of the profile.

## `oldestPostDateUnified` (type: `string`):

Only videos from this date on, written as 2025-06-30 or as a span like 7 days or 1 month. The page is scrolled until videos get older than this.

## `newestPostDate` (type: `string`):

Only videos up to this date, written as 2025-06-30 or as a span like 7 days. Empty means no limit.

## `mostDiggs` (type: `integer`):

Skip videos with more likes than this number, for example 100000.

## `leastDiggs` (type: `integer`):

Skip videos with fewer likes than this number, for example 1000.

## `maxFollowersPerProfile` (type: `integer`):

Kept for compatibility: follower lists need a login and are not returned.

## `maxFollowingPerProfile` (type: `integer`):

Kept for compatibility: following lists need a login and are not returned.

## `searchSection` (type: `string`):

Where to search: /video for videos or /user for accounts. Empty means videos.

## `maxProfilesPerQuery` (type: `integer`):

Kept for compatibility: account search results are not returned yet.

## `videoSearchSorting` (type: `string`):

Kept for compatibility: TikTok decides the order of search results.

## `videoSearchDateFilter` (type: `string`):

Kept for compatibility: use the post date fields to filter by date.

## `scrapeRelatedSearchWords` (type: `boolean`):

Kept for compatibility: related words are not returned.

## `scrapeRelatedVideos` (type: `boolean`):

Kept for compatibility: related videos are not returned.

## `scrapeAdditionalAuthorMeta` (type: `boolean`):

Kept for compatibility: author details that the public page shows are always returned.

## `shouldDownloadVideos` (type: `boolean`):

Kept for compatibility: files are not downloaded, links are returned instead.

## `shouldDownloadCovers` (type: `boolean`):

Kept for compatibility: files are not downloaded, links are returned instead.

## `shouldDownloadSlideshowImages` (type: `boolean`):

Kept for compatibility: files are not downloaded, links are returned instead.

## `shouldDownloadAvatars` (type: `boolean`):

Kept for compatibility: files are not downloaded, links are returned instead.

## `shouldDownloadMusicCovers` (type: `boolean`):

Kept for compatibility: files are not downloaded, links are returned instead.

## `videoKvStoreIdOrName` (type: `string`):

Kept for compatibility: not used because videos are not downloaded.

## `downloadSubtitlesOptions` (type: `string`):

Kept for compatibility: subtitles are not returned.

## `aiVideoDescription` (type: `boolean`):

Kept for compatibility: AI descriptions are not produced.

## `aiVideoSummary` (type: `boolean`):

Kept for compatibility: AI summaries are not produced.

## `commentsPerPost` (type: `integer`):

Kept for compatibility: comments are not returned, the comment count is.

## `topLevelCommentsPerPost` (type: `integer`):

Kept for compatibility: comments are not returned, the comment count is.

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

Kept for compatibility: comments are not returned, the comment count is.

## `proxyCountryCode` (type: `string`):

Kept for compatibility: the Apify proxy picks the country; leave the default.

## `useApifyProxy` (type: `boolean`):

Send requests through the Apify proxy; the site usually refuses plain data center traffic.

## `proxyGroups` (type: `array`):

Optional Apify proxy groups to use, for example RESIDENTIAL. Leave empty for the default.

## `onlyNew` (type: `boolean`):

Turn on to return only results not seen in the previous run with the same input; good for a schedule.

## `webhookUrl` (type: `string`):

Optional. An https address - your own system, Zapier, Make or a Slack incoming webhook - that gets each run's results as JSON (with 'only new' on: just the new ones). Example: https://hooks.slack.com/services/T000/B000/XXXX

## Actor input object example

```json
{
  "profiles": [
    "tiktok"
  ],
  "hashtags": [],
  "searchQueries": [],
  "postURLs": [
    "https://www.tiktok.com/@tiktok/video/7106594312292453675"
  ],
  "resultsPerPage": 3,
  "profileScrapeSections": [
    "videos"
  ],
  "profileSorting": "latest",
  "excludePinnedPosts": false,
  "oldestPostDateUnified": "",
  "newestPostDate": "",
  "maxFollowersPerProfile": 0,
  "maxFollowingPerProfile": 0,
  "searchSection": "",
  "maxProfilesPerQuery": 10,
  "videoSearchSorting": "0",
  "videoSearchDateFilter": "0",
  "scrapeRelatedSearchWords": false,
  "scrapeRelatedVideos": false,
  "scrapeAdditionalAuthorMeta": false,
  "shouldDownloadVideos": false,
  "shouldDownloadCovers": false,
  "shouldDownloadSlideshowImages": false,
  "shouldDownloadAvatars": false,
  "shouldDownloadMusicCovers": false,
  "downloadSubtitlesOptions": "NEVER_DOWNLOAD_SUBTITLES",
  "aiVideoDescription": false,
  "aiVideoSummary": false,
  "commentsPerPost": 0,
  "topLevelCommentsPerPost": 0,
  "maxRepliesPerComment": 0,
  "proxyCountryCode": "None",
  "useApifyProxy": true,
  "proxyGroups": [],
  "onlyNew": false
}
```

# Actor output Schema

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

All result rows (open as table, JSON, CSV or Excel).

# 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": [
        "tiktok"
    ],
    "postURLs": [
        "https://www.tiktok.com/@tiktok/video/7106594312292453675"
    ],
    "resultsPerPage": 3,
    "useApifyProxy": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("h1018y/anvil-tiktok-api").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": ["tiktok"],
    "postURLs": ["https://www.tiktok.com/@tiktok/video/7106594312292453675"],
    "resultsPerPage": 3,
    "useApifyProxy": True,
}

# Run the Actor and wait for it to finish
run = client.actor("h1018y/anvil-tiktok-api").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": [
    "tiktok"
  ],
  "postURLs": [
    "https://www.tiktok.com/@tiktok/video/7106594312292453675"
  ],
  "resultsPerPage": 3,
  "useApifyProxy": true
}' |
apify call h1018y/anvil-tiktok-api --silent --output-dataset

```

## MCP server setup

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

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/KUdhhuOBDNOZdNJyZ/builds/MiTTRexaCGwTjN9cT/openapi.json
