APIs Pricing Blog
Login

Reddit Threads API (V1)

The Reddit Threads API lets you retrieve up to 100 of the most relevant threads for your search query, offering a more efficient alternative to Reddit’s native search engine. When making a request to this endpoint, we aggregate your request parameters and pipe them, in realtime, to Google's index allowing you to find the best matches possible for your query.

  • Endpoint cost is 5 credits / request for successful requests

Result Relevancy

Data is returned based on its relevancy to your search query and selected age. The more relevant a thread is, the higher it will be in the returned response.

Making multiple requests for the same query in rapid succession (ex submitting the same query multiple times per minute) will only return the same results as newer and more relevant threads are most likely not yet made on Reddit.

Input Processing

To keep your query from breaking or returning unexpected results, we sanitize your input as follows:

  • Leading and trailing empty spaces are removed: ' foo ' --> 'foo'

  • Multiple consecutive spaces are collapsed: 'foo bar' --> 'foo bar'

  • The characters " : ( ) are not allowed

Request Parameters

  • API Endpoint: POST https://api.serpgrid.dev/v1/serps/reddit-threads

  • Required headers: X-API-KEY and Content-Type

Parameter Description
query Full text query string
The following characters are NOT allowed: " : ( )
Min length: 3 characters
Max length: 50 characters
strict Boolean field denoting whether you want the search to be an exact character match
Default: false
Accepts: true, 1 , false, 0
language Preferred thread language (not guaranteed) --> See list of language codes below
Default: '' Google's default (en)
age Return only threads from a certain time period
Default: ''
Accepts: 'last_hour', 'last_day', 'last_week', 'last_month', 'last_year', ''
subreddit An optional parameter that allows you to focus your search on a single subreddit
Must be provided without the /r/ prefix, ex. microsaas
Default: ''
results The maximum number of rows to be returned if found
Default: 10
Accepts: 10, 100

Strictness

Strictness indicates whether the search engine should use exact character matching or keep the default fuzzy search - by default strictness is disabled.

If you're researching a competitor's website or a particular brand, it is encouraged to enable strict mode, especially when dealing with domain names.

Useful Tip

If you're looking to find threads related to a domain name, such as when researching a competitor, you'll get the best results by using a domain name in your query with the following format:

  • domain.com

Please notice the lack of scheme (https) and subdomain (www or otherwise). This increases your chances of finding a match.

Additionally, setting strictness to true will yield links to threads where the domain has been explicitly mentioned in the exact format you provide it --> See the example below!

Request Example 1

json icon Reddit Threads Request
json icon Reddit Threads Response

Request Example 2

json icon Reddit Threads Request
json icon Reddit Threads Response

Language Codes

Below you'll find a list of supported language codes. When passing in one of these values to the language parameter, make sure to use the code instead of the language's name.

json icon Language Codes List

Additional Information

The following headers will also be returned as part of the response to you:

  • X-Credits-Remaining The number of credits that remain in your account
  • X-Credits-Expire A datetime string with the expiration date
  • X-Credits-Used The number of credits the operation consumed

Errors are handled in line with our Error Rules. Please make sure to read it carefully and follow the instructions for the best experience possible.