π― Tiktok Scraper (Pay Per Result)
Pay $0.30 for 1,000 posts
π― Tiktok Scraper (Pay Per Result)
Pay $0.30 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:
Actor Metrics
221 monthly users
-
39 stars
>99% runs succeeded
3.4 hours response time
Created in Dec 2023
Modified 21 hours ago