๐Ÿฏ Youtube Scraper (Pay Per Result) avatar

๐Ÿฏ Youtube Scraper (Pay Per Result)

Try for free

Pay $0.50 for 1,000 videos

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

๐Ÿฏ Youtube Scraper (Pay Per Result)

apidojo/youtube-scraper
Try for free

Pay $0.50 for 1,000 videos

Experience unparalleled efficiency and depth with its ultra-fast capabilities in searching, URL, playlist, channel, and profile scraping. It comes equipped with a variety of filters to customize your data collection precisely. Plus, it's incredibly affordable at only $0.50 per 1000 videos!

You can access the ๐Ÿฏ Youtube Scraper (Pay Per Result) programmatically from your own Python 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.

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4# Replace '<YOUR_API_TOKEN>' with your token.
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7# Prepare the Actor input
8run_input = {
9    "startUrls": [
10        "https://www.youtube.com/results?search_query=never+gonna+give+you+up",
11        "https://www.youtube.com/watch?v=xuCn8ux2gbs",
12        "https://www.youtube.com/channel/UCsXVk37bltHxD1rDPwtNM8Q",
13        "https://www.youtube.com/watch?v=kXYiU_JCYtU&list=PL6Lt9p1lIRZ311J9ZHuzkR5A3xesae2pk",
14        "https://www.youtube.com/shorts/vVTa1_hm4n4",
15        "https://www.youtube.com/results?search_query=recipes",
16        "https://www.youtube.com/@gordonramsay/shorts",
17    ],
18    "youtubeHandles": [
19        "@MrBeast",
20        "@babishculinaryuniverse",
21    ],
22    "keywords": ["pixel art"],
23    "uploadDate": "all",
24    "duration": "all",
25    "features": "all",
26    "sort": "r",
27    "maxItems": 1000,
28    "customMapFunction": "(object) => { return {...object} }",
29}
30
31# Run the Actor and wait for it to finish
32run = client.actor("apidojo/youtube-scraper").call(run_input=run_input)
33
34# Fetch and print Actor results from the run's dataset (if there are any)
35print("๐Ÿ’พ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
36for item in client.dataset(run["defaultDatasetId"]).iterate_items():
37    print(item)
38
39# ๐Ÿ“š Want to learn more ๐Ÿ“–? Go to โ†’ https://docs.apify.com/api/client/python/docs/quick-start

๐Ÿฏ Youtube Scraper (Pay Per Result) API in Python

The Apify API client for Python is the official library that allows you to use ๐Ÿฏ Youtube Scraper (Pay Per Result) API in Python, providing convenience functions and automatic retries on errors.

Install the apify-client

pip install apify-client

Other API clients include:

Developer
Maintained by Community

Actor Metrics

  • 84 monthly users

  • 25 stars

  • 96% runs succeeded

  • 5.5 hours response time

  • Created in Dec 2023

  • Modified 10 hours ago