TikTok Scraper avatar
TikTok Scraper

Pricing

Pay per event

Go to Store
TikTok Scraper

TikTok Scraper

clockworks/tiktok-scraper

Developed by

Clockworks

Maintained by Apify

Extract data from TikTok videos, hashtags, and users. Use URLs or search queries to scrape TikTok profiles, hashtags, posts, URLs, shares, followers, hearts, names, video, and music-related data. Export scraped data, run the scraper via API, schedule and monitor runs or integrate with other tools.

4.5 (22)

Pricing

Pay per event

181

Monthly users

2.6k

Runs succeeded

>99%

Response time

2.9 days

Last modified

2 days ago

8M

Usage cost inconcistency

Closed
8Media opened this issue
7 months ago

Run 1: Scraping 4 videos per profile Run 2: Scraping 1 video per profile

Why did I pay more for 1/4 of the results? Can anyone clarify? (Screenshot attached)

lukas.prusa avatar

Hi, thanks for opening this issue!

This is the expected behavior, as in both cases, the actual work is pretty much the same. Let me explain:

Basically, this just has to do with the pagination of the videos, which come in batches of around 20-30 at once. As an example, when opening a new profile page, we get like 20 videos. To get 1 or 4 videos will cost the same, because both counts require the same amount of web requests.

In your case then, if you want to scrape thousands of profiles, feel free to set the number of videos to something like 15 and the cost will still stay mostly the same. Just a note, pinned posts count towards the initial videos batch, so consider turning excludePinnedPosts off to not go over the batch limit and to not enqueue the next one request.

I hope this helps, thanks!

8M

8Media

7 months ago

Hey Lukas! Thanks for your reply.

Sorry for the follow up question but I just want to confirm for sure before I go ahead and overspend. You're telling me that if I set the amount of videos to scrape per creator to 15, I'll pay the same per creator than if I set this to 5?

lukas.prusa avatar

TDLR: Almost yes

Checking it out further, it turns out this uses more requests on profiles with fewer videos than the desired amount, in this case 15. The scraper basically has to make sure that there are no more videos possible to scrape, even though I have an idea of how this can be optimized.

This means that most profiles will get scraped for the same price, but profiles with only few videos will use additional requests, and hence cost more. Also, the stuff that I said previously is still relevant. You still have to get under one batch, which 15 should be good enough for 95% of the time, but you can easily experiment with that on your own.

I will reopen this issue and keep you updated here with the optimization, thanks!

svpetrenko avatar

By the way, we also have this actor https://console.apify.com/actors/OtzYfK1ndEGdwWFKQ/input, which has a predictable pricing model based on the number of results and it would be cheaper in the second case (but not the first one)

lukas.prusa avatar

Hi again, I'm happy to announce that we've updated the scraper with the fixed pagination!

It will now correctly identify profiles with only a few videos early and not waste additional requests on them.

Try it out and let me know how it works now, thanks and happy scraping!

8M

8Media

6 months ago

Thanks!!

Pricing

Pricing model

Pay per event 

This Actor is paid per result. You are not charged for the Apify platform usage, but only a fixed price for each dataset of 1,000 items in the Actor outputs.

Actor start

$0.005

Flat charge for starting an Actor run.

Result

$0.003

Each result (e.g.video or profile) written to the dataset.

Add-on: Date filter applied

$0.001

Extra cost per item scraped with a date filter.

Add-on: Video download

$0.001

Each video downloaded to the Key Value Store.

Add-on: Scrape as in [country]

$0.001

Each video scraped available only for chosen country with residential proxy.