TikTok Videos Scraper avatar

TikTok Videos Scraper

Under maintenance

Pricing

from $0.80 / 1,000 videos

Go to Apify Store
TikTok Videos Scraper

TikTok Videos Scraper

Under maintenance

🔥 ~$0.1/1K videos 🔥 Scrape the videos of TikTok profiles, hashtags, and sounds, or read any video by URL. Each video comes with its hashtags, author, music, video details, and stats (views, likes, comments, shares, saves). Reads the whole video list, or up to a limit you choose.

Pricing

from $0.80 / 1,000 videos

Rating

0.0

(0)

Developer

Kai

Kai

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 hours ago

Last modified

Features

Limited permissions

Share

TikTok Videos Scraper - Video Lists and Stats

Get the videos of TikTok profiles, hashtags, and sounds with their stats. Every public video is one item in the Dataset: description, hashtags, creation time, author with follower counts, music, video details, and counts of views, likes, comments, shares, and saves.

Read the whole video list of a profile, or only the first videos you need. Read the videos of a hashtag or a sound. Add single video URLs to refresh the stats of videos you already know. Run many sources in one run.

Use cases

Creator and brand monitoring

Track what a creator posts and how each video performs. Run the same input on an Apify schedule.

{
"profileUrls": ["https://www.tiktok.com/@nasa"],
"videosPerProfile": 20
}

Use videoId, createTime, desc, hashtags, stats.views, stats.likes, stats.comments, stats.shares, and stats.saves.

Content performance comparison

Compare how videos perform across creators, brands, or competitors.

{
"profileUrls": [
"https://www.tiktok.com/@nasa",
"https://www.tiktok.com/@mrbeast"
],
"videosPerProfile": 50
}

Use author.uniqueId, author.followers, stats.views, stats.likes, stats.shares, stats.saves, and video.duration.

Hashtag research

See which creators, sounds, and co-occurring hashtags go with a hashtag, and how its videos perform.

{
"hashtagUrls": ["https://www.tiktok.com/tag/space"],
"videosPerProfile": 100
}

Use author.uniqueId, desc, hashtags, music.title, stats.views, and stats.likes.

Sound research

Find the videos that use a sound, and see which of them perform best.

{
"musicUrls": ["https://www.tiktok.com/music/original-sound-1234567890"],
"videosPerProfile": 100
}

Copy the sound link from TikTok. Use author.uniqueId, stats.views, stats.likes, and createTime.

Refresh the stats of known videos

Read the current counts of videos that you already track.

{
"videoUrls": ["https://www.tiktok.com/@nasa/video/7665075736742530317"]
}

Use videoId, stats.views, stats.likes, stats.comments, stats.shares, and stats.saves.

Growth tracking

Run one profile on an Apify schedule. Join the runs on videoId, and watch stats.views, stats.likes, and stats.saves move over time. A videoId that the earlier run did not have is a new video. A videoId that the newer run does not have is a video that is gone.

Choose what to collect

Starting pointInputUse it for
One or more profilesprofileUrlsCollect every public video of each profile
The first videos of each sourceAny list and videosPerProfileSample a source, or keep a run short
One or more hashtagshashtagUrlsCollect the videos of each hashtag
One or more soundsmusicUrlsCollect the videos that use each sound
Videos that you already knowvideoUrlsRead the details and stats of each video
Several of theseAny mix of the inputs aboveProfiles, hashtags, sounds, then video URLs

What each video includes

  • Video: ID, URL, description and its language, creation time, hashtags, mentions, and effects
  • Video details: duration, size in pixels, format, bitrate, and cover links
  • Author: handle, display name, bio, verified flag, avatar link, and follower, following, like, and video counts
  • Stats: views, likes, comments, shares, saves, and reposts
  • Music: ID, title, author, album, duration, and links
  • Flags: ad, AI generated, pinned, and whether duets, stitches, and sharing are on
  • Photo posts: the image links
  • Source: the profile, hashtag, sound, or video URL from your input

Read the videos of a profile

Start with a profile URL:

{
"profileUrls": ["https://www.tiktok.com/@nasa"]
}

The Actor saves every public video of the profile. Set videosPerProfile to stop earlier:

{
"profileUrls": ["https://www.tiktok.com/@nasa"],
"videosPerProfile": 20
}

The Actor saves up to 20 videos for each profile. A profile with fewer public videos gives fewer items.

Add several profile URLs to read them in input order. A profile URL looks like https://www.tiktok.com/@handle.

Read the videos of hashtags and sounds

Add hashtag URLs, sound URLs, or both:

{
"hashtagUrls": ["https://www.tiktok.com/tag/space"],
"musicUrls": ["https://www.tiktok.com/music/original-sound-1234567890"],
"videosPerProfile": 30
}

The Actor saves up to 30 videos for each hashtag and for each sound. A hashtag URL looks like https://www.tiktok.com/tag/<name>. A sound URL looks like https://www.tiktok.com/music/<name>-<ID>.

A hashtag or a sound can have a very large number of videos. Set videosPerProfile to keep the run short. The name of the field says "profile", but it works for hashtags and sounds too.

A sound can give fewer videos than TikTok shows for it. One test sound gave 6 videos with no limit.

Read single videos

{
"videoUrls": ["https://www.tiktok.com/@nasa/video/7665075736742530317"]
}

Each entry is a full video URL. It must contain /video/ and the video ID. An entry without them gives an error item. videosPerProfile does not apply to videoUrls.

Some fields are filled only for a video URL. They are empty for a profile, hashtag, or sound. See Which fields are empty for which input.

How results are ordered and limited

Order. The Actor handles all profileUrls first, then all hashtagUrls, then all musicUrls, and last all videoUrls. Each group follows input order. Inside a profile, items follow the profile order: a pinned video first, then the newest videos. Inside a hashtag or a sound, items follow the order that TikTok gives.

Limit. videosPerProfile applies to each profile, each hashtag, and each sound, not to the complete run. The Actor stops at exactly that number. On a profile, a pinned video counts toward it.

Same video twice. A video appears once in one list. It appears again when it is in another source, such as videoUrls and a profile, or a profile and a hashtag. Its inputUrl tells you the source.

Input

Provide at least one profile, hashtag, sound, or video URL.

Input reference

ParameterTypeDefaultEffect
profileUrlsstring[]emptyTikTok profile URLs. The Actor reads the public videos of each profile.
hashtagUrlsstring[]emptyTikTok hashtag URLs. The Actor reads the videos of each hashtag.
musicUrlsstring[]emptyTikTok sound URLs. The Actor reads the videos that use each sound.
videoUrlsstring[]emptyTikTok video URLs. The Actor saves one item for each URL. videosPerProfile does not apply.
videosPerProfileinteger, 0 or more0Upper limit on saved videos for each profile, hashtag, and sound. 0 removes the limit.
proxyConfigurationobject{"useApifyProxy":true}Connection settings for the run. Keep the default.
  • Use full URLs. A profile URL looks like https://www.tiktok.com/@handle. A video URL looks like https://www.tiktok.com/@handle/video/<ID>.
  • A value that is not a URL stops the run before collection.
  • Unknown input fields are ignored.

Output

Each Dataset item is one video. An input URL that the Actor could not read gives one error item in the Errors dataset, not in the Dataset. Every documented video field is present in every video item. A value that is not available is null, an empty list, or 0 for a count. The fields author, stats, music, and video are objects.

Sample video

This video is from @nasa, read from a video URL. The links are removed. It is not a saved Dataset item.

Field reference

FieldType and contents
videoIdstring. The video ID.
videoUrlstring. The link to the video.
inputUrlstring. The URL from your input that gave this video.
descstring. The description. It is empty when the video has none.
descLanguagestring or null. The language code of the description, such as en.
createTimestring or null. The creation time in Unix seconds, such as "1792888427".
locationCreatedstring or null. The country code where the video was made. Filled only for a video URL.
categoriesstring[]. The topic labels of the video, such as Sports. Filled only for a video URL.
hashtagsstring[]. The hashtags of the description, without #.
mentionsstring[]. The accounts that the description mentions, without @.
effectsstring[]. The names of the effects that the video uses. Empty for a profile.
isAdboolean or null. true for a paid ad.
isAiGeneratedboolean or null. true when the video is marked as AI generated. Filled only for a video URL.
isPinnedboolean or null. true for a video that the creator pinned. Filled only for a profile.
duetEnabledboolean or null. Whether other users can make a duet with the video.
stitchEnabledboolean or null. Whether other users can stitch the video.
shareEnabledboolean or null. Whether the video can be shared.
captionLanguagesstring[]. The caption languages that the video offers, such as eng-US.
imagesstring[]. The image links of a photo post. Empty for a video.

video

FieldType and contents
video.durationnumber. The duration in seconds. It is 0 for a photo post.
video.widthnumber or null. The width in pixels.
video.heightnumber or null. The height in pixels.
video.ratiostring or null. The resolution label, such as 720p.
video.definitionstring or null. The quality label, such as 720p.
video.formatstring or null. The file format, such as mp4.
video.codecstring or null. The video codec, such as h264.
video.bitratenumber or null. The bitrate in bits per second.
video.sizenumber or null. The file size in bytes. It is null for a video URL.
video.coverstring or null. A link to the cover image.
video.originCoverstring or null. A link to the original cover image.
video.dynamicCoverstring or null. A link to the animated cover.

author

FieldType and contents
author.idstring. The account ID.
author.uniqueIdstring. The handle, without @.
author.nicknamestring. The display name.
author.verifiedboolean or null. Whether the account is verified.
author.signaturestring or null. The bio.
author.createTimestring or null. The account creation time in Unix seconds. Filled only for a video URL.
author.privateboolean or null. Whether the account is private.
author.sellerboolean or null. Whether the account sells in TikTok Shop. Filled only for a video URL.
author.avatarstring or null. A link to the avatar image.
author.followersnumber or null. The follower count.
author.followingnumber or null. The count of accounts that the author follows.
author.likesnumber or null. The total likes that the account received.
author.videosnumber or null. The video count of the account.
author.likesGivennumber or null. The count of videos that the account liked.

stats

FieldType and contents
stats.viewsnumber. The play count.
stats.likesnumber. The like count.
stats.commentsnumber. The comment count.
stats.sharesnumber. The share count.
stats.savesnumber. The count of users who saved the video.
stats.repostsnumber. The repost count.

music

FieldType and contents
music.idstring or null. The sound ID.
music.titlestring or null. The sound title.
music.authorstring or null. The name of the sound author.
music.albumstring or null. The album, when the sound has one.
music.durationnumber or null. The duration in seconds.
music.playUrlstring or null. A link to the audio file.
music.coverstring or null. A link to the sound cover image.
  • The values in stats are the values at the time of the run. They change over time.
  • TikTok rounds large counts, such as followers of 2200000.
  • Image links expire after about two days. Download the images soon after the run if you need them.

Which fields are empty for which input

Some fields are empty for some inputs. The Actor still saves the video and sets the field to null or an empty list. A filled field can still be empty for one video, for example when the video has no captions.

FieldProfileHashtagSoundVideo URL
locationCreated, categories, isAiGenerated, author.createTime, author.sellerEmptyEmptyEmptyFilled
isPinnedtrue or falsenullnullnull
effectsEmptyFilledFilledFilled
captionLanguagesFilledFilledEmptyFilled
video.sizeFilledFilledFillednull

hashtags and mentions are filled for every input type.

Error items

An input URL that the Actor cannot read gives one error item in the Errors dataset. The Dataset holds only videos. The run goes on with the next URL.

{
"inputUrl": "https://www.tiktok.com/@nasa/video/7000000000000000001",
"error": "The video is removed or private.",
"errorCode": "VIDEO_UNAVAILABLE"
}

An error item has three fields:

FieldType and contents
inputUrlstring. The entry from your input.
errorstring. A short sentence that says what went wrong.
errorCodestring. One of the codes below.
errorCodeMeaning
NOT_A_VIDEO_URLThe entry of videoUrls has no /video/ and video ID.
VIDEO_UNAVAILABLEThe video is removed or private.
PROFILE_UNAVAILABLEThe profile does not exist or is not available.
READ_FAILEDThe profile, hashtag, sound, or video could not be read. Try again later.

Limits and field notes

How many videos can I collect?

videosPerProfile is an upper limit for each profile, hashtag, and sound, not a required result count. The Actor can save fewer videos, for example when a profile has fewer public videos. Set it to 0 to remove the limit.

A profile with no public videos succeeds with an empty Dataset.

Which videos are available?

The Actor reads public data only. Private profiles and age-gated videos are not available.

Are the hashtag videos recent?

Not always. TikTok picks the videos of a hashtag, and many of them are old. Use createTime to see the age of each video.

Why are some fields empty?

Not every video has every field, and some fields are empty for some inputs. The Actor still saves the video. See Which fields are empty for which input.

What happens when a source or video fails?

The Actor gives an error item, writes a warning to the log, and continues with the next entry. The videos that it already saved stay in the Dataset. A profile that does not exist gives its error item in seconds. A hashtag or sound that does not exist can take several minutes before it gives its error item.

If no profile, hashtag, sound, and video can be read, the run fails with the message "No video or profile could be read. Check the URLs and try again." The error items stay in the Errors dataset. A profile with no public videos is not a failure. Invalid input also fails the run with a message that names the problem.

Can a video disappear after I collect it?

Yes. A creator can delete a video or make it private at any time. Compare runs of the same input to find the videos that are gone.

Similar Actors