Reddit API Scraper

  • comchat/reddit-api-scraper
  • Modified
  • Users 27
  • Runs 151
  • Created by Author's avatarComchat

Reddit Scraper is a powerful tool that allows you to extract data from Reddit such as posts by keyword. With Reddit Scraper, you can easily gather valuable information from Reddit without the need to log in. You can easily use this Reddit scraper as an alternative API.

Pay $5.00 for 1,000 results

Reddit API Scraper

Pay $5.00 for 1,000 results

To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.

# Set API token
API_TOKEN=<YOUR_API_TOKEN>

# Prepare Actor input
cat > input.json <<'EOF'
{
  "searchList": [
    "webscraping"
  ],
  "resultsLimit": 5,
  "sortBy": "new",
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
EOF

# Run the Actor
curl "https://api.apify.com/v2/acts/comchat~reddit-api-scraper/runs?token=$API_TOKEN" \
  -X POST \
  -d @input.json \
  -H 'Content-Type: application/json'