Reddit App Search Typeahead

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

Returns 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
Production route

Try the model

Playground

Open playground
Input
Whether to allow NSFW (adult) content display, "0" means disallow, "1" means allow
Whether to clean and format the data
Search keyword, the search text being typed
OutputExample
Responseoutputs · 43.7 KB · 1,039 lines
[
  {
    "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
Reddit
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

NameTypeRequiredDescription
querystringYesSearch keyword, the search text being typed
allow_nsfwstringNoWhether to allow NSFW (adult) content display, "0" means disallow, "1" means allow
need_formatbooleanNoWhether to clean and format the data
safe_searchstringNoSafe 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_nsfw to "1" to include adult content or "0" to exclude it.
  • The safe_search parameter accepts "unset" or "strict".

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/search-typeahead
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/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

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 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.