skillfed

brave-search

Brave Search API wrapper

brave-search v0.2.0 88.2K downloads/30d#13,745 on PyPI90
License unclear Active released

What it is and what it does

brave-search is a Python client for the Brave Search API, which provides privacy-preserving search results as an alternative to Google Search. The package wraps Brave's REST endpoints and returns structured data for web, news, and video results. It supports both synchronous and asynchronous request patterns, letting you choose based on your application's concurrency model.

Beyond basic search, the package includes convenience methods for extracting and aggregating data from results—downloading PDFs found in results, extracting product prices and review scores, and applying Brave Goggles (custom re-ranking rules) to alter result ordering. Configuration is straightforward: pass your API key as an environment variable or constructor argument, then call search() with your query and optional parameters like result count or country filter.

Use it for:

  • Build a privacy-focused search application or metasearch tool that queries Brave instead of tracking-heavy alternatives.
  • Extract and aggregate product pricing or review data from search results for price comparison or market research.
  • Apply custom Goggles to re-rank search results for domain-specific queries (e.g., academic sources, thought leadership).
  • Integrate privacy-preserving search into an async Python application without blocking I/O.
  • Download and process PDFs discovered in search results for document research or archival workflows.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Wrapper for the Brave Search API that provides both synchronous and asynchronous access to privacy-preserving web, news, and video search results.

Yes, with conditions. The package is actively maintained, has low install friction, and fills a clear need for privacy-preserving search integration. However, the license is unclear—verify the actual terms before use in proprietary contexts. The note that it is 'under active development' suggests the API surface may change; pin your version if stability is critical. No known vulnerabilities and reasonable dependency choices make it safe to try.

Install

brave-search on PyPI

pip

pip install brave-search

uv

uv add brave-search

poetry

poetry add brave-search

Installing brave-search

Before you install

Low install friction with a pure-Python wheel distribution. Active maintenance with recent commits and no known vulnerabilities. Six runtime dependencies (requests, httpx, tenacity, pydantic, pytest-asyncio, numpy) are all stable, widely-used packages.

License in practice

License status is unclear—no SPDX identifier or raw license text is recorded in the package metadata. Verify the actual license before use in proprietary or restricted contexts.

Quickstart

pip install brave-search

from brave import Brave

brave = Brave()
search_results = brave.search(q="cobalt mining", count=10)
web_results = search_results.web_results

Requires a Brave API key, passed via BRAVE_API_KEY environment variable or as an argument to the Brave class.

Verify before relying

  • Whether the package is production-ready given the note 'under active development, functionality may change'.
  • Actual license terms and compatibility with your use case (license metadata is unclear).
  • Performance and rate-limit behavior under typical usage loads.

Package facts

License not declared (unclear)
Python support supports the current Python release (<4.0,>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 6 — requests, httpx, tenacity, pydantic, pytest-asyncio, numpy
Maintenance actively maintained — 839 days since the last release
Last repo commit
First released
Downloads 88,161/month — #13,745 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: brave_search-0.2.0-py3-none-any.whl

Keywords: search, brave, api

Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

brave search api wrapperprivacy search pythonasync web searchsearch results aggregationbrave api clientprivacy-preserving searchsearch api integration
privacy-searchasync-readyapi-wrapper

More WWW/HTTP packages