Overview
The Brave Search node allows users to perform web searches using the Brave Search API. It is designed to integrate search capabilities directly into n8n workflows, enabling automated retrieval of search results based on user queries. This node is particularly useful for scenarios such as content discovery, data enrichment, monitoring web content, or building custom search-driven automations.
For example, a user can input a search query and receive spellcheck suggestions or corrected queries from Brave Search, which can then be used downstream in the workflow for further processing or decision-making.
Properties
| Name | Meaning |
|---|---|
| Query | The user's spellcheck search query. Must not be empty. Maximum length is 400 characters and up to 50 words. |
| Additional Parameters | Optional parameters to refine the spellcheck request: - Country: Select a country code hinting the region context for the spellcheck (e.g., US, GB, DE, etc.). Default is "US". - Language: Select a language code for the spellcheck context (e.g., en, fr, de, es, etc.). Default is "en". |
Output
The node outputs an array of JSON objects representing the response from the Brave Search API's spellcheck endpoint. Each item corresponds to the processed input query and contains the spellcheck results or suggestions returned by the API.
If the node encounters errors during execution and "Continue On Fail" is enabled, it outputs the original input JSON along with error details for that item.
No binary data output is produced by this node.
Dependencies
- Requires an API key credential for authenticating requests to the Brave Search API.
- The node uses the Brave Search API endpoint
https://api.search.brave.com/res/v1for its operations. - Proper configuration of the API key credential within n8n is necessary for successful requests.
Troubleshooting
- Empty Query Error: The query property must not be empty. Ensure the input query string is provided and meets the length and word count restrictions.
- API Authentication Errors: If authentication fails, verify that the API key credential is correctly configured and valid.
- Rate Limits or Quotas: The Brave Search API may enforce rate limits; hitting these could cause errors. Check your API usage and consider adding delays or handling retries.
- Invalid Parameter Values: Selecting unsupported country or language codes might result in unexpected behavior or errors. Use only the provided options.
- Network Issues: Connectivity problems can cause request failures. Verify network access to the Brave Search API endpoint.
Links and References
- Brave Search API Documentation (general reference for API endpoints and parameters)
- n8n Documentation for guidance on setting up credentials and using HTTP Request nodes