> ## Documentation Index
> Fetch the complete documentation index at: https://test-62a57ffd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Example section for showcasing API endpoints

## Introduction

Brave Web Search API is a REST API to query Brave Search
and get back search results from the web. The following
sections describe how to curate requests, including parameters
and headers, to Brave Web Search API and get a JSON response back.

<Note>
  To try the API on a Free plan, you'll still need to subscribe — you simply
  won't be charged. Once subscribed, you can get an API key in the [API Keys
  section](/app/keys).
</Note>

## Endpoints

Brave Search API exposes multiple endpoints for specific types
of data, based on the level of your subscription. If you don't
see the endpoint you're interested in, you may need to change
your subscription.

```bash theme={null}
https://api.search.brave.com/res/v1/web/search
```

## Example

A request has to be made to the web search endpoint.
An example CURL request is given below.

```bash theme={null}
curl -s --compressed "https://api.search.brave.com/res/v1/web/search?q=brave+search" \
  -H "Accept: application/json" \
  -H "Accept-Encoding: gzip" \
  -H "X-Subscription-Token: <YOUR_API_KEY>"
```
