# TikTok Video Scraper — Profiles, Hashtags & URLs (cheap) (`istmobot/tiktok-scraper-cheap`) Actor

Low-cost TikTok scraper with the same input and output fields as the popular TikTok scraper: videos from hashtags, profiles and video URLs with views, likes, comments, shares, author, music, hashtags and subtitles. Export JSON, CSV, Excel.

- **URL**: https://apify.com/istmobot/tiktok-scraper-cheap.md
- **Developed by:** [Istmobot](https://apify.com/istmobot) (community)
- **Categories:** Social media, Videos, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 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 Video Scraper: profiles, hashtags, trending by country and video download

**A cheaper drop-in alternative that uses the same input and output fields as the most popular TikTok scraper on Apify.** You can keep your existing input JSON, integrations and CSV column mappings. Only the price changes.

| | Price per 1,000 videos | Start fee |
|---|---|---|
| Popular TikTok scraper | $3.70 | $0.005 |
| **This Actor** | **$2.00** | $0.005 |

Optional extras, charged only when you turn them on:

| Extra | Event | Price |
|---|---|---|
| Download the MP4 file | `video-download` | $0.008 per file delivered |
| Trending hashtags of a country | `trending-hashtag` | $0.02 per trending hashtag |

Error rows (private profile, deleted video, unsupported search, invalid URL) are free. A video whose file cannot be fetched is not charged for the download.

### What it scrapes

- **Profiles**: the latest videos of any public account, newest first, with full author data: followers, likes, video count, bio link and seller status.
- **Hashtags**: videos from a hashtag feed, together with the hashtag's view count.
- **Video URLs**: single videos or photo posts, including short `vm.tiktok.com` links.
- **Trending by country**: the videos of the hashtags that are trending in a country this week (Mexico, Colombia, Argentina, Brazil, Spain, the US and 21 more).
- **Video files**: the MP4 of each video, saved to the run's key-value store, with its link in `mediaUrls`.

Each video includes the caption, language, create time, plays, likes, comments, shares, saves, author, music, hashtags, mentions, effect stickers, subtitles links, cover, duration, slideshow images, and whether the post is pinned, sponsored or an ad.

### Input (same field names)

```json
{
  "profiles": ["nasa"],
  "hashtags": ["fyp"],
  "postURLs": ["https://www.tiktok.com/@nasa/video/7665075736742530317"],
  "resultsPerPage": 100,
  "oldestPostDateUnified": "7 days",
  "excludePinnedPosts": false
}
```

Supported filters, all free: `oldestPostDateUnified` (a date or a relative value such as "7 days"; profile scraping stops when it reaches older videos, which makes this a good fit for scheduled monitoring), `newestPostDate`, `leastDiggs`, `mostDiggs` and `excludePinnedPosts`.

### Trending videos by country, with the files

```json
{
  "trendingCountries": ["MX", "CO"],
  "trendingHashtagsPerCountry": 5,
  "resultsPerPage": 10,
  "shouldDownloadVideos": true
}
```

The Actor reads each country's trending hashtags of the last 7 days from TikTok Creative Center, then scrapes the videos of each hashtag. Rows get two extra fields, `trendingCountry` and `trendingRank`. With `shouldDownloadVideos`, `mediaUrls` holds the link to the MP4 file.

You can also do it in two calls: first get the video links with `trendingCountries`, then send the ones you want as `postURLs` with `shouldDownloadVideos: true`.

Countries: US, FR, DE, IT, ES, GB, AR, AU, BR, CA, CO, EG, ID, IL, JP, KR, MY, MX, PH, SA, SG, ZA, TW, TH, TR, AE, VN. TikTok publishes no trends for other countries.

A hashtag trends in a country, but its feed is global: some videos come from other countries. The Actor browses from the first trending country, which makes the feed as local as TikTok allows.

Example cost: 5 trending hashtags with 10 videos each and the files = $0.005 + 5 × $0.02 + 50 × $0.002 + 50 × $0.008 = **$0.61**.

### Output (same fields)

`id, text, textLanguage, createTime, createTimeISO, isAd, hasTikTokShopProduct, authorMeta{…}, musicMeta{…}, webVideoUrl, videoMeta{…}, diggCount, shareCount, playCount, collectCount, commentCount, repostCount, mentions, detailedMentions, hashtags, effectStickers, isSlideshow, isPinned, isSponsored, mediaUrls, input, fromProfileSection / searchHashtag / submittedVideoUrl, isStory, commentsDatasetUrl`

Fields keep the same names, order, types and rounding as the reference scraper. For example, `playCount: 1700000` is the rounded value that TikTok shows.

### Limitations

- **Search queries are not supported.** TikTok search requires a logged-in account. Each search query returns a free error row with `errorCode: SEARCH_NOT_SUPPORTED`.
- **Hashtag feeds are capped by TikTok** at about 100 videos per hashtag for logged-out visitors, and at only a few videos from US IPs. For this reason, the default proxy country is the United Kingdom.
- Video download is available (`shouldDownloadVideos`). Other add-ons of the reference scraper are not: comments, followers, transcription and AI summaries. The matching fields are present and set to `null`.
- Files stay in the run's key-value store for as long as your Apify plan keeps run storage. Download them or move them before that.
- Only the `latest` profile sorting and the `videos` profile section are supported.

### Error rows

Each error row includes `input`, `url`, `errorCode` and `error`. The possible codes are `NOT_FOUND`, `PROFILE_PRIVATE`, `PROFILE_EMPTY`, `POST_NOT_FOUND_OR_PRIVATE`, `INVALID_URL`, `FILTER_NO_PASS`, `SEARCH_NOT_SUPPORTED`, `NO_TRENDS` and `BLOCKED`.

# Actor input Schema

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

TikTok hashtags to scrape videos from, with or without #, e.g. "fyp" or "#cats". Hashtag page URLs work too.

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

How many videos to scrape for each hashtag and each profile. Same field name and meaning as the popular TikTok scraper.

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

On: each video's MP4 file is saved to the run's key-value store and its link is added to `mediaUrls`. Charged per file delivered (event `video-download`); videos whose file cannot be fetched are not charged. Off: data only.

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

TikTok usernames ("nasa", "@nasa") or profile URLs. Scrapes the profile's videos, newest first, with full author data.

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

Skip pinned posts (usually the first videos on a profile).

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

Optional. Only videos uploaded on or after this date, e.g. 2025-01-31, or a relative value like "7 days" or "2 weeks". For profiles, scraping stops once older videos are reached. No extra charge.

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

Optional. Only videos uploaded on or before this date (YYYY-MM-DD). No extra charge.

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

Optional. Minimum number of likes (hearts). No extra charge.

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

Optional. Only videos with fewer likes (hearts) than this. No extra charge.

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

TikTok video or photo URLs, e.g. https://www.tiktok.com/@nasa/video/7665075736742530317. Short vm.tiktok.com links work too.

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

Accepted for compatibility only. TikTok search requires a logged-in account, so each query returns a free error item with errorCode SEARCH_NOT_SUPPORTED. Use hashtags instead.

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

Accepted for compatibility. Only "latest" is supported; other values fall back to latest.

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

Accepted for compatibility. Only "videos" is supported.

## `trendingCountries` (type: `array`):

2-letter country codes, e.g. MX, CO, AR, BR, ES, US. The Actor takes each country's trending hashtags of the last 7 days (TikTok Creative Center) and scrapes their videos. Rows get `trendingCountry` and `trendingRank`. Available: US, FR, DE, IT, ES, GB, AR, AU, BR, CA, CO, EG, ID, IL, JP, KR, MY, MX, PH, SA, SG, ZA, TW, TH, TR, AE, VN.

## `trendingHashtagsPerCountry` (type: `integer`):

How many trending hashtags to take per country, e.g. 10. Each one returns up to "Number of videos per hashtag or profile" videos.

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

Country of the residential IP used to browse TikTok. Hashtag feeds differ by country; logged-out US hashtag feeds are capped by TikTok at a few videos, so "None" uses the United Kingdom (about 100 videos per hashtag). Profiles and video URLs return the same data everywhere. No extra charge. With "Trending by country" and "None", the first trending country is used.

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

Optional. Leave empty to use Apify residential proxy (recommended: TikTok blocks datacenter IPs after one or two requests).

## Actor input object example

```json
{
  "hashtags": [
    "fyp"
  ],
  "resultsPerPage": 100,
  "shouldDownloadVideos": false,
  "excludePinnedPosts": false,
  "profileSorting": "latest",
  "profileScrapeSections": [
    "videos"
  ],
  "trendingHashtagsPerCountry": 10,
  "proxyCountryCode": "None"
}
```

# 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 = {
    "hashtags": [
        "fyp"
    ],
    "resultsPerPage": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("istmobot/tiktok-scraper-cheap").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 = {
    "hashtags": ["fyp"],
    "resultsPerPage": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("istmobot/tiktok-scraper-cheap").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 '{
  "hashtags": [
    "fyp"
  ],
  "resultsPerPage": 100
}' |
apify call istmobot/tiktok-scraper-cheap --silent --output-dataset

```

## MCP server setup

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

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/S9dUeR3kITuW6ry6V/builds/qY3EaSRyWDCbJixCk/openapi.json
