Reddit App Search Typeahead
https://api.sandbase.ai/v1/api/reddit/app/search-typeaheadReturns autocomplete suggestions for the Reddit search box based on typed input. Includes options to toggle adult content, apply safe search settings, and format response data.
- Price
- $0.0015USD / callFirst 100 calls per day free (shared per organization)
- Method
- POST
- Response
- JSON
- Parameters
- 1 required · 3 optional
Try the model
Playground
[
{
"data": {
"search": {
"dynamic": {
"components": {
"__typename": "TypeaheadLayout",
"main": [
{
"__typename": "SearchTypeaheadList",
"behaviors": {
"collapse": null,
"expand": null,
"expandCta": null
},
"children": [
{
"__typename": "QueryAutocomplete",
"behaviors": {
"default": {
"__typename": "SearchQueryReformulationBehavior",
"query": "openai",
"telemetry": {
"__typename": "SearchElementTelemetry",
"events": [
{
"action": "click",
"noun": "typeahead",
"source": "search",
"trigger": "CLICK",
"triggerConfiguration": null
}
],
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"actionInfo": {
"paneName": null,
"position": 0,
"reason": null,
"relativePosition": 0,
"type": "query_suggestion"
},
"answers": null,
"metaSearch": {
"displayQuery": "openai",
"rawQuery": "openai"
},
"post": null,
"profile": null,
"search": {
"isNsfw": false,
"query": "OpenAI",
"queryID": "9ce648d0-8c03-4308-9c9f-e5ee884d8532",
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null
},
"subreddit": null
}
}
}
},
"presentation": {
"__typename": "QueryAutocompleteDefaultPresentation",
"query": "openai",
"suggestion": "%query%"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"events": [
{
"action": "view",
"noun": "typeahead",
"source": "search",
"trigger": "VIEW",
"triggerConfiguration": null
}
],
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"actionInfo": {
"paneName": null,
"position": 0,
"reason": null,
"relativePosition": 0,
"type": "query_suggestion"
},
"answers": null,
"metaSearch": {
"displayQuery": "openai",
"rawQuery": "openai"
},
"post": null,
"profile": null,
"search": {
"isNsfw": false,
"query": "OpenAI",
"queryID": "9ce648d0-8c03-4308-9c9f-e5ee884d8532",
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null
},
"subreddit": null
}
}
},
{
"__typename": "QueryAutocomplete",
"behaviors": {
"default": {
"__typename": "SearchQueryReformulationBehavior",
"query": "openai australia",
"telemetry": {
"__typename": "SearchElementTelemetry",
"events": [
{
"action": "click",
"noun": "typeahead",
"source": "search",
"trigger": "CLICK",
"triggerConfiguration": null
}
],
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"actionInfo": {
"paneName": null,
"position": 1,
"reason": null,
"relativePosition": 1,
"type": "query_suggestion"
},
"answers": null,
"metaSearch": {
"displayQuery": "openai australia",
"rawQuery": "openai australia"
},
"post": null,
"profile": null,
"search": {
"isNsfw": false,
"query": "OpenAI",
"queryID": "9ce648d0-8c03-4308-9c9f-e5ee884d8532",
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null
},
"subreddit": null
}
}
}
},
"presentation": {
"__typename": "QueryAutocompleteDefaultPresentation",
"query": "openai",
"suggestion": "%query% australia"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"events": [
{
"action": "view",
"noun": "typeahead",
"source": "search",
"trigger": "VIEW",
"triggerConfiguration": null
}
],
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"actionInfo": {
"paneName": null,
"position": 1,
"reason": null,
"relativePosition": 1,
"type": "query_suggestion"
},
"answers": null,
"metaSearch": {
"displayQuery": "openai australia",
"rawQuery": "openai australia"
},
"post": null,
"profile": null,
"search": {
"isNsfw": false,
"query": "OpenAI",
"queryID": "9ce648d0-8c03-4308-9c9f-e5ee884d8532",
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null
},
"subreddit": null
}
}
},
{
"__typename": "QueryAutocomplete",
"behaviors": {
"default": {
"__typename": "SearchQueryReformulationBehavior",
"query": "openai math",
"telemetry": {
"__typename": "SearchElementTelemetry",
"events": [
{
"action": "click",
"noun": "typeahead",
"source": "search",
"trigger": "CLICK",
"triggerConfiguration": null
}
],
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",
"actionInfo": {
"paneName": null,
"position": 2,
"reason": null,
"relativePosition": 2,
"type": "query_suggestion"
},
"answers": null,
"metaSearch": {
"displayQuery": "openai math",
"rawQuery": "openai math"
},
"post": null,
"profile": null,
"search": {
"isNsfw": false,
"query": "OpenAI",
"queryID": "9ce648d0-8c03-4308-9c9f-e5ee884d8532",
"range": null,
"safeSearch": "UNAVAILABLE",
"scope": {
"id": null,
"name": null,
"path": "/",
"type": "GLOBAL"
},
"snippet": null,
"snippetId": null,
"sort": null
},
"subreddit": null
}
}
}
},
"presentation": {
"__typename": "QueryAutocompleteDefaultPresentation",
"query": "openai",
"suggestion": "%query% math"
},
"telemetry": {
"__typename": "SearchElementTelemetry",
"events": [
{
"action": "view",
"noun": "typeahead",
"source": "search",
"trigger": "VIEW",
"triggerConfiguration": null
}
],
"trackingContext": {
"__typename": "SearchTelemetryTrackingContext",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
- allow_nsfw
- string · optional
- need_format
- boolean · optional
- safe_search
- string · optional
Access
- Provider
- API
- Platform API
- Base URL
- https://api.sandbase.ai
- Endpoint
- /v1/api/reddit/app/search-typeahead
- Authentication
- Bearer API key
API README
Reddit App Search Typeahead API
Query autocomplete suggestions for search terms using the query parameter. You can also configure adult content visibility and safe search behavior.
Use cases
- Display real-time search suggestions in custom Reddit clients.
- Help users discover relevant subreddits and search terms as they type.
- Filter autocomplete suggestions according to safe search requirements.
Request
curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/search-typeahead" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "OpenAI"}'
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search keyword, the search text being typed |
allow_nsfw | string | No | Whether to allow NSFW (adult) content display, "0" means disallow, "1" means allow |
need_format | boolean | No | Whether to clean and format the data |
safe_search | string | No | Safe search setting, options are "unset" or "strict" |
Example response
Real response for the request above, trimmed to the main fields. User names and long IDs are masked.
{
"search": {
"dynamic": {
"components": {
"main": [
{
"children": [
{
"__typename": "QueryAutocomplete",
"presentation": {
"__typename": "QueryAutocompleteDefaultPresentation",
"query": "openai"
},
"telemetry": {
"__typename": "SearchElementTelemetry"
}
}
]
}
]
}
}
}
}
Notes
- Set
allow_nsfwto "1" to include adult content or "0" to exclude it. - The
safe_searchparameter accepts "unset" or "strict".
Related APIs
- Reddit Subreddit Mute Status: Checks whether a specified Reddit subreddit is muted by the current account using its ID.
- Reddit App Comment Replies: Returns replies and nested sub-comments under a Reddit post comment using a continuation cursor.
- Reddit Community Highlights: Returns featured highlight content for a designated Reddit community, such as popular posts and announcements, by subreddit ID.
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/search-typeahead" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"query": "OpenAI",
"allow_nsfw": "0",
"need_format": false,
"safe_search": "unset"
}
SANDBASE_JSON
)
printf '%s\n' "$result"Explore more
Related APIs
| API | Price | Response | Released |
|---|---|---|---|
Reddit App Search TypeaheadThis 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 App Search Typeahead API?
Send a POST request to https://api.sandbase.ai/v1/api/reddit/app/search-typeahead 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 App Search Typeahead 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 App Search Typeahead API accept?
Required: query (string). Optional: allow_nsfw (string), need_format (boolean) and safe_search (string). The Parameters table and the Playground on this page list every field.
What does the Reddit App Search Typeahead 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 App Search Typeahead 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.
