Reddit Scraper avatar
Reddit Scraper
Try for free

3 days trial then $40.00/month - No credit card required now

View all Actors
Reddit Scraper

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 mode

Node.js

Python

curl

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
  • 70 monthly users
  • 99.3% runs succeeded
  • 0.0 days response time
  • Created in Jun 2023
  • Modified about 23 hours ago