![Reddit Scraper avatar](https://images.apifyusercontent.com/hMSvFE3kBdF0jftxxDxZlWszr1gZ9ZUVkI5mnnpcYNQ/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9GZ0p0akR3SkNMaFJIOXNhTS94aHJ5UFFuZTgza2hMckNXeS1yZWRkaXRfcGFpZC5wbmc.webp)
Reddit Scraper
Try for free
1 day trial then $45.00/month - No credit card required now
View all Actors![Reddit Scraper](https://images.apifyusercontent.com/hMSvFE3kBdF0jftxxDxZlWszr1gZ9ZUVkI5mnnpcYNQ/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9GZ0p0akR3SkNMaFJIOXNhTS94aHJ5UFFuZTgza2hMckNXeS1yZWRkaXRfcGFpZC5wbmc.webp)
![Reddit Scraper](https://images.apifyusercontent.com/hMSvFE3kBdF0jftxxDxZlWszr1gZ9ZUVkI5mnnpcYNQ/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9GZ0p0akR3SkNMaFJIOXNhTS94aHJ5UFFuZTgza2hMckNXeS1yZWRkaXRfcGFpZC5wbmc.webp)
Reddit Scraper
trudax/reddit-scraper
Try for free
1 day trial then $45.00/month - No credit card required now
Unlimited Reddit web scraper to crawl posts, comments, communities, and users without login. Limit web scraping by number of posts or items and extract all data in a dataset in multiple formats.
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
1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7 "startUrls": [
8 {
9 "url": "https://www.reddit.com/r/pasta/comments/vwi6jx/pasta_peperoni_and_ricotta_cheese_how_to_make/"
10 }
11 ],
12 "sort": "new",
13 "maxItems": 10,
14 "maxPostCount": 10,
15 "maxComments": 10,
16 "maxCommunitiesCount": 2,
17 "maxUserCount": 2,
18 "scrollTimeout": 40,
19 "proxy": {
20 "useApifyProxy": true,
21 "apifyProxyGroups": [
22 "RESIDENTIAL"
23 ]
24 }
25}
26EOF
27
28# Run the Actor using an HTTP API
29# See the full API reference at https://docs.apify.com/api/v2
30curl "https://api.apify.com/v2/acts/trudax~reddit-scraper/runs?token=$API_TOKEN" \
31 -X POST \
32 -d @input.json \
33 -H 'Content-Type: application/json'
Developer
Maintained by Community
Actor metrics
- 366 monthly users
- 37 stars
- 99.9% runs succeeded
- 1.2 days response time
- Created in Feb 2022
- Modified 9 days ago
Categories