![Reddit Scraper avatar](https://images.apifyusercontent.com/kRLMIxANoXgHBcbl6MwBKUU2LZMMitGsouT0i7iTekc/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9qd1I1RkthV2FHU21rZXEyYi93TUNub2FoN1BwQUdBZDl1RS1yZWRkaXQtbG9nby5wbmc.webp)
Reddit Scraper
Try for free
3 days trial then $40.00/month - No credit card required now
View all Actors![Reddit Scraper](https://images.apifyusercontent.com/kRLMIxANoXgHBcbl6MwBKUU2LZMMitGsouT0i7iTekc/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9qd1I1RkthV2FHU21rZXEyYi93TUNub2FoN1BwQUdBZDl1RS1yZWRkaXQtbG9nby5wbmc.webp)
![Reddit Scraper](https://images.apifyusercontent.com/kRLMIxANoXgHBcbl6MwBKUU2LZMMitGsouT0i7iTekc/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9qd1I1RkthV2FHU21rZXEyYi93TUNub2FoN1BwQUdBZDl1RS1yZWRkaXQtbG9nby5wbmc.webp)
Reddit Scraper
epctex/reddit-scraper
Try for free
3 days trial then $40.00/month - No credit card required now
Tap into the wealth of Reddit's data with our Reddit Scraper. Extract valuable insights from posts, subreddits, comments, and user data effortlessly. Simplify analysis and gain valuable insights from the diverse Reddit community with our user-friendly and efficient tool.
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 "https://www.reddit.com/",
9 "https://www.reddit.com/hot",
10 "https://www.reddit.com/best",
11 "https://www.reddit.com/user/nationalgeographic",
12 "https://www.reddit.com/user/lukaskrivka/comments",
13 "https://www.reddit.com/r/redditisfun/comments/13wxepd/rif_dev_here_reddits_api_changes_will_likely_kill"
14 ],
15 "search": "apify",
16 "maxItems": 20,
17 "endPage": 1,
18 "extendOutputFunction": "($) => { return {} }",
19 "customMapFunction": "(object) => { return {...object} }",
20 "proxy": {
21 "useApifyProxy": true
22 }
23}
24EOF
25
26# Run the Actor using an HTTP API
27# See the full API reference at https://docs.apify.com/api/v2
28curl "https://api.apify.com/v2/acts/epctex~reddit-scraper/runs?token=$API_TOKEN" \
29 -X POST \
30 -d @input.json \
31 -H 'Content-Type: application/json'
Developer
Maintained by Community
Actor metrics
- 67 monthly users
- 4 stars
- 99.1% runs succeeded
- Created in Jun 2023
- Modified 2 days ago
Categories