Brave Search
brave_searchAccess Brave's independent search index, grounded AI answers, suggestions, spellcheck, and related search products through one API.
Acciones disponibles (17)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Check Search SpellingBRAVE_SEARCH_CHECK_SPELLINGAcciónReturn Brave spelling corrections for a search phrase; an empty result means no correction was suggested and requires the Spellcheck product.
BRAVE_SEARCH_CHECK_SPELLINGAcciónReturn Brave spelling corrections for a search phrase; an empty result means no correction was suggested and requires the Spellcheck product.
Parámetros de entrada
querystringObligatorioSearch phrase to check for spelling corrections (1-400 characters and at most 50 words).
countrystringTwo-letter country code, or ALL, used to localize corrections.
languagestringLanguage code used as a hint for spelling analysis.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate Grounded AnswerBRAVE_SEARCH_GENERATE_GROUNDED_ANSWERAcciónGenerate one non-streaming web-grounded answer from a single user message using Brave Answers. The connected API key must have the separately activated Answers product.
BRAVE_SEARCH_GENERATE_GROUNDED_ANSWERAcciónGenerate one non-streaming web-grounded answer from a single user message using Brave Answers. The connected API key must have the separately activated Answers product.
Parámetros de entrada
seedintegerOpenAI-compatible seed accepted but currently ignored by Brave.
modelstringenumBrave Answers model; brave-pro is the higher-capability mode.
brave-probravecountrystringCountry code used to localize grounding searches.
languagestringLanguage code for the answer and grounding searches.
metadataobjectOpenAI-compatible metadata accepted but currently ignored by Brave.
safe_searchstringBrave safe-search setting for grounding retrieval.
user_messagestringObligatorioThe single user question or instruction to answer with web grounding.
web_search_optionsobjectOptional context-size and approximate-location search tuning.
max_completion_tokensintegerMaximum number of tokens Brave may generate in the answer.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Legacy SummaryBRAVE_SEARCH_GET_LEGACY_SUMMARYAcciónFetch one current poll result for a legacy Brave Summarizer key produced by web search with summary=true. This deprecated API is available only to accounts grandfathered into the discontinued Pro AI plan; new accounts cannot obtain access. Complete and failed are terminal statuses, while any other status should be retried later by calling the action again.
BRAVE_SEARCH_GET_LEGACY_SUMMARYAcciónFetch one current poll result for a legacy Brave Summarizer key produced by web search with summary=true. This deprecated API is available only to accounts grandfathered into the discontinued Pro AI plan; new accounts cannot obtain access. Complete and failed are terminal statuses, while any other status should be retried later by calling the action again.
Parámetros de entrada
summary_keystringObligatorioKey returned by a Brave web search made with summary=true. The connected API key must have the discontinued, grandfathered Pro AI entitlement.
inline_referencesbooleanInclude source references inline in the summary token stream.
include_entity_infobooleanInclude entity information associated with a completed summary.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get LLM Context (GET)BRAVE_SEARCH_GET_LLM_CONTEXTAcciónRetrieve token-budgeted web snippets and source metadata for grounding or RAG using URL-friendly parameters.
BRAVE_SEARCH_GET_LLM_CONTEXTAcciónRetrieve token-budgeted web snippets and source metadata for grounding or RAG using URL-friendly parameters.
Parámetros de entrada
countintegerSearch recall input used during context extraction; it is not a strict count of returned grounding entries.
querystringObligatorioQuestion or search query whose supporting context should be extracted (1-600 characters and at most 75 words).
countrystringTwo-letter country code, or ALL for worldwide source retrieval.
gogglesanyOne Goggles URL or inline definition, or a list of at most 3 definitions used to rerank or filter source retrieval.
freshnessstringLimit source retrieval by recency (pd, pw, pm, or py) or an inclusive YYYY-MM-DDtoYYYY-MM-DD date range.
spellcheckbooleanAllow Brave to correct the query.
safe_searchstringenumAdult-content filtering level.
offmoderatestrictenable_localbooleanForce local grounding on or off; omit to let Brave infer local recall from location headers.
location_citystringCaller city used to infer local grounding.
search_languagestringLanguage code for source content.
location_countrystringCaller country code used to infer local grounding.
location_latitudenumberCaller latitude for local grounding; provide with location_longitude.
location_longitudenumberCaller longitude for local grounding; provide with location_latitude.
location_state_codestringCaller state or region code used to infer local grounding.
location_state_namestringCaller state or region name used to infer local grounding.
location_postal_codestringCaller postal code used to infer local grounding.
context_threshold_modestringenumRelevance threshold policy for including context.
disabledstrictlenientbalancedenable_source_metadatabooleanInclude expanded source metadata in the response.
maximum_number_of_urlsintegerURL extraction budget; this is not a strict cap on generic grounding entries.
maximum_number_of_tokensintegerOverall token budget for extracted context.
maximum_number_of_snippetsintegerOverall snippet extraction budget.
maximum_number_of_tokens_per_urlintegerPer-source token extraction budget.
maximum_number_of_snippets_per_urlintegerPer-source snippet extraction budget.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get LLM Context (POST)BRAVE_SEARCH_GET_LLM_CONTEXT_POSTAcciónRetrieve token-budgeted web snippets and source metadata for grounding or RAG with a JSON body, suited to complex requests.
BRAVE_SEARCH_GET_LLM_CONTEXT_POSTAcciónRetrieve token-budgeted web snippets and source metadata for grounding or RAG with a JSON body, suited to complex requests.
Parámetros de entrada
countintegerSearch recall input used during extraction; not a strict output-entry count.
querystringObligatorioQuestion or search query whose supporting context should be extracted; at most 75 words.
countrystringTwo-letter country code, or ALL for worldwide source retrieval.
gogglesanyOne Goggles definition, or a list of at most 3, used to rerank or filter source retrieval.
freshnessstringLimit source retrieval by recency using pd, pw, pm, py, or an inclusive YYYY-MM-DDtoYYYY-MM-DD date range.
spellcheckbooleanAllow Brave to correct the query.
safe_searchstringenumAdult-content filtering level.
offmoderatestrictenable_localbooleanForce local grounding on or off; omit to use Brave's automatic behavior.
search_languagestringLanguage code for source content.
context_threshold_modestringenumRelevance threshold policy for including context.
disabledstrictlenientbalancedenable_source_metadatabooleanInclude expanded source metadata in the response.
maximum_number_of_urlsintegerURL extraction budget; not a strict cap on generic grounding entries.
maximum_number_of_tokensintegerOverall token budget for extracted context.
maximum_number_of_snippetsintegerOverall snippet extraction budget.
maximum_number_of_tokens_per_urlintegerPer-source token extraction budget.
maximum_number_of_snippets_per_urlintegerPer-source snippet extraction budget.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Local DescriptionsBRAVE_SEARCH_GET_LOCAL_DESCRIPTIONSAcciónFetch AI-generated Markdown descriptions for up to 20 ephemeral POI IDs returned recently by place or web search.
BRAVE_SEARCH_GET_LOCAL_DESCRIPTIONSAcciónFetch AI-generated Markdown descriptions for up to 20 ephemeral POI IDs returned recently by place or web search.
Parámetros de entrada
poi_idsstring[]ObligatorioEphemeral POI IDs from Search Places or a web search. IDs remain valid for about 8 hours. Each ID is sent as a repeated ids query parameter.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Local POIsBRAVE_SEARCH_GET_LOCAL_POISAcciónFetch structured details for up to 20 ephemeral POI IDs returned recently by place or web search. Unknown or expired IDs may return null entries in the results array.
BRAVE_SEARCH_GET_LOCAL_POISAcciónFetch structured details for up to 20 ephemeral POI IDs returned recently by place or web search. Unknown or expired IDs may return null entries in the results array.
Parámetros de entrada
unitsstringenumMeasurement system for distances and related values.
imperialmetricpoi_idsstring[]ObligatorioEphemeral POI IDs from Search Places or a web search. IDs remain valid for about 8 hours. Each ID is sent as a repeated ids query parameter.
ui_languagestringLanguage and region code for response labels.
search_languagestringLanguage code for POI content.
location_latitudenumberCaller latitude for localized distance information; provide with location_longitude.
location_longitudenumberCaller longitude for localized distance information; provide with location_latitude.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Rich ResultBRAVE_SEARCH_GET_RICH_RESULTAcciónResolve a fresh callback key from a rich-enabled web search into its real-time vertical result, such as weather, finance, sports, conversions, or definitions.
BRAVE_SEARCH_GET_RICH_RESULTAcciónResolve a fresh callback key from a rich-enabled web search into its real-time vertical result, such as weather, finance, sports, conversions, or definitions.
Parámetros de entrada
callback_keystringObligatorioFresh callback key returned by Search Web when enable_rich_callback is true and a rich match exists.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Search SuggestionsBRAVE_SEARCH_GET_SEARCH_SUGGESTIONSAcciónReturn typo-tolerant autocomplete suggestions for a partial query, optionally with rich entity metadata; requires the Autosuggest product.
BRAVE_SEARCH_GET_SEARCH_SUGGESTIONSAcciónReturn typo-tolerant autocomplete suggestions for a partial query, optionally with rich entity metadata; requires the Autosuggest product.
Parámetros de entrada
richbooleanInclude entity titles, descriptions, and image URLs when available; requires paid Autosuggest support for rich suggestions.
countintegerMaximum number of suggestions to return; Brave may return fewer.
querystringObligatorioPartial or complete query to autocomplete (1-400 characters and at most 50 words).
countrystringTwo-letter country code, or ALL, used to localize suggestions.
languagestringLanguage code used as a hint when generating suggestions.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Search ImagesBRAVE_SEARCH_SEARCH_IMAGESAcciónSearch Brave's image index and return up to 200 image matches in one non-paginated response.
BRAVE_SEARCH_SEARCH_IMAGESAcciónSearch Brave's image index and return up to 200 image matches in one non-paginated response.
Parámetros de entrada
countintegerMaximum image results to return; this endpoint has no next page.
querystringObligatorioImage search query (1-400 characters and at most 50 words).
countrystringTwo-letter country code, or ALL for worldwide results.
spellcheckbooleanAllow Brave to correct the search query.
safe_searchstringenumAdult-content filtering level.
offstrictsearch_languagestringLanguage code for image result context.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Search News (GET)BRAVE_SEARCH_SEARCH_NEWS_GETAcciónSearch Brave's news index with URL-friendly parameters and return one requested page of current news results.
BRAVE_SEARCH_SEARCH_NEWS_GETAcciónSearch Brave's news index with URL-friendly parameters and return one requested page of current news results.
Parámetros de entrada
countintegerMaximum news results on this page.
querystringObligatorioNews search query. Brave accepts at most 50 words.
offsetintegerZero-based result page number, not an item offset.
countrystringTwo-letter country code used to localize results.
gogglesanyOne Goggle URL or inline definition, or a list of up to three, used to rerank or filter results.
freshnessstringLimit news by recency using pd, pw, pm, py, or an inclusive YYYY-MM-DDtoYYYY-MM-DD date range.
operatorsbooleanInterpret supported Brave search operators in the query.
spellcheckbooleanAllow Brave to correct the search query.
safe_searchstringenumAdult-content filtering level.
offmoderatestrictui_languagestringLanguage and region code for response labels.
extra_snippetsbooleanInclude additional snippets when available.
search_languagestringLanguage code for news content.
include_fetch_metadatabooleanInclude fetch timestamps and related metadata when available.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Search News (POST)BRAVE_SEARCH_SEARCH_NEWS_POSTAcciónSearch Brave's news index with a JSON body, suited to long queries or complex Goggles, and return one requested result page.
BRAVE_SEARCH_SEARCH_NEWS_POSTAcciónSearch Brave's news index with a JSON body, suited to long queries or complex Goggles, and return one requested result page.
Parámetros de entrada
countintegerMaximum number of news results on this page; the provider may return fewer.
querystringObligatorioNews search query of at most 400 characters and 50 words; use POST when the complete request may exceed practical URL limits.
offsetintegerZero-based result page number, not an item offset.
countrystringTwo-letter supported country code used to localize results, or ALL for worldwide results.
gogglesanyOne Goggle URL or inline definition, or a list of at most three, used to rerank or filter results.
freshnessstringLimit news by recency using pd, pw, pm, py, or an inclusive YYYY-MM-DDtoYYYY-MM-DD date range.
operatorsbooleanInterpret supported Brave search operators in the query.
spellcheckbooleanAllow Brave to correct the search query and search using the corrected form.
safe_searchstringenumAdult-content filtering level.
offmoderatestrictui_languagestringLanguage and region code for response labels.
extra_snippetsbooleanInclude up to five additional alternative snippets for each result when available.
search_languagestringLanguage code for news content.
include_fetch_metadatabooleanInclude provider fetch timestamps and related metadata when available.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Search PlacesBRAVE_SEARCH_SEARCH_PLACESAcciónSearch Brave's geographic index for POIs and named places. Returns all matching result buckets and ephemeral POI IDs for prompt follow-up with local detail and description tools.
BRAVE_SEARCH_SEARCH_PLACESAcciónSearch Brave's geographic index for POIs and named places. Returns all matching result buckets and ephemeral POI IDs for prompt follow-up with local detail and description tools.
Parámetros de entrada
countintegerMaximum combined results across all place buckets.
querystringPlace or POI query; omit only to explore general POIs near an anchor.
unitsstringenumMeasurement system for distances and related values.
imperialmetriccountrystringTwo-letter country code, or ALL, used to localize place results.
latitudenumberLatitude anchor for the search area; provide with longitude.
locationstringNamed place anchor to use instead of latitude and longitude.
longitudenumberLongitude anchor for the search area; provide with latitude.
spellcheckbooleanAllow Brave to correct the place query.
geolocationstringCoordinate string in <latitude>x<longitude> format used for distance calculation, for example 37.7749x-122.4194.
safe_searchstringenumAdult-content filtering level.
offmoderatestrictui_languagestringLanguage and region code for response labels.
radius_metersnumberDistance bias in meters, not a hard result cutoff.
search_languagestringLanguage code for place content.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Search Videos (GET)BRAVE_SEARCH_SEARCH_VIDEOS_GETAcciónSearch Brave's video index with URL-friendly parameters and return one requested page of video results.
BRAVE_SEARCH_SEARCH_VIDEOS_GETAcciónSearch Brave's video index with URL-friendly parameters and return one requested page of video results.
Parámetros de entrada
countintegerMaximum number of video results on this page; Brave may return fewer.
querystringObligatorioVideo search query of at most 400 characters and 50 words.
offsetintegerZero-based result page number, not an item offset.
countrystringSupported two-letter country code used to localize results, or ALL for worldwide results.
freshnessstringLimit videos by recency using pd, pw, pm, or py, or by an inclusive YYYY-MM-DDtoYYYY-MM-DD date range.
operatorsbooleanInterpret supported Brave search operators in the query.
spellcheckbooleanAllow Brave to correct the query and search using the corrected form.
safe_searchstringenumAdult-content filtering level.
offmoderatestrictui_languagestringLanguage and region code for response labels.
search_languagestringLanguage code for video content.
include_fetch_metadatabooleanInclude fetch timestamps and related metadata when available.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Search Videos (POST)BRAVE_SEARCH_SEARCH_VIDEOS_POSTAcciónSearch Brave's video index with a JSON body, suited to long requests, and return one requested result page.
BRAVE_SEARCH_SEARCH_VIDEOS_POSTAcciónSearch Brave's video index with a JSON body, suited to long requests, and return one requested result page.
Parámetros de entrada
countintegerMaximum number of video results on this page; Brave may return fewer.
querystringObligatorioVideo search query of at most 400 characters and 50 words; use POST when the request may exceed practical URL limits.
offsetintegerZero-based result page number, not an item offset.
countrystringSupported two-letter country code used to localize results, or ALL for worldwide results.
freshnessstringLimit videos by recency using pd, pw, pm, py, or an inclusive YYYY-MM-DDtoYYYY-MM-DD date range.
operatorsbooleanInterpret supported Brave search operators in the query.
spellcheckbooleanAllow Brave to correct the query and search using the corrected form.
safe_searchstringenumAdult-content filtering level.
offmoderatestrictui_languagestringLanguage and region code for response labels.
search_languagestringLanguage code for video content.
include_fetch_metadatabooleanInclude provider fetch timestamps and related metadata when available.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Search Web (GET)BRAVE_SEARCH_SEARCH_WEB_GETAcciónSearch Brave's web index with URL-friendly parameters and return one requested result page plus any matching vertical, local, rich-callback, or legacy-summary metadata.
BRAVE_SEARCH_SEARCH_WEB_GETAcciónSearch Brave's web index with URL-friendly parameters and return one requested result page plus any matching vertical, local, rich-callback, or legacy-summary metadata.
Parámetros de entrada
countintegerMaximum number of web results on this page; other vertical counts may differ.
querystringObligatorioSearch query (1-600 characters and at most 75 words); supports Brave search operators when operators is enabled.
unitsstringenumMeasurement system for applicable rich or local results.
imperialmetricoffsetintegerZero-based result page number, not an item offset.
countrystringTwo-letter country code, or ALL for worldwide results.
gogglesanyOne Goggles URL or inline definition, or a list of at most 3 definitions.
summarybooleanRequest a legacy Summarizer key. This requires a grandfathered Pro AI entitlement and the key can be passed to the legacy summary action.
freshnessstringLimit results by recency (pd, pw, pm, or py) or an inclusive date range formatted YYYY-MM-DDtoYYYY-MM-DD.
operatorsbooleanInterpret supported Brave search operators in the query.
goggles_idstringDeprecated Goggles identifier; prefer goggles.
spellcheckbooleanAllow Brave to correct the search query.
user_agentstringOptional caller identifier sent to Brave for this request.
api_versionstringOptional Brave API version header; omit to use the provider default.
safe_searchstringenumAdult-content filtering level.
offmoderatestrictui_languagestringLanguage and region code for response labels.
cache_controlstringOptional HTTP cache directive for this search request.
location_citystringCaller city used as a local-search hint.
result_filterstringComma-separated subset of discussions, faq, infobox, news, query, summarizer, videos, web, and locations to return.
extra_snippetsbooleanInclude additional result snippets when available.
search_languagestringLanguage code for result content.
location_countrystringCaller country code used as a local-search hint.
text_decorationsbooleanInclude Brave's text decoration markup in result text.
location_latitudenumberApproximate caller latitude used to localize results; provide with location_longitude.
location_timezonestringIANA timezone used to localize time-sensitive results.
location_longitudenumberApproximate caller longitude used to localize results; provide with location_latitude.
location_state_codestringCaller state or region code used as a local-search hint.
location_state_namestringCaller state or region name used as a local-search hint.
enable_rich_callbackbooleanReturn a callback key for a matching rich vertical; pass that fresh key promptly to the rich-result action.
location_postal_codestringCaller postal code used as a local-search hint.
include_fetch_metadatabooleanInclude provider fetch timestamps and related metadata when available.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Search Web (POST)BRAVE_SEARCH_SEARCH_WEB_POSTAcciónSearch Brave's web index with a JSON body, suited to long queries or complex Goggles, and return one requested result page plus matching vertical metadata.
BRAVE_SEARCH_SEARCH_WEB_POSTAcciónSearch Brave's web index with a JSON body, suited to long queries or complex Goggles, and return one requested result page plus matching vertical metadata.
Parámetros de entrada
countintegerMaximum number of web results on this page; other vertical counts may differ.
querystringObligatorioSearch query (1-600 characters and at most 75 words); use this POST variant when the complete request may exceed practical URL limits.
unitsstringenumMeasurement system for applicable rich or local results.
imperialmetricoffsetintegerZero-based result page number, not an item offset.
countrystringTwo-letter country code, or ALL for worldwide results.
gogglesanyOne Goggles URL or inline definition, or a list of at most 3 definitions.
summarybooleanRequest a legacy Summarizer key. This requires a grandfathered Pro AI entitlement and the key can be passed to the legacy summary action.
freshnessstringLimit results by recency (pd, pw, pm, or py) or an inclusive date range formatted YYYY-MM-DDtoYYYY-MM-DD.
operatorsbooleanInterpret supported Brave search operators in the query.
goggles_idstringDeprecated Goggles identifier; prefer goggles.
spellcheckbooleanAllow Brave to correct the search query.
safe_searchstringenumAdult-content filtering level.
offmoderatestrictui_languagestringLanguage and region code for response labels.
result_filterstringComma-separated subset of discussions, faq, infobox, news, query, summarizer, videos, web, and locations to return.
extra_snippetsbooleanInclude additional result snippets when available.
search_languagestringLanguage code for result content.
text_decorationsbooleanInclude Brave's text decoration markup in result text.
enable_rich_callbackbooleanReturn a callback key for a matching rich vertical; pass that fresh key promptly to the rich-result action.
include_fetch_metadatabooleanInclude provider fetch timestamps and related metadata when available.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not