Skip to main content

Introduction

This guide will walk you through everything you need to perform your first search using the Brave Search API. From creating your account to making your first API request, you’ll be up and running in just a few minutes.

Prerequisites

Before you begin, make sure you have:
  • A valid email address for account registration
  • A credit card for plan subscription (required also on free plans)
  • Basic familiarity with making HTTP requests

Step 1: Create Your Account

Visit the Brave Search API Dashboard to create your account:
  1. Click on Sign Up or Get Started
  2. Enter your email address and create a secure password
  3. Verify your email address by clicking the confirmation link sent to your inbox
  4. Complete your account profile
Account creation is free and only takes a minute. You won’t be charged until you exceed the free tier limits.

Step 2: Subscribe to a Plan

Once your account is created, you’ll need to subscribe to a plan to access the API:
  1. Navigate to the Plans or Subscription section in your dashboard
  2. Review the available plans and select one that fits your needs
  3. Enter your credit card information
Free Plan Available: We offer a free tier that includes generous monthly query limits. While a credit card is required to prevent fraud and abuse, you won’t be charged unless you upgrade.

Plan Options

Our plans are designed to scale with your needs:
  • Free Tier: Perfect for testing and small projects (credit card required for verification)
  • Developer: Ideal for production applications with moderate traffic
  • Professional: For businesses with high-volume requirements
  • Enterprise: Custom solutions with dedicated support and SLAs

Step 3: Create an API Key

After subscribing to a plan, generate your API key:
  1. Go to the API Keys section in your dashboard
  2. Click on Create New API Key
  3. Give your key a descriptive name (e.g., “Production App” or “Development”)
  4. Copy your API key and store it securely
Your API key is confidential. Never share it publicly, commit it to version control, or expose it in client-side code. Treat it like a password.

Step 4: Make Your First Search Request

Now you’re ready to make your first search! The Brave Search API uses a simple REST architecture. All requests require your API key in the X-Subscription-Token header. Here’s how to perform a basic web search:
curl -s --compressed "https://api.search.brave.com/res/v1/web/search?q=artificial+intelligence" \
  -H "Accept: application/json" \
  -H "Accept-Encoding: gzip" \
  -H "X-Subscription-Token: YOUR_API_KEY"

Understanding the Response

A successful search returns a JSON object with various result types:
{
  "type": "search",
  "query": {
    "original": "artificial intelligence"
  },
  "web": {
    "results": [
      {
        "title": "Artificial Intelligence - Overview",
        "url": "https://example.com/ai",
        "description": "Learn about artificial intelligence...",
        "age": "2024-10-08T10:30:00.000Z"
      }
    ]
  }
}

Monitor Your Usage

Keep track of your API usage in the dashboard to:
  • Stay within your plan limits
  • Optimize your query patterns
  • Plan for scaling needs

Next Steps

Congratulations! You’ve made your first search with the Brave Search API. Here’s what to explore next:

Need Help?

If you run into any issues or have questions:
I