Social Fetch
Reddit

Search Reddit subreddit

Search posts within a subreddit.

Use `data.page.hasMore` and `data.page.nextCursor` for pagination rather than inferring completion from `data.totalResults` alone.

GET/v1/reddit/subreddits/search
1credit
x-api-key*stringheader

API key (`sfk_...`)

Parameters
5
subreddit*stringquery

Subreddit name, optional `r/` prefix, or Reddit subreddit URL. Must match Reddit's exact casing. Searches posts within this subreddit.

min 1 chars · max 256 chars

querystringoptionalquery

Search text to match against public subreddit posts.

min 1 chars · max 512 chars

sortstringoptionalquery

Optional sort order for search results. Defaults to relevance when omitted.

one of: relevance, hot, top, new, comments

timeframestringoptionalquery

Optional time range filter for search results. Defaults to all when omitted.

one of: all, year, month, week, day, hour

cursorstringoptionalquery

Opaque pagination cursor returned by a previous response.

min 1 chars

Response fields
40

Endpoint-specific response payload.

datasubreddit
string

Subreddit name evaluated for this response.

dataquery
stringnullable

Search query evaluated for this response.

datasort
string

Sort order applied for this response.

one of: relevance, hot, top, new, comments

datatimeframe
string

Time range filter applied for this response.

one of: all, year, month, week, day, hour

Matching posts for the search.

dataposts[]id
string

Stable post identifier.

min 1 chars

dataposts[]postId
string

Post identifier when available.

min 1 chars

dataposts[]title
string

Post title.

min 1 chars

dataposts[]url
string

Canonical public URL for this post.

min 1 chars

dataposts[]permalink
string

Permalink path or URL for this post.

min 1 chars

dataposts[]nsfw
boolean

Whether the post is marked as adult content.

dataposts[]spoiler
boolean

Whether the post is marked as a spoiler.

dataposts[]crosspost
boolean

Whether the post is a crosspost.

Subreddit metadata when available.

dataposts[]subredditid
stringnullable

Subreddit identifier when available.

dataposts[]subredditname
stringnullable

Subreddit name when available.

dataposts[]subredditnsfw
booleannullable

Whether the subreddit is marked as adult content.

dataposts[]subredditquarantined
booleannullable

Whether the subreddit is quarantined.

dataposts[]subredditiconUrl
stringnullable

Subreddit icon URL when available.

dataposts[]subredditbannerUrl
stringnullable

Subreddit banner URL when available.

dataposts[]subredditdescription
stringnullable

Subreddit description when available.

dataposts[]subredditweeklyVisitors
integernullable

Approximate weekly visitors when available.

≥ 0

dataposts[]subredditweeklyContributions
integernullable

Approximate weekly contributions when available.

≥ 0

Engagement metrics for this post.

dataposts[]metricsvotes
integernullable

Vote count when available.

≥ 0

dataposts[]metricscomments
integernullable

Comment count when available.

≥ 0

dataposts[]createdAt
stringnullable

ISO-8601 publish timestamp when available.

dataposts[]thumbnailUrl
stringnullable

Thumbnail image URL when available.

dataposts[]thumbnailBlurred
booleannullable

Whether the thumbnail is blurred.

dataposts[]position
integernullable

Position of this row in the current result page.

≥ 0

dataposts[]relativePosition
integernullable

Relative position of this row in the current result page.

≥ 0

datatotalResults
integer

Number of post rows returned in this response.

≥ 0

Pagination information for the current response.

datapagenextCursor
stringnullable

Cursor to pass in the next request when another page exists.

datapagehasMore
boolean

Whether another page of results is available.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/reddit/subreddits/search?subreddit=Fitness" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Search results for the requested subreddit.

On this page

No Headings