← Back to Skills Marketplace
liujm2012

Brave Api Search 3.0.2

by liujm2012 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
255
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install brave-api-search-3-0-2
Description
Real-time web search, autosuggest, and AI-powered answers using the official Brave Search API. Use for searching documentation, facts, current events, or any...
README (SKILL.md)

Brave API Search

Real-time web search, autosuggest, and AI-powered answers using the official Brave Search API. Three tools:

  • brave_search — web results with titles, URLs, descriptions, optional AI summary
  • brave_suggest — query autosuggestions as users type with optional rich metadata
  • brave_answers — AI-grounded answers with inline citations powered by live web search

Setup

Set your Brave API keys in a local .env file (recommended):

# .env (do not commit)
BRAVE_SEARCH_API_KEY=your_key_here
BRAVE_ANSWERS_API_KEY=your_key_here

Or export them in your shell session if needed.

Get your keys at: https://api-dashboard.search.brave.com

Both keys can be the same if your plan supports both Search and AI Answers endpoints.

Note: brave_search and brave_suggest use BRAVE_SEARCH_API_KEY. brave_answers requires BRAVE_ANSWERS_API_KEY.

Note: This skill explicitly requires BRAVE_SEARCH_API_KEY and BRAVE_ANSWERS_API_KEY. It does not use a generic BRAVE_API_KEY fallback.

When to Use This Skill

Use brave_search when:

  • Searching for current information, news, or recent events
  • Looking up documentation or technical references
  • Need ranked results with URLs to follow up on
  • Want an AI summary of search results

Use brave_suggest when:

  • Power autocomplete in search interfaces
  • Help users formulate better queries faster
  • Need query completions as users type
  • Want rich metadata (titles, descriptions, images) for suggestions

Use brave_answers when:

  • Need a synthesized answer with cited sources
  • Researching topics that benefit from multiple sources
  • Want AI-grounded responses with inline citations
  • Deep research mode needed (multi-search)

Don't use this skill for:

  • Questions already answered from context or memory
  • Tasks that don't require external information

Tools

brave_search

Web search returning ranked results with titles, URLs, and descriptions.

brave_search(query="latest Node.js release", count=5)
brave_search(query="TypeScript generics", extra_snippets=true)
brave_search(query="current weather Copenhagen", freshness="pd")
brave_search(query="React Server Components", summary=true)

Parameters:

  • query (required) — Search query, supports operators: site:, "exact phrase", -exclude
  • count — Results to return (1-20, default: 10)
  • country — 2-letter country code (default: us)
  • freshness — Date filter: pd (24h), pw (7 days), pm (31 days), py (1 year)
  • extra_snippets — Include up to 5 extra text excerpts per result (default: false)
  • summary — Fetch Brave AI summarizer result (default: false)

Returns: Formatted list of results with title, URL, description, and optional AI summary.

brave_suggest

Query autosuggest API providing intelligent query autocompletion as users type.

brave_suggest(query="hello")
brave_suggest(query="pyt", count=5, country="US")
brave_suggest(query="einstein", rich=true)

Parameters:

  • query (required) — Partial query to get suggestions for
  • count — Number of suggestions (1-10, default: 5)
  • country — 2-letter country code (default: US)
  • rich — Include enhanced metadata: titles, descriptions, images, entity detection (default: false, requires paid plan)

Returns: List of query suggestions, optionally with rich metadata.

Best Practices:

  • Implement debouncing (150-300ms) to avoid excessive API calls as users type
  • Load suggestions asynchronously without blocking the UI

brave_answers

AI-powered answers grounded in live web search with inline citations.

brave_answers(query="How does React Server Components work?")
brave_answers(query="Compare Postgres vs MySQL for OLAP", enable_research=true)
brave_answers(query="Latest Python release notes", enable_citations=true)

Parameters:

  • query (required) — Question or topic to research
  • enable_citations — Include inline source citations (default: true)
  • enable_research — Multi-search deep research mode (default: false)
  • country — Target country for search context (default: us)

Returns: AI answer with cited sources extracted from the response, plus token usage.

Pricing & Limits

Brave pricing is credit-based and can change. Do not assume a fixed free request count.

Current public guidance (verify in Brave dashboard/docs before production use):

  • Monthly trial credits may be offered (e.g. $5 in monthly credits)
  • Search and Answers consume credits differently
  • Rich suggestions require a paid Autosuggest plan
  • Answers may also include token-based costs
  • QPS limits depend on your plan tier

Always check your live limits and usage in:

Security & Packaging Notes

  • This skill only calls Brave official endpoints under https://api.search.brave.com/res/v1.
  • It requires exactly two env vars: BRAVE_SEARCH_API_KEY and BRAVE_ANSWERS_API_KEY (keep them in .env, not inline in commands/chats).
  • It does not request persistent/system privileges and does not modify system config.
  • It is source-file based (three local Node scripts), with no external install/download step.

API vs Web Scraping

This skill uses the official Brave Search API — not web scraping. Benefits:

  • Reliable, structured JSON responses
  • Rate limit headers and proper error messages
  • Access to AI summarizer, AI answers, and autosuggest endpoints
  • Terms of service compliant
Usage Guidance
This skill is largely coherent and appears to only call Brave's official API. Before installing: (1) verify the skill author/owner because the source/homepage is unknown; (2) ensure you have a Node runtime (Node 18+ recommended for global fetch) since the skill runs local Node scripts; (3) provide only the two Brave API keys and keep them out of version control (.env is recommended); (4) review the small JS files yourself if you want more assurance (they only call api.search.brave.com and format results); (5) monitor your Brave dashboard for unexpected usage after enabling the skill. Note: there are minor metadata/version mismatches in the package (skill.json vs SKILL.md vs _meta.json) — this looks like sloppy packaging rather than malicious behavior, but it does reduce provenance confidence.
Capability Analysis
Type: OpenClaw Skill Name: brave-api-search-3-0-2 Version: 1.0.0 The skill bundle contains a potential shell command injection vulnerability in the tool definitions within `skill.json`. The commands for `brave_search`, `brave_suggest`, and `brave_answers` use direct string interpolation of user-provided arguments (e.g., `{{query}}`) inside double quotes within a shell command string. If the OpenClaw platform performs simple string replacement without escaping, an attacker could break out of the quotes to execute arbitrary system commands. The Node.js scripts themselves appear to be legitimate implementations of the Brave Search API and do not exhibit intentional malicious behavior.
Capability Assessment
Purpose & Capability
The name/description, SKILL.md, skill.json, and the three Node scripts all align: they call Brave Search/Autosuggest/Answers endpoints and require BRAVE_SEARCH_API_KEY and BRAVE_ANSWERS_API_KEY. Nothing in the code asks for unrelated cloud credentials or system secrets.
Instruction Scope
Runtime instructions are narrowly scoped to calling Brave API endpoints and formatting results. The SKILL.md explicitly tells you to set BRAVE_* keys in a .env or shell; the scripts only read those env vars and make HTTPS calls to api.search.brave.com. There is no code that reads unrelated system files, other credentials, or transmits data to unknown endpoints.
Install Mechanism
There is no install/download step (lowest risk) and all source files are local. However the package contains Node scripts and the skill.json commands invoke node but the skill metadata in the registry lists no required binaries — you will need a Node runtime (and a Node >=18 environment for fetch availability) to run these scripts.
Credentials
Only two environment variables are required (BRAVE_SEARCH_API_KEY and BRAVE_ANSWERS_API_KEY), which matches the service being used. The env requirements are proportionate and are referenced in the code. No extra SECRET/TOKEN/PASSWORD variables are requested.
Persistence & Privilege
The skill does not request always:true or any system/persistent privileges. It does not modify system configuration or other skills. Autonomous invocation is allowed (platform default) but is not combined with other concerning flags.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install brave-api-search-3-0-2
  3. After installation, invoke the skill by name or use /brave-api-search-3-0-2
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of brave-api-search skill. - Provides real-time web search, autosuggest, and AI-powered answers via the official Brave Search API. - Includes three tools: `brave_search` (web search + AI summary), `brave_suggest` (query autosuggest with optional rich metadata), and `brave_answers` (AI-grounded answers with citations). - Requires separate environment variables: BRAVE_SEARCH_API_KEY and BRAVE_ANSWERS_API_KEY. - Documentation details key parameters, best practices, and API usage guidelines. - Uses only Brave’s official API endpoints (no scraping); no system privileges or external downloads required.
Metadata
Slug brave-api-search-3-0-2
Version 1.0.0
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is Brave Api Search 3.0.2?

Real-time web search, autosuggest, and AI-powered answers using the official Brave Search API. Use for searching documentation, facts, current events, or any... It is an AI Agent Skill for Claude Code / OpenClaw, with 255 downloads so far.

How do I install Brave Api Search 3.0.2?

Run "/install brave-api-search-3-0-2" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Brave Api Search 3.0.2 free?

Yes, Brave Api Search 3.0.2 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Brave Api Search 3.0.2 support?

Brave Api Search 3.0.2 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Brave Api Search 3.0.2?

It is built and maintained by liujm2012 (@liujm2012); the current version is v1.0.0.

💬 Comments