Skip to content
Back to skills

Brave Search Api

ASecurity

This skill enables web searching using Brave Search API directly via curl. Use when searching for current information, news, articles, or web content. MCP server not required - calls API directly.

  • 30 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 1, 2026
toolsbashapi

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned June 1, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill brave-search-api-s-hiraoku-vscode-sidebar-termi --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Brave Search Api?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Brave Search Api
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-brave-search-api/badge)](https://www.skillsdirectory.com/skills/majiayu000-brave-search-api)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: brave-search-api
description: This skill enables web searching using Brave Search API directly via curl. Use when searching for current information, news, articles, or web content. MCP server not required - calls API directly.
---

# Brave Search API (Direct)

## Overview

This skill enables web searching using the Brave Search API directly via curl commands. No MCP server required - saves context tokens.

## API Key

Environment variable: `BRAVE_API_KEY`

## Web Search

### Endpoint
```
GET https://api.search.brave.com/res/v1/web/search
```

### Parameters
- `q` (required): Search query
- `count` (optional): Results count (1-20, default 10)
- `offset` (optional): Pagination offset

### Usage

Generate and execute this curl command:

```bash
curl -s "https://api.search.brave.com/res/v1/web/search?q=QUERY&count=10" \
  -H "Accept: application/json" \
  -H "X-Subscription-Token: $BRAVE_API_KEY"
```

### Example

```bash
curl -s "https://api.search.brave.com/res/v1/web/search?q=xterm.js+WebGL+tutorial&count=5" \
  -H "Accept: application/json" \
  -H "X-Subscription-Token: $BRAVE_API_KEY" | jq '.web.results[] | {title, url, description}'
```

## Local Search

### Endpoint
```
GET https://api.search.brave.com/res/v1/local/search
```

### Usage

```bash
curl -s "https://api.search.brave.com/res/v1/local/search?q=coffee+near+Shibuya" \
  -H "Accept: application/json" \
  -H "X-Subscription-Token: $BRAVE_API_KEY"
```

## Response Processing

Use `jq` to extract relevant fields:

```bash
# Get titles and URLs
| jq '.web.results[] | {title, url}'

# Get descriptions
| jq '.web.results[] | {title, description}'

# Get first 3 results
| jq '.web.results[:3]'
```

## Common Workflows

### Research a Technology
```bash
curl -s "https://api.search.brave.com/res/v1/web/search?q=VS+Code+extension+development+2024&count=10" \
  -H "Accept: application/json" \
  -H "X-Subscription-Token: $BRAVE_API_KEY" | jq '.web.results[:5] | .[] | {title, url}'
```

### Find Error Solutions
```bash
curl -s "https://api.search.brave.com/res/v1/web/search?q=WebGL+context+lost+solution&count=10" \
  -H "Accept: application/json" \
  -H "X-Subscription-Token: $BRAVE_API_KEY" | jq '.web.results[] | {title, url, description}'
```

## Notes

- URL encode spaces as `+` or `%20`
- API key must be set in environment
- Rate limits apply per subscription tier

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.