brave-search
Brave Search API wrapper
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-searchuv
uv add brave-searchpoetry
poetry add brave-searchInstalling 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
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
brave-search-python-clientA Python client library for the Brave Search…
permissive · top 15,000 on PyPI
yelpapiyelpapi wraps the Yelp Fusion API, letting you…
permissive · top 15,000 on PyPI
googlesearch-pythonScrapes Google search results by sending HTTP…
permissive · top 5,000 on PyPI
brightdata-sdkOfficial Python SDK for Bright Data APIs,…
permissive · top 15,000 on PyPI
azure-search-documentsClient library for querying, indexing, and…
unclear · top 5,000 on PyPI
censysA Python wrapper for Censys APIs that lets you…
permissive · top 15,000 on PyPI
ddgsAggregates web search results from multiple…
permissive · top 5,000 on PyPI
newsapi-pythonA Python client library that wraps the News…
permissive · top 15,000 on PyPI
adguardhomeAsynchronous Python client library for…
permissive · top 15,000 on PyPI
python-documentcloudA Python wrapper for the DocumentCloud API that…
permissive · top 15,000 on PyPI