Skip to content
//Reddit Scraper example\\

Posts about web scraping, 10 posts

Reddit keyword search sorted by relevance.

Updated December 3, 2026

What this example returns

This example returns up to 10 posts.

The dataset’s “Overview” view shows 8 columns: Title, Subreddit, Author, Score, Comments, Created, Type, and URL. See every output field.

What each setting does

The input this example runs Reddit Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Search queries queries

web scraping

Phrases to search across public Reddit posts. Ignored when direct URLs are set.

Maximum posts per input maxPosts

10

How many posts to save for each search, subreddit, profile, or URL. Reddit stops one listing at about 1,000 posts; above 1,000 the run also reads the other sorts and time periods of each search or subreddit (as Expand does) and drops duplicates within that input. While Reddit refuses its own search, a search finds…

Include NSFW posts includeNsfw

No

Keep posts Reddit marks as NSFW or 18+.

Quote the search query strictSearch

No

Send the query to Reddit in quotes so the match stays closer to those words.

Require every query word strictTokenFilter

No

Drop posts whose title, body, and URL do not contain every word in the query.

Include comments scrapeComments

No

Also save comments from each post. Each comment is its own result.

Maximum comments per post maxComments

5

Cap comments saved from each post. A post with fewer comments gives all of them.

Default: 20 → this example uses 5

Search sort sort

Relevance

How Reddit ranks search results.

Search time window timeframe

All time

Limit search results to a Reddit time window.

Subreddit sort subredditSort

Hot

Ranking for a subreddit listing. Relevance and most-comments apply when keywords are set. A bare subreddit uses Hot when the choice is not a listing sort.

Subreddit time window subredditTimeframe

All time

Time window for Top listings and for keyword search inside a subreddit.

Sort by newest when a date filter is set forceSortNewForTimeFilteredRuns

No

Walk newest posts first so a date window is covered more reliably.

Expand each search or subreddit maximize_coverage

No

Searches: also try a few extra sorts, then the same query in the subreddits that showed up most often. Subreddits: also read the new, top (by period), hot, controversial and rising listings, which together reach far more posts than one listing. Keywords inside a subreddit: the same words with the other sorts and Top…

Add sentiment labels sentiment_analysis

No

Score each post title and body, and each comment body, with the AFINN-165 word list. Adds sentiment_score, sentiment_label, sentiment_confidence, and sentiment_score_normalized.

Add topic labels content_analysis

No

Label each post from its title, body, subreddit, and flair using a fixed keyword list. Comments copy the parent post label.

.json
{
  "queries": [
    "web scraping"
  ],
  "maxPosts": 10,
  "includeNsfw": false,
  "strictSearch": false,
  "strictTokenFilter": false,
  "scrapeComments": false,
  "maxComments": 5,
  "sort": "relevance",
  "timeframe": "all",
  "subredditSort": "hot",
  "subredditTimeframe": "all",
  "forceSortNewForTimeFilteredRuns": false,
  "maximize_coverage": false,
  "sentiment_analysis": false,
  "content_analysis": false
}

What it costs

You pay for the events the actor reports, such as each result or page it produces. Platform usage is included in the event prices: compute, proxies, browser and storage cost nothing extra.

  • Resultfrom $0.00102One Reddit post, community or user profile saved to the dataset.
  • Commentfrom $0.00102One Reddit comment saved to the dataset.
  • Actor startfrom $0.006Charged once per run.
  • Web search page$0.0017One page of web search results that brought Reddit posts, read when Reddit refuses its own search. Charged together with the run's saved rows; pages without Reddit posts, and runs that save nothing, are not charged.

Full pricing

When to use this example

From the Reddit Scraper readme:

How many results can I get?

As many as Reddit lists. One listing ends at about 1,000 posts; when maxPosts is above 1,000 (or Expand each search or subreddit is on) the run goes past that limit and drops duplicates within that input. Comments: every comment Reddit shows for a post, up to maxComments. See Limits below.

Can I scrape comments without the posts?

Yes. Turn on scrapeComments and set maxComments. A user comments URL (/user/name/comments) saves comments directly, up to the post limit.

Other ways to run Reddit Scraper

All examples of Reddit Scraper

About Reddit Scraper

Extract public Reddit posts, comment threads, communities and user profiles from searches, subreddits, user profiles and post URLs. Results include text, scores, timestamps, and media.

Price:
From $1.02 / 1,000 results
Developer:
Echofield

Reddit Scraper pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.