How to use Brave Search with n8n (local)

This guide covers the steps to enable Brave Search via the official Brave Search community node in n8n.io, a flexible and community-driven automation platform. Please note, this covers the local version of n8n.

Sign-up and create a key for Brave Search API

Register or login to a Brave Search API account.

For use with n8n, you must ensure you are subscribed to the Search plan, which is found under the Subscriptions tab in the left hand menu of the dashboard.

On the same menu, visit API keys and click Add API Key to generate a new key. A dialogue box will appear asking you to name the key and select which of your subscribed plans to use.

Note: the Search plan includes $5 in free credits every month, which is usually more than enough for personal use. You can also set a usage limit in your dashboard to help ensure your usage stays free.

Run n8n on your machine with Docker

There are a few ways to do this, but n8n officially supports using npx (requires node.js) or Docker. In this case, we’re going to use Docker for its convenience. Once Docker is installed, copy and paste the following contents into the terminal, and hit enter/return. This will create and launch a container running the official n8n image.

docker volume create n8n_data
docker run -it --rm --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n

Open n8n settings in your browser

Once the image is installed and running via a container in Docker, visit http://localhost:5678 in your browser. Naturally, we suggest using Brave but any major browser will do.

After signing in (an account is required to use n8n, even locally), navigate to http://localhost:5678/settings/community-nodes and click Install. From there, enter the following for the npm package, and continue through the installation prompts.

@brave/n8n-nodes-brave-search

Insert your Brave Search API key (credentials)

Click Personal in the left side rail of the n8n portal. Then, open the Credentials tab. Search for Brave Search, which if installed correctly will be shown among the default nodes within n8n. Finally, you’ll be prompted to enter your API key and save the credentials after which a banner will appear to let you know the API connection was successful.

Test Brave Search in a simple workflow

Start with a blank workflow and add a Trigger manually node. Click the “+” button near it to add a next step. For your second step, select Action in an app and search for Brave Search. In this example, we’ll look for the latest news around Marvel movies. Set the Endpoint to News Search and enter the query Marvel movies. Leave the count at 20 (default) and click Test setup. If all was configured correctly, you’ll see the output of the request on the right hand side of the UI.

Related articles

Brave logo

Almost there…

Please continue the installation of Brave in the .

Please continue the installation of Brave in the .

You’re just 60 seconds away from the best privacy online

  1. Download Brave
  2. Run the installer
  3. Import settings
  1. step 1
    Download Brave

    Open the installer from Chrome's downloads (it should be in the upper right corner of this window).

  2. step 2
    Run the installer

    If you're prompted to, click “Yes” in the User Access Control dialog.

  3. step 3
    Import settings

    Wait for the installation to finish, then import your browser settings from Chrome.

If your download didn’t start automatically, click .

Need help?