How do I migrate from the Brave Search API?
Grounder's Brave-shaped endpoint honors q and returns up to 5 results. count, freshness, site operators and search_lang are ignored; offset, Goggles and news search are not supported.
Last checked
To move Brave Search API code to Grounder, change https://api.search.brave.com/res/v1/web/search to https://api.grounder.net/compat/brave/res/v1/web/search and send a Grounder search key in place of your Brave key; q, count and freshness are honored.
Last checked: 24 November 2026. Disclosure: Grounder (grounder.net) publishes this page. Brave Search API is a separate company's product.
What changes
| Brave Search API | Grounder's Brave-shaped endpoint | |
|---|---|---|
| URL | GET https://api.search.brave.com/res/v1/web/search | GET https://api.grounder.net/compat/brave/res/v1/web/search |
| Authorization | X-Subscription-Token header with a Brave key | X-Subscription-Token header with a Grounder search key; Authorization: Bearer and a search-scoped OAuth access token also work |
| Where results come from | Brave's search | The sources Grounder chose for the question: their results, reached only where none of the source’s disallowed signals refuses it, or, if your account saved Grounder direct, their pages |
| Rate limit | 50 queries a second (Search plan) | 120 requests a minute per key, about 2 a second |
| Results per search | count, maximum 20, default 20 | Always 5; count is accepted and ignored |
| Free use | $5 free credit a month | 50 free searches a day per account |
| Other endpoints | News, images, videos, suggest, summarizer, LLM Context, Answers | Not available: web results only |
Request parameters:
| Brave parameter | On Grounder | Note |
|---|---|---|
q | Honored | Required; a site: or -site: operator no longer limits where results come from: the sources that answer the question decide the sites |
count | Accepted, ignored | Every search returns up to 5 results |
freshness | Accepted, ignored | No search takes a date window |
search_lang | Accepted, ignored | |
country, offset, safesearch, result_filter, extra_snippets, spellcheck, Goggles and any other parameter | Not supported | Ignored |
The response keeps Brave's shape: type, query (read query.original) and web.results[] with type, title, url, description, language, family_friendly, page_age (only when known), meta_url and profile, plus a grounder object that holds licensed, rank, the server that returned the result and, for licensed results, publisher_name. extra_snippets is never returned, and offset paging does not work: raise count instead. Do not rely on other query fields such as more_results_available; they are not documented here.
Each question goes to sources chosen by hand, so the results are the answering sources' pages, not Brave's. A question no source fits goes to the wider web under the same rules; only a search nothing answers returns an empty web.results list. Every search leaves out results a site's rules refuse, so a call can return fewer results than count.
Steps
1. Make a search key
Make a key under Search keys on your account and store it as GROUNDER_KEY; it is shown once. It searches as your account does, the same way MCP does. An OAuth access token with the search scope works in its place; the API docs describe both.
2. Change the URL and key
- https://api.search.brave.com/res/v1/web/search
+ https://api.grounder.net/compat/brave/res/v1/web/search
Before:
curl -G https://api.search.brave.com/res/v1/web/search \
-H "X-Subscription-Token: $BRAVE_API_KEY" \
--data-urlencode "q=half-life of caffeine site:ncbi.nlm.nih.gov" \
--data-urlencode "count=5" \
--data-urlencode "freshness=pm"
After:
curl -G https://api.grounder.net/compat/brave/res/v1/web/search \
-H "X-Subscription-Token: $GROUNDER_KEY" \
--data-urlencode "q=half-life of caffeine"
3. Update your code
Python:
import os
import requests
resp = requests.get(
"https://api.grounder.net/compat/brave/res/v1/web/search",
headers={"X-Subscription-Token": os.environ["GROUNDER_KEY"]},
params={"q": "half-life of caffeine"},
timeout=30,
)
resp.raise_for_status()
for r in resp.json()["web"]["results"]:
print(r["url"], r["grounder"]["licensed"])
TypeScript (Node 18 or later, as an ES module):
const params = new URLSearchParams({
q: "half-life of caffeine",
});
const res = await fetch(`https://api.grounder.net/compat/brave/res/v1/web/search?${params}`, {
headers: { "X-Subscription-Token": process.env.GROUNDER_KEY ?? "" },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json();
for (const r of data.web.results) console.log(r.url, r.grounder.licensed);
4. Check where your questions go
Grounder does not send a call to Brave's search. Each question goes to sources Grounder chose for it, with chosen backups, so try real questions from your agent before you switch. When no chosen source holds the answer, Grounder searches the wider web under the same rules and says so.
5. Verify
Send 10 to 20 real queries to both APIs and compare result counts and URLs. Fewer results than expected usually means that no source fit the question or that a site's rules refused the way Grounder reached a result. The native endpoint says which: its response lists each source used with its status, and says so when none fit. Each call is a recorded search.
6. Use MCP instead
Add https://api.grounder.net/mcp to your MCP client and sign in with Google, GitHub or Apple. The search tool takes query and include_text; steps are in Docs.
Where Grounder fits
Realtime, direct agentic access to the world's information. Grounder is a search API and MCP server for AI agents. It sends each question to high-quality sources chosen by hand, and marks each result with its source and why it is licensed. It returns sources, not an answer. To read how a result is licensed, see what Grounder does about licensing.
FAQ
Is there a Brave-compatible endpoint?
Yes: GET https://api.grounder.net/compat/brave/res/v1/web/search takes Brave's query parameters and returns Brave's web.results shape plus a grounder object on each result. It accepts a Grounder search key, or an OAuth access token with the search scope.
Which Brave parameters does it honor?
q. A search returns up to 5 results. count, freshness, the site: and -site: operators in q, search_lang, country, offset, safesearch, result_filter, extra_snippets and spellcheck are ignored.
What happens to Goggles, LLM Context and Answers?
They are not supported. The endpoint returns web results only, with no news, images, videos, suggest or summarizer either.
Can I cache the results?
Check first. Grounder publishes no storage rights for the results of its sources, and the terms of each source and of the service that reached it apply. Grounder keeps its own search records indefinitely; see /privacy.
Next step
Connect an MCP client to https://api.grounder.net/mcp, or make a search key and call the HTTP API.
Sources
- https://grounder.net/docs (24 November 2026)
- https://api-dashboard.search.brave.com/app/documentation/web-search/query (24 November 2026)
- https://brave.com/search/api/ (24 November 2026)
- https://grounder.net/pricing (24 November 2026)