Reddit API Scraper

Pay $5.00 for 1,000 results

Reddit API Scraper

Reddit API Scraper

comchat/reddit-api-scraper

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.

What is Reddit API Scraper?

Reddit API Scraper is a web scraping tool created to extract data from Reddit such as posts and user details by keyword. It can also scrape posts in specific subreddits. This Search API doesn’t need Reddit API keys and is a good fit for you if you need to:

  • scrape posts from Reddit search by keywords
  • scrape posts from subreddits by keywords
  • sort Reddit data by top, newest, most relevant, or most comments first
  • get up to 250 results per search term
  • export Reddit data via API or download in JSON, Excel, CSV formats

What data can I extract from Reddit?

With this Reddit API, you will be able to extract the following data from Reddit:

📌 Reddit posts💬 Reddit comments
👤 User details🔍 Subreddit details
📃 Post title and text⏱ Timestamps
🔗 Post URL🌠 Image URL
🌐 Community URL📚 Category

How much does it cost to scrape Reddit data?

This scraper uses the pay-per-result pricing model, so your costs can be easily calculated. It will cost you $5 to scrape 1,000 search results, so 0.005 USD per item.

Apify’s Free plan provides $5 free usage credits every month. For those credits, you can get up to 1,000 results from Reddit for free.

If you need to get more Reddit data regularly, you should grab an Apify subscription. We recommend our $49/month Starter plan - that one could get you up to 10,000 Reddit results every month. Or get up to 100,000 results for $499 with the Scale plan - wow!

How to scrape Reddit data?

You don't need any programming skills or experience to use Reddit Scraper.

  1. Create a free Apify account using your email.
  2. Find Reddit API Scraper.
  3. Choose a keyword or subreddit to scrape posts.
  4. Click "Start" and wait for the data to be extracted.
  5. Download your data extracted from Reddit in JSON, XML, CSV, Excel, or HTML.

⬇️ Input example

This scraper will extract posts based on a keyword or a subreddit name. To get started, simply enter a search term or the name of a subreddit. You’ll extract all data associated with specific keywords in communities and posts. You can also specify the number of posts to scrape. Click on the input tab for a full explanation of input in JSON.

{ "over18": true, "proxy": { "useApifyProxy": true, "apifyProxyGroups": [ "RESIDENTIAL" ] }, "resultsLimit": 5, "searchList": [ "lake" ], "sortBy": "new", "subRedditList": [ "explainlikeimfive" ] }

⬆️ Output example

The scraped results will be shown as a dataset which you can find in the Storage tab. Note that the output will be organized as a table for viewing convenience.

Here’s a JSON example of one scraped place on Reddit with all the details. You can preview all the fields and download the file with Reddit data in various formats (JSON, CSV, Excel, and more).

{ "metaData": { "keyword": "lake", "subRedditName": "explainlikeimfive" }, "id": "15bwpbo", "subreddit": "IdahoNSFW", "title": "Any F or MF looking to hang out on a boat out on lake couer d alene?", "subreddit_name_prefixed": "r/IdahoNSFW", "name": "t3_15bwpbo", "link_flair_text_color": "dark", "subreddit_type": "public", "author_fullname": "t2_61mm5fwpd", "crosspost_parent_list": [ { "approved_at_utc": null, "subreddit": "IdahoSwingers", "selftext": "Taking boat out on the lake this weekend and looking for someone to share in the sun and fun. Maybe boat up to Harrison and take in the sites and have a lot of fun.\nHit me up🏴‍☠️ SM 6’3 athletic and got looking to enjoy the sun", "author_fullname": "t2_61mm5fwpd", "saved": false, "mod_reason_title": null, "gilded": 0, "clicked": false, "title": "Any F or MF looking to hang out on a boat out on lake couer d alene?", "link_flair_richtext": [], "subreddit_name_prefixed": "r/IdahoSwingers", "hidden": false, "pwls": null, "link_flair_css_class": null, "downs": 0, "top_awarded_type": null, "hide_score": true, "name": "t3_15bwo7l", "quarantine": false, "link_flair_text_color": "dark", "upvote_ratio": 1, "author_flair_background_color": null, "subreddit_type": "public", "ups": 1, "total_awards_received": 0, "media_embed": {}, "author_flair_template_id": null, "is_original_content": false, "user_reports": [], "secure_media": null, "is_reddit_media_domain": true, "is_meta": false, "category": null, "secure_media_embed": {}, "link_flair_text": null, "can_mod_post": false, "score": 1, "approved_by": null, "is_created_from_ads_ui": false, "author_premium": false, "thumbnail": "", "edited": false, "author_flair_css_class": null, "author_flair_richtext": [], "gildings": {}, "content_categories": null, "is_self": false, "mod_note": null, "created": 1690548845, "link_flair_type": "text", "wls": null, "removed_by_category": null, "banned_by": null, "author_flair_type": "text", "domain": "i.redd.it", "allow_live_comments": false, "selftext_html": "<!-- SC_OFF --><div class=\"md\"><p>Taking boat out on the lake this weekend and looking for someone to share in the sun and fun. Maybe boat up to Harrison and take in the sites and have a lot of fun.\nHit me up🏴‍☠️ SM 6’3 athletic and got looking to enjoy the sun</p>\n</div><!-- SC_ON -->", "likes": null, "suggested_sort": null, "banned_at_utc": null, "url_overridden_by_dest": "https://i.redd.it/qbhmjksndpeb1.jpg", "view_count": null, "archived": false, "no_follow": true, "is_crosspostable": false, "pinned": false, "over_18": true, "all_awardings": [], "awarders": [], "media_only": false, "can_gild": false, "spoiler": false, "locked": false, "author_flair_text": null, "treatment_tags": [], "visited": false, "removed_by": null, "num_reports": null, "distinguished": null, "subreddit_id": "t5_39269d", "author_is_blocked": false, "mod_reason_by": null, "removal_reason": null, "link_flair_background_color": "", "id": "15bwo7l", "is_robot_indexable": true, "report_reasons": null, "author": "tombraider6869", "discussion_type": null, "num_comments": 0, "send_replies": true, "whitelist_status": null, "contest_mode": false, "mod_reports": [], "author_patreon_flair": false, "author_flair_text_color": null, "permalink": "/r/IdahoSwingers/comments/15bwo7l/any_f_or_mf_looking_to_hang_out_on_a_boat_out_on/", "parent_whitelist_status": null, "stickied": false, "url": "https://i.redd.it/qbhmjksndpeb1.jpg", "subreddit_subscribers": 10657, "created_utc": 1690548845, "num_crossposts": 3, "media": null, "is_video": false } ], "link_flair_type": "text", "author_flair_type": "text", "domain": "i.redd.it", "url_overridden_by_dest": "https://i.redd.it/qbhmjksndpeb1.jpg", "subreddit_id": "t5_526k6l", "author": "tombraider6869", "crosspost_parent": "t3_15bwo7l", "permalink": "/r/IdahoNSFW/comments/15bwpbo/any_f_or_mf_looking_to_hang_out_on_a_boat_out_on/", "url": "https://i.redd.it/qbhmjksndpeb1.jpg" }, { "metaData": { "keyword": "lake", "subRedditName": "explainlikeimfive" }, "id": "15bwowb", "subreddit": "r4rbrisbane", "selftext": "(M4F)", "author_fullname": "t2_qa4p5tsc", "title": "26 kiwi male looking for older female to show a good time DM is open (forest lake area) 😏", "subreddit_name_prefixed": "r/r4rbrisbane", "name": "t3_15bwowb", "link_flair_text_color": "dark", "subreddit_type": "public", "link_flair_type": "text", "author_flair_type": "text", "domain": "self.r4rbrisbane", "selftext_html": "<!-- SC_OFF --><div class=\"md\"><p>(M4F)</p>\n</div><!-- SC_ON -->", "subreddit_id": "t5_2ut7l", "author": "New_Stable3679", "permalink": "/r/r4rbrisbane/comments/15bwowb/26_kiwi_male_looking_for_older_female_to_show_a/", "url": "https://old.reddit.com/r/r4rbrisbane/comments/15bwowb/26_kiwi_male_looking_for_older_female_to_show_a/" }, { "metaData": { "keyword": "lake", "subRedditName": "explainlikeimfive" }, "id": "15bworq", "subreddit": "madisonwi", "selftext": "I see tons of construction equipment there. Are they building something on this prime waste of space or is this just a staging area for some other purpose?", "author_fullname": "t2_uw61dro9", "title": "What’s going on with the big parking lot on East Wash by the Capitol?", "subreddit_name_prefixed": "r/madisonwi", "name": "t3_15bworq", "link_flair_text_color": "dark", "subreddit_type": "public", "link_flair_type": "text", "author_flair_type": "text", "domain": "i.redd.it", "selftext_html": "<!-- SC_OFF --><div class=\"md\"><p>I see tons of construction equipment there. Are they building something on this prime waste of space or is this just a staging area for some other purpose?</p>\n</div><!-- SC_ON -->", "url_overridden_by_dest": "https://i.redd.it/yxs39rmsdpeb1.jpg", "subreddit_id": "t5_2r8rz", "author": "scottjones608", "whitelist_status": "all_ads", "permalink": "/r/madisonwi/comments/15bworq/whats_going_on_with_the_big_parking_lot_on_east/", "parent_whitelist_status": "all_ads", "url": "https://i.redd.it/yxs39rmsdpeb1.jpg" }, { "metaData": { "keyword": "lake", "subRedditName": "explainlikeimfive" }, "id": "15bwo7l", "subreddit": "IdahoSwingers", "selftext": "Taking boat out on the lake this weekend and looking for someone to share in the sun and fun. Maybe boat up to Harrison and take in the sites and have a lot of fun.\nHit me up🏴‍☠️ SM 6’3 athletic and got looking to enjoy the sun", "author_fullname": "t2_61mm5fwpd", "title": "Any F or MF looking to hang out on a boat out on lake couer d alene?", "subreddit_name_prefixed": "r/IdahoSwingers", "name": "t3_15bwo7l", "link_flair_text_color": "dark", "subreddit_type": "public", "link_flair_type": "text", "author_flair_type": "text", "domain": "i.redd.it", "selftext_html": "<!-- SC_OFF --><div class=\"md\"><p>Taking boat out on the lake this weekend and looking for someone to share in the sun and fun. Maybe boat up to Harrison and take in the sites and have a lot of fun.\nHit me up🏴‍☠️ SM 6’3 athletic and got looking to enjoy the sun</p>\n</div><!-- SC_ON -->", "url_overridden_by_dest": "https://i.redd.it/qbhmjksndpeb1.jpg", "subreddit_id": "t5_39269d", "author": "tombraider6869", "permalink": "/r/IdahoSwingers/comments/15bwo7l/any_f_or_mf_looking_to_hang_out_on_a_boat_out_on/", "url": "https://i.redd.it/qbhmjksndpeb1.jpg" }, { "metaData": { "keyword": "lake", "subRedditName": "explainlikeimfive" }, "id": "15bwlsf", "subreddit": "dirtyr4r", "selftext": "I recently took time off to write a novel, currently staying at a secluded lake house so also trying to socialize! But I’m mainly looking to meet people with interesting stories to tell, or with interesting things to share. Message and inspire me?", "author_fullname": "t2_geq8ixnog", "title": "32 [M4F] NC - Writer seeking inspiration or more", "subreddit_name_prefixed": "r/dirtyr4r", "name": "t3_15bwlsf", "link_flair_text_color": "light", "subreddit_type": "public", "link_flair_text": "male", "link_flair_type": "text", "author_flair_type": "text", "domain": "self.dirtyr4r", "selftext_html": "<!-- SC_OFF --><div class=\"md\"><p>I recently took time off to write a novel, currently staying at a secluded lake house so also trying to socialize! But I’m mainly looking to meet people with interesting stories to tell, or with interesting things to share. Message and inspire me?</p>\n</div><!-- SC_ON -->", "link_flair_template_id": "d897238a-545a-11eb-8db1-0e23163a9deb", "subreddit_id": "t5_2vqun", "link_flair_background_color": "#0079d3", "author": "moonglowing", "permalink": "/r/dirtyr4r/comments/15bwlsf/32_m4f_nc_writer_seeking_inspiration_or_more/", "url": "https://old.reddit.com/r/dirtyr4r/comments/15bwlsf/32_m4f_nc_writer_seeking_inspiration_or_more/" }]

❓ FAQ

Do I need proxies to scrape Reddit?

If you run the scraper on the Apify platform, for successful Reddit scraping you will need residential proxies which are included in Apify's monthly Starter plan ($49).

For more details about how our pricing works, platform credits, proxies, and usage, see the platform pricing page.

Want to scrape Reddit by URLs?

If you want to scrape Reddit data by direct URLs, for example, you can try out a Reddit scraper made by another developer.

Can I integrate this Reddit scraper with other apps?

Yes. Reddit Scraper can be connected with almost any cloud service or web app thanks to integrations on the Apify platform. You can integrate with Make, LangChain, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, and more.

Or you can use webhooks to carry out an action whenever an event occurs, e.g. get a notification whenever Reddit Scraper successfully finishes a run.

Can I use Reddit Scraper data with API?

Yes. You can do so using the Apify API which will enable you to manage, schedule, and run Apify scrapers, including this one. The API also lets you access any datasets, monitor actor performance, fetch results, create and update versions, and more.

To access the API using Node.js, use the apify-client NPM package. To access the API using Python, use the apify-client PyPI package. Check out the Apify API reference docs for full details or click on the API tab for code examples.

It is legal to scrape publicly available data. However, you should be aware that the results from your Reddit web scraping might contain personal information.

Personal data is protected by GDPR (EU Regulation 2016/679), and by other regulations around the world. Generally, you should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, please consult your lawyers. You can also read our blog post on the legality of web scraping.

Developer
Maintained by Apify
Actor stats
  • 65 users
  • 299 runs
  • Modified about 2 months ago
Categories

You might also like these Actors