Skip to content
OSINTtools.io

TikTok Scraper (Apify, harshmaur) API

Apify Actor for public TikTok profiles, videos, hashtags, searches, comments and follower lists, callable through Apify's MCP server.

Base URL
https://api.apify.com/v2
Sign-in
API key
Pricing
Pay per request
Format
REST
Endpoints
2

Compiled by OSINTtools.io editors from apify.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

This is a community Apify Actor that scrapes public TikTok data: videos of profiles, hashtags, search keywords, sounds and single video URLs, plus comments, replies and follower lists. It has no endpoints of its own; it is called through the Apify API, which runs the Actor with a JSON input and returns the scraped rows. The Actor page offers an OpenAPI definition with three calls, two of which are listed here.

Every call needs your Apify API token in the token query parameter. The sync call runs the Actor, waits for it and returns the dataset items; the runs call starts a run and returns information about it. The Actor page shows pricing from $0.35 per 1,000 videos; some options (video downloads, AI labels, summaries) are marked as extra cost in the input schema.

The input fields below come from the Actor's published input schema. The page does not document the output fields beyond the ones used in its message template example (authorMeta.name, diggCount, playCount, text, webVideoUrl). Run output also depends on TikTok's own availability; the Actor is maintained by the community, not by Apify.

Quick start

  1. Get a key

    Create an account with TikTok Scraper (Apify, harshmaur) and copy your api key. Where to get it

  2. Make your first request

    Run the TikTok scraper and return its dataset items. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl -X POST 'https://api.apify.com/v2/acts/harshmaur~tiktok-scraper/run-sync-get-dataset-items?token=YOUR_API_KEY' \
      -H 'Content-Type: application/json' \
      -d '{"profiles":["example_user"],"resultsPerPage":10,"profileScrapeSections":["videos"],"commentsPerPost":0}'
  3. Read the response

    A 200 response looks like this.

    [
      {
        "text": "Example caption",
        "webVideoUrl": "https://www.tiktok.com/@example_user/video/1000000000000000000",
        "authorMeta": {
          "name": "example_user"
        },
        "diggCount": 10,
        "playCount": 100
      }
    ]

Authentication

Send your API key in the token query parameter of every request.

Your Apify API token, from API & Integrations in Apify Console.

Get a key from TikTok Scraper (Apify, harshmaur)

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated on the Actor page

Pricing: pay per request.

Run the Actor

Run the TikTok scraper and return its dataset items

POST/acts/harshmaur~tiktok-scraper/run-sync-get-dataset-items

Executes the Actor with the JSON input in the body, waits for it to finish and returns the dataset items. Give at least one of profiles, hashtags, searchQueries, postURLs, musics or startUrls.

Request body (JSON) · 18Show

profilesstring[]

TikTok usernames, with or without the @

hashtagsstring[]

Hashtags, with or without the #

searchQueriesstring[]

Keywords to search for

postURLsstring[]

Links to single videos or photo posts, or bare video IDs

musicsstring[]

Sound links or music IDs

startUrlsstring[]

TikTok links of any kind (profile, hashtag, search, music, video)

resultsPerPageinteger

Most videos from each profile, hashtag, search keyword, music or listing link (default 1)

maxItemsinteger

Hard cap on videos for the whole run

profileScrapeSectionsstring[]

videos, reposts or stories (default videos)

profileSortingstring

latest, popular or oldest (default latest)

maxFollowersPerProfileinteger

Followers to list per profile; 0 skips

maxFollowingPerProfileinteger

Followed accounts to list per profile; 0 skips

commentsPerPostinteger

Most comments (replies included) per video; 0 skips

maxRepliesPerCommentinteger

Replies to collect per comment; 0 skips

oldestPostDateUnifiedstring

Only videos posted on or after this date; through the API a number of days also works

newestPostDatestring

Only videos posted on or before this date

searchSectionstring

Search tab: empty (top), /video or /user

proxyCountryCodestring

Country to load TikTok from; None lets the scraper choose

Response fields · 5Show

textstring

Video caption

webVideoUrlstring

Link to the video

namestring

Author username

diggCountinteger

Likes

playCountinteger

Views

curl -X POST 'https://api.apify.com/v2/acts/harshmaur~tiktok-scraper/run-sync-get-dataset-items?token=YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"profiles":["example_user"],"resultsPerPage":10,"profileScrapeSections":["videos"],"commentsPerPost":0}'
Replace YOUR_API_KEY with your key
Response
[
  {
    "text": "Example caption",
    "webVideoUrl": "https://www.tiktok.com/@example_user/video/1000000000000000000",
    "authorMeta": {
      "name": "example_user"
    },
    "diggCount": 10,
    "playCount": 100
  }
]

Start a run and return information about it

POST/acts/harshmaur~tiktok-scraper/runs

Starts the Actor with the same JSON input as the sync call and returns information about the initiated run without waiting for it to finish.

Request body (JSON) · 4Show

profilesstring[]

TikTok usernames, with or without the @

hashtagsstring[]

Hashtags, with or without the #

searchQueriesstring[]

Keywords to search for

resultsPerPageinteger

Most videos from each input (default 1)

Response fields · 1Show

dataobject

Information about the initiated run

curl -X POST 'https://api.apify.com/v2/acts/harshmaur~tiktok-scraper/runs?token=YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"profiles":["example_user"],"resultsPerPage":10}'
Replace YOUR_API_KEY with your key
Response
{
  "data": {
    "id": "RUN_ID_PLACEHOLDER",
    "status": "RUNNING"
  }
}