Youtube Comments Scraper avatar
Youtube Comments Scraper
Try for free

Pay $0.10 for 1,000 comments

View all Actors
Youtube Comments Scraper

Youtube Comments Scraper

apidojo/youtube-comments-scraper
Try for free

Pay $0.10 for 1,000 comments

YouTube Comments Scraper, the ultimate solution for extensive YouTube comments data retrieval. With its high-speed scraping abilities, it provides unmatched effectiveness and thoroughness. Additionally, its cost-effectiveness is unmatched, priced at just $0.10 per 1000 comments!

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 mode

Node.js

Python

curl

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4client = ApifyClient("<YOUR_API_TOKEN>")
5
6# Prepare the Actor input
7run_input = {
8    "startUrls": [
9        "https://www.youtube.com/watch?v=xuCn8ux2gbs",
10        "https://www.youtube.com/shorts/vVTa1_hm4n4",
11    ],
12    "sort": "top",
13    "maxItems": 1000,
14    "customMapFunction": "(object) => { return {...object} }",
15}
16
17# Run the Actor and wait for it to finish
18run = client.actor("apidojo/youtube-comments-scraper").call(run_input=run_input)
19
20# Fetch and print Actor results from the run's dataset (if there are any)
21for item in client.dataset(run["defaultDatasetId"]).iterate_items():
22    print(item)
Developer
Community logoMaintained by Community
Actor metrics
  • 16 monthly users
  • 99.0% runs succeeded
  • 0.7 days response time
  • Created in Jan 2024
  • Modified about 4 hours ago

You might also like these Actors