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 APIGrounder's Brave-shaped endpoint
URLGET https://api.search.brave.com/res/v1/web/searchGET https://api.grounder.net/compat/brave/res/v1/web/search
AuthorizationX-Subscription-Token header with a Brave keyX-Subscription-Token header with a Grounder search key; Authorization: Bearer and a search-scoped OAuth access token also work
Where results come fromBrave's searchThe 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 limit50 queries a second (Search plan)120 requests a minute per key, about 2 a second
Results per searchcount, maximum 20, default 20Always 5; count is accepted and ignored
Free use$5 free credit a month50 free searches a day per account
Other endpointsNews, images, videos, suggest, summarizer, LLM Context, AnswersNot available: web results only

Request parameters:

Brave parameterOn GrounderNote
qHonoredRequired; a site: or -site: operator no longer limits where results come from: the sources that answer the question decide the sites
countAccepted, ignoredEvery search returns up to 5 results
freshnessAccepted, ignoredNo search takes a date window
search_langAccepted, ignored
country, offset, safesearch, result_filter, extra_snippets, spellcheck, Goggles and any other parameterNot supportedIgnored

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

Diff
- https://api.search.brave.com/res/v1/web/search
+ https://api.grounder.net/compat/brave/res/v1/web/search

Before:

Shell
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:

Shell
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:

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):

TypeScript
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

  1. https://grounder.net/docs (24 November 2026)
  2. https://api-dashboard.search.brave.com/app/documentation/web-search/query (24 November 2026)
  3. https://brave.com/search/api/ (24 November 2026)
  4. https://grounder.net/pricing (24 November 2026)