๐Ÿฏ Youtube Channel & User Scraper (Pay Per Result) avatar
๐Ÿฏ Youtube Channel & User Scraper (Pay Per Result)
Try for free

Pay $0.50 for 1,000 users

View all Actors
๐Ÿฏ Youtube Channel & User Scraper (Pay Per Result)

๐Ÿฏ Youtube Channel & User Scraper (Pay Per Result)

apidojo/youtube-channel-information-scraper
Try for free

Pay $0.50 for 1,000 users

Extreme flexibility with search functionalities enables you to retrieve extensive channel information in detail. Not just that but YouTube Channel Information Scraper offers you Country, Language, and Location geotargeting capabilities. Only $0.50 per 1000 channels!

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "startUrls": [
11        "https://www.youtube.com/channel/UCsXVk37bltHxD1rDPwtNM8Q",
12        "https://www.youtube.com/channel/UCNIuvl7V8zACPpTmmNIqP2A"
13    ],
14    "youtubeHandles": [
15        "@MrBeast",
16        "@babishculinaryuniverse"
17    ],
18    "keywords": [
19        "pixel art",
20        "web development",
21        "gaming",
22        "cooking",
23        "vlogging",
24        "music",
25        "comedy",
26        "education",
27        "technology",
28        "sports",
29        "news",
30        "entertainment",
31        "beauty",
32        "fashion",
33        "health"
34    ],
35    "sort": "r",
36    "maxItems": 1000,
37    "customMapFunction": (object) => { return {...object} }
38};
39
40(async () => {
41    // Run the Actor and wait for it to finish
42    const run = await client.actor("apidojo/youtube-channel-information-scraper").call(input);
43
44    // Fetch and print Actor results from the run's dataset (if any)
45    console.log('Results from dataset');
46    console.log(`๐Ÿ’พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
47    const { items } = await client.dataset(run.defaultDatasetId).listItems();
48    items.forEach((item) => {
49        console.dir(item);
50    });
51})();
52
53// ๐Ÿ“š Want to learn more ๐Ÿ“–? Go to โ†’ https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
  • 13 monthly users
  • 3 stars
  • 100.0% runs succeeded
  • 14 hours response time
  • Created in Dec 2023
  • Modified about 10 hours ago