The Piloterr Brave Scraper API lets you extract public data from Brave as clean, structured JSON — no proxies, headless browsers or HTML parsing to maintain. Endpoints available in production:
- Brave Search API — Access the Brave search engine results directly through our efficient Piloterr service for reliable data scraping.
Use it for SEO rank tracking, SERP monitoring, ad intelligence, market research or grounding LLM answers with fresh search results.
| Endpoint | Path | Credits | What you get |
|---|---|---|---|
| Brave Search API | /v2/brave/search |
1 | Access the Brave search engine results directly through our efficient Piloterr service for reliable data scraping. |
- How it works
- Brave Search API
- Code examples in other languages
- Practical use cases
- Why Piloterr?
- FAQ
- Related scrapers
- Support
- Create a free Piloterr account and copy your API key from the dashboard.
- Send a
GET(orPOST) request tohttps://api.piloterr.com/v2/...with the headerx-api-key: YOUR_API_KEY. - Receive structured JSON — Piloterr handles rendering, proxies, retries and parsing.
export PILOTERR_API_KEY="your-api-key"
pip install requests # Python
# TypeScript: Node.js 18+ (native fetch), run with `npx tsx file.ts`Every endpoint accepts both
GET(query string) andPOST(JSON body with the same fields).
Access the Brave search engine results directly through our efficient Piloterr service for reliable data scraping.
GET | POST https://api.piloterr.com/v2/brave/search · 1 credit per request · Full reference
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | ✅ | The search query to execute on Brave Search. Supports all standard Brave search operators. |
page |
number | — | Page number of results to retrieve. Used for pagination. |
gl |
string | — | Country code, for example us, fr, gb, de. |
hl |
string | — | Language code, for example en, fr, de. |
import json
import os
import requests
response = requests.get(
"https://api.piloterr.com/v2/brave/search",
headers={"x-api-key": os.environ["PILOTERR_API_KEY"]},
params={
"query": "anthropic",
},
timeout=120,
)
response.raise_for_status()
data = response.json()
print(json.dumps(data, indent=2, ensure_ascii=False)[:2000])type BraveSearch = {
organic_results?: {
link?: string;
title?: string;
domain?: string;
snippet?: string;
position?: number;
displayed_link?: string;
snippet_matched?: string[];
}[];
search_parameters?: {
q?: string;
gl?: string;
hl?: string;
page?: number;
engine?: string;
};
};
const params = new URLSearchParams({
"query": "anthropic",
});
const response = await fetch(`https://api.piloterr.com/v2/brave/search?${params}`, {
headers: { "x-api-key": process.env.PILOTERR_API_KEY! },
});
if (!response.ok) throw new Error(`Piloterr error ${response.status}: ${await response.text()}`);
const data = (await response.json()) as BraveSearch;
console.log(JSON.stringify(data, null, 2).slice(0, 2000));POST variant
POST https://api.piloterr.com/v2/brave/search
x-api-key: YOUR_API_KEY
Content-Type: application/json
{"query": "anthropic"}Example response from the API reference, abridged — real values depend on the page you scrape.
{
"organic_results": [
{
"link": "https://www.anthropic.com/",
"title": "Anthropic",
"domain": "www.anthropic.com",
"snippet": "Anthropic is an AI safety company. Claude is its assistant.",
"position": 1,
"displayed_link": "anthropic.com",
"snippet_matched": [
"anthropic"
]
},
{
"link": "https://docs.anthropic.com/",
"title": "Anthropic documentation",
"domain": "docs.anthropic.com",
"snippet": "Documentation for the Claude API and the Anthropic platform.",
"position": 2,
"displayed_link": "docs.anthropic.com",
"snippet_matched": []
}
],
"search_parameters": {
"q": "anthropic",
"gl": "us",
"hl": "en",
"page": 1,
"engine": "brave"
}
}| Field | Type | Description |
|---|---|---|
organic_results[] |
object[] | |
organic_results[].link |
string | |
organic_results[].title |
string | |
organic_results[].domain |
string | |
organic_results[].snippet |
string | |
organic_results[].position |
integer | |
organic_results[].displayed_link |
string | |
organic_results[].snippet_matched |
string[] | |
search_parameters |
object | |
search_parameters.q |
string | |
search_parameters.gl |
string | |
search_parameters.hl |
string | |
search_parameters.page |
integer | |
search_parameters.engine |
string |
Ready-to-run examples live in the examples/ folder. Each one reads your key from the PILOTERR_API_KEY environment variable.
| Language | Search |
|---|---|
| cURL (Bash) | search |
| PHP | search |
| C# | search |
| Go | search |
| Java | search |
| Ruby | search |
| Node.js | search |
- SEO rank tracking — Track positions of your pages and competitors on target keywords.
- SERP monitoring — Watch features, snippets and new entrants on strategic queries.
- LLM grounding — Feed AI agents and RAG pipelines with fresh search results.
- Ad intelligence — See who advertises on your keywords and with which messages.
- Market research — Map competitors, news and trends at scale.
- No infrastructure — no proxies, headless browsers or CAPTCHA solving to run yourself.
- Structured JSON — stable, documented fields instead of brittle HTML selectors.
- Pay per request — transparent credit cost per endpoint, failed requests are retried for you.
- One API key, hundreds of sources — Brave plus many other e-commerce, search and company data endpoints in the Piloterr library.
- Any language — plain HTTPS + JSON, with examples for Python, TypeScript, cURL, PHP, C#, Go, Java, Ruby and Node.js.
Collecting publicly available data is generally allowed in many jurisdictions, but rules depend on your country, the data you collect and how you use it. Avoid personal data unless you have a lawful basis, respect the website's terms where they apply, and get legal advice for your specific use case. This is not legal advice.
No. Piloterr handles rendering, proxy rotation and retries on its side. You only send an HTTPS request with your x-api-key header and receive JSON.
Credits per call: /v2/brave/search 1. See the Piloterr website for plans.
Each endpoint returns structured JSON: Brave Search — organic_results[], organic_results[].link, organic_results[].title, organic_results[].domain, organic_results[].snippet, organic_results[].position.
Use the page parameter and keep requesting while the response indicates more results.
Yes, use gl, hl — see the parameter tables above for accepted values.
Any language that can make an HTTP request. This README shows Python and TypeScript; the examples/ folder contains cURL, PHP, C#, Go, Java, Ruby and Node.js.
- Bing Scraper API
- Google Scraper API
- Google Ads Transparency Scraper API
- All Piloterr scrapers on GitHub
- 💬 Join the Piloterr Discord to ask questions and share what you build.
- 📚 Browse the API reference (OpenAPI) and the Piloterr library.
- 🔑 Get your API key.
Built by Piloterr — web scraping APIs for e-commerce, search, real estate and more, one API key.
Brave is a trademark of its respective owner. This repository is not affiliated with or endorsed by Brave. Examples are released under the MIT license.
