Reddit Search

https://api.sandbase.ai/v1/api/reddit/app/dynamic-search

Search Reddit posts, communities, comments, media and users with the Reddit app search. Sort by relevance, hot, top, new or comments and filter by time range, with NSFW and safe-search controls.

Price
$0.0015USD / callFirst 100 calls per day free (shared per organization)
Method
POST
Response
JSON
Parameters
1 required · 7 optional
Production route

Try the model

Playground

Open playground
Input
Pagination parameter for fetching next page
Allow NSFW content, "0" or "1"
Whether to clean and format the data
Search keyword
Search type: post, community, comment, media, people
Sort method (only for post/comment/media): RELEVANCE, HOT, TOP, NEW, COMMENTS
Time range (only for post/media): all, year, month, week, day, hour
OutputExample
Responseoutputs · 240.4 KB · 4,793 lines
[
  {
    "data": {
      "search": {
        "dynamic": {
          "components": {
            "__typename": "SearchResultsMainLayout",
            "appliedState": {
              "__typename": "SearchAppliedState",
              "filters": [
                {
                  "key": "component",
                  "value": "SearchAppliedState"
                },
                {
                  "key": "experience_selection",
                  "value": "post"
                },
                {
                  "key": "safe_search",
                  "value": "unset"
                },
                {
                  "key": "structure_type",
                  "value": "search"
                }
              ],
              "pane": "posts"
            },
            "main": {
              "edges": [
                {
                  "cursor": "",
                  "node": {
                    "__typename": "SearchListComponent",
                    "behaviors": {
                      "header": null
                    },
                    "children": [
                      {
                        "__typename": "SearchPost",
                        "behaviors": {
                          "community": {
                            "__typename": "SearchCommunityNavigationBehavior",
                            "id": "t5_a5tk5l",
                            "name": "DeepSeek",
                            "telemetry": {
                              "__typename": "SearchElementTelemetry",
                              "events": [
                                {
                                  "action": "click",
                                  "noun": "post",
                                  "source": "search",
                                  "trigger": "CLICK",
                                  "triggerConfiguration": null
                                }
                              ],
                              "trackingContext": {
                                "__typename": "SearchTelemetryTrackingContext",
                                "actionInfo": {
                                  "paneName": "posts",
                                  "position": 0,
                                  "reason": null,
                                  "relativePosition": 0,
                                  "type": "community"
                                },
                                "answers": null,
                                "metaSearch": null,
                                "post": {
                                  "id": "t3_1vpp609",
                                  "isNsfw": false,
                                  "isSpoiler": false,
                                  "title": "LMFAO ... OpenAI is terrified ... look at this rambling post their saint and saviour Tibo just posted at midnight his time :/",
                                  "type": "IMAGE"
                                },
                                "profile": {
                                  "id": "t2_crjoikrg",
                                  "name": "johnnyApplePRNG"
                                },
                                "search": {
                                  "isNsfw": false,
                                  "query": "OpenAI",
                                  "queryID": "4d3900a7-2205-4d31-9e57-7ba7d915533c",
                                  "range": null,
                                  "safeSearch": "UNAVAILABLE",
                                  "scope": {
                                    "id": null,
                                    "name": null,
                                    "path": "/",
                                    "type": "GLOBAL"
                                  },
                                  "snippet": null,
                                  "snippetId": null,
                                  "sort": null
                                },
                                "subreddit": {
                                  "id": "t5_a5tk5l",
                                  "isNsfw": false,
                                  "isQuarantined": false,
                                  "name": "DeepSeek"
                                }
                              }
                            }
                          },
                          "default": {
                            "__typename": "SearchPDPNavigationBehavior",
                            "id": "t3_1vpp609",
                            "telemetry": {
                              "__typename": "SearchElementTelemetry",
                              "events": [
                                {
                                  "action": "click",
                                  "noun": "post",
                                  "source": "search",
                                  "trigger": "CLICK",
                                  "triggerConfiguration": null
                                }
                              ],
                              "trackingContext": {
                                "__typename": "SearchTelemetryTrackingContext",
                                "actionInfo": {
                                  "paneName": "posts",
                                  "position": 0,
                                  "reason": null,
                                  "relativePosition": 0,
                                  "type": "post"
                                },
                                "answers": null,
                                "metaSearch": null,
                                "post": {
                                  "id": "t3_1vpp609",
                                  "isNsfw": false,
                                  "isSpoiler": false,
                                  "title": "LMFAO ... OpenAI is terrified ... look at this rambling post their saint and saviour Tibo just posted at midnight his time :/",
                                  "type": "IMAGE"
                                },
                                "profile": {
                                  "id": "t2_crjoikrg",
                                  "name": "johnnyApplePRNG"
                                },
                                "search": {
                                  "isNsfw": false,
                                  "query": "OpenAI",
                                  "queryID": "4d3900a7-2205-4d31-9e57-7ba7d915533c",
                                  "range": null,
                                  "safeSearch": "UNAVAILABLE",
                                  "scope": {
                                    "id": null,
                                    "name": null,
                                    "path": "/",
                                    "type": "GLOBAL"
                                  },
                                  "snippet": null,
                                  "snippetId": null,
                                  "sort": null
                                },
                                "subreddit": {
                                  "id": "t5_a5tk5l",
                                  "isNsfw": false,
                                  "isQuarantined": false,
                                  "name": "DeepSeek"
                                }
                              }
                            }
                          },
                          "profile": {
                            "__typename": "SearchProfileNavigationBehavior",
                            "id": "t5_4m6smr",
                            "name": "u_johnnyApplePRNG",
                            "telemetry": {
                              "__typename": "SearchElementTelemetry",
                              "events": [
                                {
                                  "action": "click",
                                  "noun": "post",
                                  "source": "search",
                                  "trigger": "CLICK",
                                  "triggerConfiguration": null
                                }
                              ],
                              "trackingContext": {
                                "__typename": "SearchTelemetryTrackingContext",
                                "actionInfo": {
                                  "paneName": "posts",
                                  "position": 0,
                                  "reason": null,
                                  "relativePosition": 0,
                                  "type": "profile"
                                },
                                "answers": null,
                                "metaSearch": null,
                                "post": {
                                  "id": "t3_1vpp609",
                                  "isNsfw": false,
                                  "isSpoiler": false,
                                  "title": "LMFAO ... OpenAI is terrified ... look at this rambling post their saint and saviour Tibo just posted at midnight his time :/",
                                  "type": "IMAGE"
                                },
                                "profile": {
                                  "id": "t2_crjoikrg",
                                  "name": "johnnyApplePRNG"
                                },
                                "search": {
                                  "isNsfw": false,
                                  "query": "OpenAI",
                                  "queryID": "4d3900a7-2205-4d31-9e57-7ba7d915533c",
                                  "range": null,
                                  "safeSearch": "UNAVAILABLE",
                                  "scope": {
                                    "id": null,
                                    "name": null,
                                    "path": "/",
                                    "type": "GLOBAL"
                                  },
                                  "snippet": null,
                                  "snippetId": null,
                                  "sort": null
                                },
                                "subreddit": {
                                  "id": "t5_a5tk5l",
                                  "isNsfw": false,
                                  "isQuarantined": false,
                                  "name": "DeepSeek"
                                }
                              }
                            }
                          },
                          "thumbnail": {
                            "__typename": "SearchPDPNavigationBehavior",
                            "id": "t3_1vpp609",
                            "telemetry": {
                              "__typename": "SearchElementTelemetry",
                              "events": [
                                {
                                  "action": "click",
                                  "noun": "post",
                                  "source": "search",
                                  "trigger": "CLICK",
                                  "triggerConfiguration": null
                                }
                              ],
                              "trackingContext": {
                                "__typename": "SearchTelemetryTrackingContext",
                                "actionInfo": {
                                  "paneName": "posts",
                                  "position": 0,
                                  "reason": null,
                                  "relativePosition": 0,
                                  "type": "thumbnail"
                                },
                                "answers": null,
                                "metaSearch": null,
                                "post": {
                                  "id": "t3_1vpp609",
                                  "isNsfw": false,
                                  "isSpoiler": false,
                                  "title": "LMFAO ... OpenAI is terrified ... look at this rambling post their saint and saviour Tibo just posted at midnight his time :/",
                                  "type": "IMAGE"
                                },
                                "profile": {
                                  "id": "t2_crjoikrg",
                                  "name": "johnnyApplePRNG"
                                },
                                "search": {
                                  "isNsfw": false,
                                  "query": "OpenAI",
                                  "queryID": "4d3900a7-2205-4d31-9e57-7ba7d915533c",
                                  "range": null,
                                  "safeSearch": "UNAVAILABLE",
                                  "scope": {
                                    "id": null,
                                    "name": null,
                                    "path": "/",
                                    "type": "GLOBAL"
                                  },
                                  "snippet": null,
                                  "snippetId": null,
                                  "sort": null
                                },
                                "subreddit": {
                                  "id": "t5_a5tk5l",
                                  "isNsfw": false,
                                  "isQuarantined": false,
                                  "name": "DeepSeek"
                                }
                              }
                            }
                          }
                        },
                        "post": {
                          "__typename": "SubredditPost",
                          "attributionInfo": null,
                          "authorFlair": null,
                          "authorInfo": {
                            "__typename": "Redditor",
                            "accountType": "USER",
                            "iconSmall": {
                              "__typename": "MediaSource",
                              "dimensions": {
                                "height": 50,

Examples

Select an example to load its inputs and result into the playground.

Model card

Specifications

Pricing

Base price
$0.0015 / run
Daily free calls
First 100 calls per day free (shared per organization)

Request & response

Method
POST
Request body
application/json
Response
application/json
Execution
sync

Parameters

query
string · required
after
string · optional
allow_nsfw
string · optional
need_format
boolean · optional
safe_search
string · optional
search_type
string · optional
sort
string · optional
time_range
string · optional

Access

Provider
Reddit
API
Platform API
Base URL
https://api.sandbase.ai
Endpoint
/v1/api/reddit/app/dynamic-search
Authentication
Bearer API key

API README

Reddit Search API

Search Reddit for a keyword across posts, communities, comments, media or people. Choose sort and time range, and paginate with after.

Use cases

  • Monitor discussions about a brand or product.
  • Find active subreddits for a topic.
  • Collect posts and comments for sentiment analysis.

Request

curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/dynamic-search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "OpenAI"}'

Parameters

NameTypeRequiredDescription
querystringYesSearch keyword
sortstringNoSort method (only for post/comment/media): RELEVANCE, HOT, TOP, NEW, COMMENTS
afterstringNoPagination parameter for fetching next page
allow_nsfwstringNoAllow NSFW content, "0" or "1"
time_rangestringNoTime range (only for post/media): all, year, month, week, day, hour
need_formatbooleanNoWhether to clean and format the data
safe_searchstringNoSafe search setting, "unset" or "strict"
search_typestringNoSearch type: post, community, comment, media, people

Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

{
  "search": {
    "dynamic": {
      "components": {
        "main": {
          "edges": [
            {
              "node": {
                "__typename": "SearchListComponent",
                "children": [
                  {
                    "__typename": "SearchPost",
                    "post": {
                      "id": "t3_1wsu05i",
                      "title": "Post by Altman pretty much confirms direction from OpenAI",
                      "type": "TEXT",
                      "isNsfw": false
                    },
                    "community": "codex"
                  }
                ]
              }
            }
          ],
          "pageInfo": {
            "hasNextPage": true,
            "endCursor": "<after>"
          }
        }
      }
    }
  }
}

Notes

  • search_type: post, community, comment, media or people.
  • Set need_format to true for a cleaned, flatter response.

Related APIs

Start building

Send your first request

Platform API endpoint with unified authentication and usage tracking.

Production API
Platform API endpoint
https://api.sandbase.ai/v1/api/reddit/app/dynamic-search
Authorization header
Authorization: Bearer $SANDBASE_API_KEY
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/api/reddit/app/dynamic-search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "after": "",
  "query": "OpenAI",
  "allow_nsfw": "0",
  "need_format": false,
  "safe_search": "unset",
  "search_type": "post"
}
SANDBASE_JSON
)
printf '%s\n' "$result"

Explore more

Related APIs

All APIs
APIPriceResponseReleased
Reddit$0.0015 per callJSONJul 31, 2026
Reddit$0.0015 per callJSONJul 31, 2026
Reddit$0.0015 per callJSONJul 31, 2026
Reddit$0.0015 per callJSONJul 31, 2026
Reddit$0.0015 per callJSONJul 31, 2026
Reddit$0.0015 per callJSONJul 31, 2026

Questions

FAQ

How do I use the Reddit Search API?

Send a POST request to https://api.sandbase.ai/v1/api/reddit/app/dynamic-search with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the Reddit Search API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

What parameters does the Reddit Search API accept?

Required: query (string). Optional: after (string), allow_nsfw (string), need_format (boolean), safe_search (string), search_type (string) and sort (string) and 1 more. The Parameters table and the Playground on this page list every field.

What does the Reddit Search API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

Do I need a Reddit developer account or API key?

No. Reddit Search runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Reddit API access separately.