Social Fetch
Reddit

Search Reddit posts

Search for posts on Reddit.

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

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

API key (`sfk_...`)

Parameters
5
query*stringquery

Search query text for public Reddit posts.

min 1 chars · max 512 chars

sortBystringoptionalquery

Optional sort order for search results.

one of: relevance, new, top

timeframestringoptionalquery

Optional time range filter for search results.

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

cursorstringoptionalquery

Opaque pagination cursor returned by a previous response.

min 1 chars

trimbooleanoptionalquery

Whether to request a smaller response shape when available.

Response fields
27

Endpoint-specific response payload.

dataquery
string

Search query string evaluated for this response.

Posts returned for this page.

dataposts[]id
string

Stable post identifier.

min 1 chars

dataposts[]name
stringnullable

Full post name when available.

dataposts[]title
stringnullable

Post title when available.

dataposts[]author
stringnullable

Author username when available.

dataposts[]subreddit
stringnullable

Subreddit name without a leading r/ when available.

dataposts[]subredditPrefixedName
stringnullable

Prefixed subreddit label such as r/example when available.

dataposts[]url
stringnullable

Canonical public post URL when available.

dataposts[]permalink
stringnullable

Public permalink URL when available.

dataposts[]bodyText
stringnullable

Post body text when available.

dataposts[]score
integernullable

Post score when available.

≥ 0

dataposts[]upvotes
integernullable

Upvote count when available.

≥ 0

dataposts[]upvoteRatio
numbernullable

Upvote ratio between 0 and 1 when available.

≥ 0 · ≤ 1

dataposts[]commentCount
integernullable

Comment count when available.

≥ 0

dataposts[]createdAt
stringnullable

ISO-8601 creation timestamp when available.

dataposts[]isVideo
boolean

Whether the post is a video post.

dataposts[]subredditSubscriberCount
integernullableoptional

Subreddit subscriber count when available.

≥ 0

datatotalResults
integer

Number of posts 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/search?query=web scraping" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Search results for the requested query.

On this page

No Headings