![Reddit API Scraper avatar](https://images.apifyusercontent.com/md6akRgywRg52Rd8iztkz4Dpf9km3v_hc7Y5A2TSyeU/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS90VzB0ZG11N1hBSW9OZXprMi9xRHJ6d2dMamhlQkc5QlJqay1SZWRkaXRfQVBJX1NjcmFwZXIucG5n.webp)
Reddit API Scraper
Try for free
Pay $5.00 for 1,000 results
View all Actors![Reddit API Scraper](https://images.apifyusercontent.com/md6akRgywRg52Rd8iztkz4Dpf9km3v_hc7Y5A2TSyeU/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS90VzB0ZG11N1hBSW9OZXprMi9xRHJ6d2dMamhlQkc5QlJqay1SZWRkaXRfQVBJX1NjcmFwZXIucG5n.webp)
![Reddit API Scraper](https://images.apifyusercontent.com/md6akRgywRg52Rd8iztkz4Dpf9km3v_hc7Y5A2TSyeU/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS90VzB0ZG11N1hBSW9OZXprMi9xRHJ6d2dMamhlQkc5QlJqay1SZWRkaXRfQVBJX1NjcmFwZXIucG5n.webp)
Reddit API Scraper
comchat/reddit-api-scraper
Try for free
Pay $5.00 for 1,000 results
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.
Do you want to learn more about this Actor?
Get a demoThe 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
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 "searchList": ["webscraping"],
9 "resultsLimit": 5,
10 "sortBy": "new",
11 "proxy": {
12 "useApifyProxy": True,
13 "apifyProxyGroups": ["RESIDENTIAL"],
14 },
15}
16
17# Run the Actor and wait for it to finish
18run = client.actor("comchat/reddit-api-scraper").call(run_input=run_input)
19
20# Fetch and print Actor results from the run's dataset (if there are any)
21print("š¾ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
22for item in client.dataset(run["defaultDatasetId"]).iterate_items():
23 print(item)
24
25# š Want to learn more š? Go to ā https://docs.apify.com/api/client/python/docs/quick-start
Developer
Maintained by Apify
Actor metrics
- 42 monthly users
- 6 stars
- 99.3% runs succeeded
- Created in Dec 2022
- Modified 3 months ago
Categories