![Reddit API Scraper avatar](https://images.apifyusercontent.com/kicTri7wcAcDT8BW1acR6emh-4T0fM_8xadUBpBpQmw/rs:fill:92:92/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/kicTri7wcAcDT8BW1acR6emh-4T0fM_8xadUBpBpQmw/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS90VzB0ZG11N1hBSW9OZXprMi9xRHJ6d2dMamhlQkc5QlJqay1SZWRkaXRfQVBJX1NjcmFwZXIucG5n.webp)
![Reddit API Scraper](https://images.apifyusercontent.com/kicTri7wcAcDT8BW1acR6emh-4T0fM_8xadUBpBpQmw/rs:fill:92:92/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.
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
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
- 20 monthly users
- 4 stars
- 100.0% runs succeeded
- 7.9 days response time
- Created in Dec 2022
- Modified about 1 month ago
Categories