1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "videoUrls": [
12 "https://www.tiktok.com/@garyvee/video/7114641064446676267",
13 "https://www.tiktok.com/@garyvee/video/7709573267262082335",
14 "https://www.tiktok.com/@garyvee/video/7709570880371756302",
15 "https://www.tiktok.com/@natgeo/video/7683891628230315295",
16 "https://www.tiktok.com/@natgeo/video/7710023115882974494",
17 "https://www.tiktok.com/@natgeo/video/7709652827618004238",
18 "https://www.tiktok.com/@natgeo/video/7709559310069632269",
19 "https://www.tiktok.com/@mrbeast/video/7707741942771191054",
20 "https://www.tiktok.com/@mrbeast/video/7707342481465036062",
21 "https://www.tiktok.com/@mrbeast/video/7705603633437527327",
22 "https://www.tiktok.com/@mrbeast/video/7703595535009156383",
23 "https://www.tiktok.com/@khaby.lame/video/7709194461913419038",
24 "https://www.tiktok.com/@khaby.lame/video/7704740944427388191",
25 "https://www.tiktok.com/@khaby.lame/video/7697307919943060767",
26 "https://www.tiktok.com/@nba/video/7702956518437702942",
27 "https://www.tiktok.com/@nba/video/7702677121671597342",
28 "https://www.tiktok.com/@nba/video/7709983910251302174",
29 "https://www.tiktok.com/@tasty/video/7692487447233498382",
30 "https://www.tiktok.com/@tasty/video/7709960829289925918",
31 "https://www.tiktok.com/@beautifuldestinations/video/7703649328614673697",
32 "https://www.tiktok.com/@beautifuldestinations/video/7706974659270577431",
33 "https://www.tiktok.com/@garyvee/video/7528533857688243511",
34 "https://www.tiktok.com/@mrbeast/video/7702441498515688734",
35 "https://vt.tiktok.com/ZSuxBQqXr/",
36 "7632420077161270559",
37 "https://www.tiktok.com/@natgeo/video/7709513691019988238"
38 ],
39 "proxyConfiguration": {
40 "useApifyProxy": false
41 }
42};
43
44
45const run = await client.actor("transparent_meteorite/tiktok-video-scraper").call(input);
46
47
48console.log('Results from dataset');
49console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
50const { items } = await client.dataset(run.defaultDatasetId).listItems();
51items.forEach((item) => {
52 console.dir(item);
53});
54
55