Reddit Search
https://api.sandbase.ai/v1/api/reddit/app/dynamic-searchSearch 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
Try the model
Playground
[
{
"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
- 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
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search keyword |
sort | string | No | Sort method (only for post/comment/media): RELEVANCE, HOT, TOP, NEW, COMMENTS |
after | string | No | Pagination parameter for fetching next page |
allow_nsfw | string | No | Allow NSFW content, "0" or "1" |
time_range | string | No | Time range (only for post/media): all, year, month, week, day, hour |
need_format | boolean | No | Whether to clean and format the data |
safe_search | string | No | Safe search setting, "unset" or "strict" |
search_type | string | No | Search 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_formattotruefor a cleaned, flatter response.
Related APIs
- Check if Subreddit is Muted: Check if a specified Reddit subreddit is muted by the current user.
- Fetch Reddit APP Comment Replies (Sub-comments): Fetch replies (sub-comments/second-level comments) under a specified Reddit APP comment Use this endpoint when a comment node has more.cursor field to get its …
- Fetch Reddit APP Community Highlights: Fetch featured highlight content of a specified Reddit APP community, including popular posts and important announcements.
Start building
Send your first request
Platform API endpoint with unified authentication and usage tracking.
# 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
| API | Price | Response | Released |
|---|---|---|---|
Reddit SearchThis API Reddit | $0.0015 per call | JSON | Jul 31, 2026 |
Reddit | $0.0015 per call | JSON | Jul 31, 2026 |
Reddit | $0.0015 per call | JSON | Jul 31, 2026 |
Reddit | $0.0015 per call | JSON | Jul 31, 2026 |
Reddit | $0.0015 per call | JSON | Jul 31, 2026 |
Reddit | $0.0015 per call | JSON | Jul 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.
