🏯 Tiktok Scraper (Pay Per Result) avatar

🏯 Tiktok Scraper (Pay Per Result)

Try for free

Pay $0.20 for 1,000 posts

View all Actors
🏯 Tiktok Scraper (Pay Per Result)

🏯 Tiktok Scraper (Pay Per Result)

apidojo/tiktok-scraper
Try for free

Pay $0.20 for 1,000 posts

The most complete and effective solution for extracting data from TikTok.com. User, Profile, Hashtag, Music, Location, Tag, and many other support is just the beginning. The intelligent algorithm allows TikTok Scraper to retrieve any posts/videos around the platform in the blink of an eye!

You can access the 🏯 Tiktok Scraper (Pay Per Result) programmatically from your own JavaScript applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4// Replace the '<YOUR_API_TOKEN>' with your token
5const client = new ApifyClient({
6    token: '<YOUR_API_TOKEN>',
7});
8
9// Prepare Actor input
10const input = {
11    "startUrls": [
12        "https://www.tiktok.com/@billieeilish/video/7050551461734042926",
13        "https://www.tiktok.com/@gordonramsayofficial",
14        "https://www.tiktok.com/search?q=Recipes",
15        "https://www.tiktok.com/tag/duet",
16        "https://www.tiktok.com/music/original-sound-Newcastle-United-7297730198175402784",
17        "https://www.tiktok.com/place/New-York-22535796481546927"
18    ],
19    "maxItems": 1000,
20    "keywords": [
21        "Artificial Intelligence",
22        "podcast"
23    ],
24    "dateRange": "DEFAULT",
25    "location": "US",
26    "customMapFunction": (object) => { return {...object} }
27};
28
29// Run the Actor and wait for it to finish
30const run = await client.actor("apidojo/tiktok-scraper").call(input);
31
32// Fetch and print Actor results from the run's dataset (if any)
33console.log('Results from dataset');
34console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
35const { items } = await client.dataset(run.defaultDatasetId).listItems();
36items.forEach((item) => {
37    console.dir(item);
38});
39
40// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

🏯 Tiktok Scraper (Pay Per Result) API in JavaScript

The Apify API client for JavaScript is the official library that allows you to use 🏯 Tiktok Scraper (Pay Per Result) API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.

Install the apify-client

npm install apify-client

Other API clients include:

Developer
Maintained by Community
Actor metrics
  • 131 monthly users
  • 11 stars
  • 95.3% runs succeeded
  • 2.9 hours response time
  • Created in Dec 2023
  • Modified about 14 hours ago