Support needed? Reach out! 📧

Reddit Search on Subreddit API

Scrape posts from specific subreddits including top, new, or hot feeds for niche community research, trend analysis, and audience insights.

python-logo Python
Reddit Subreddit Posts
1 import requests
2  
3 root = "https://ensembledata.com/apis"
4 endpoint = "/reddit/subreddit/posts"
5 params = {
6   "name""SkincareAddiction",
7   "sort""new",
8   "period""hour",
9   "cursor""",
10   "token""YOUR-TOKEN-HERE"
11 }
12  
13 res = requests.get(root+endpoint, params=params)
14 print(res.json())
15  

Parameters

name (string) Subreddit to be searched. REQUIRED
sort Type of posts to fetch. REQUIRED
period ATTENTION: The time filter applies only to sort type 'top'. REQUIRED
cursor (string) Parameter to manually handle pagination. Each response contains a `nextCursor` which can be used to retrieve the next page of results by sending it as the next `cursor`. If the `nextCursor` is not present in the response, it means that there are no more results to retrieve.
token (string) Private token assigned to each client to access the APIs. REQUIRED

Scrape Reddit Data Effortlessly

Our subreddit posts API lets you target any community directly and extract posts with upvote ratios, comment counts, and flair data for focused research.

deco-icon

Plug & Play API

Integrate in minutes with clear docs and code samples. Get started with a single REST call.

deco-icon

Real-Time Results

Every request scrapes the latest data in seconds. No stale datasets, just up-to-date insights.

deco-icon

Flexible APIs

Need something special? We tailor endpoints and data delivery to your unique business needs.

Reddit Scraping Features

Dig into niche Reddit communities and fetch post data that shows what is resonating, what is being debated, and which topics are on the rise.

  • Reddit Subreddit Api
  • Subreddit Post Scraper
  • Reddit Community Data Api
  • Reddit Top Posts Extractor
  • Reddit Hot Posts Api
  • Subreddit Content Analytics Api
  • Reddit Niche Community Data Endpoint
  • Reddit Flair Data Api

Starting crawling Reddit now!

deco-icon

Get Your API Key in Minutes

Create a free account (no credit card required) and receive an API token instantly to test endpoints, pull live data, and rapidly prototype integrations. Upgrade as your needs grow.

Get started free
deco-icon

Developer Support

Need help integrating or customizing data for your workflows? Our developer success team offers onboarding, guidance, and enterprise support to get your project production-ready.

Contact us

Frequently Asked Questions

A Reddit data scraping API allows you to programmatically collect and analyze public data from Reddit and other platforms. This helps businesses, researchers, and marketers gain insights, monitor trends, and automate data collection for various use cases.

We only collect publicly available data, nothing behind a login wall or marked as private. We're GDPR-compliant and follow applicable data protection laws. That said, you're responsible for how you use the data on your end.

Yes, though some basic comfort with HTTP requests helps. We have copy-paste code snippets in Python, JavaScript, and cURL, plus a dashboard where you can test endpoints without writing any code. Most non-technical users get up and running within an afternoon.

You can fetch different type of public data from Reddit, including user profiles, posts, videos, comments, hashtags, followers, and engagement statistics.

Our platform delivers real-time Reddit data with high reliability and minimal downtime. Most requests are processed in under 5 seconds, ensuring you always have access to the latest public Reddit data for your needs.