Black Friday: 50% off the Starter plan with the code BLACKFRIDAY50 — See the offer
Brave
|
by Autom Team

search.brave.com/go/v1: read Location

Brave Search web results now use /go/v1 tokens. Do not decode them. Request the URL with the SERP as Referer and read Location.

Brave Search no longer puts the destination in the organic href. Web results point at /go/v1/<token> on https://search.brave.com. The token is not an encoded URL. Do not decode it.

Brave still sends the reader to a page. It puts that URL in the HTTP Location header, and only when the Referer is the SERP the link came from.

This is the same idea as google.com/goto, with one extra rule. Referer: https://search.brave.com/ or a bare /search returns the cloak page (200) and no Location.

Examples in curl, Python, Node, and Go: github.com/automdev/brave-gov1-url-fix. Autom’s Brave Search API runs that hop on the server.

One sentence

Do not follow the redirect. Send the SERP as Referer. Read Location.

GET /go/v1/<token> HTTP/1.1
Host: search.brave.com
Referer: https://search.brave.com/search?q=piloterr+api&source=web

HTTP/1.1 302 Found
Location: https://www.piloterr.com/library

HEAD and GET both work. Do not follow.

Images and videos still use direct https links. This change is the web SERP.

curl

curl -sI --max-redirs 0 \
  -H 'Referer: https://search.brave.com/search?q=piloterr+api&source=web' \
  'https://search.brave.com/go/v1/TOKEN' \
  | grep -i '^location:'

-I is HEAD. Without -L, curl does not follow. The Location: line is the real URL.

Python

import requests

url = "https://search.brave.com/go/v1/TOKEN"
serp = "https://search.brave.com/search?q=piloterr+api&source=web"
r = requests.head(url, allow_redirects=False, headers={"Referer": serp}, timeout=10)
print(r.status_code, r.headers.get("Location"))

If HEAD has no Location, retry with GET and no follow.

At Autom

The Brave Search API already resolves /go/v1 and returns the final URL in organic_results[].link.

curl -s https://api.autom.dev/v1/brave/search \
  -H "x-api-key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"piloterr api","gl":"us","hl":"en"}'

Code and README: github.com/automdev/brave-gov1-url-fix.

Related reading

1,000 free requests on Autom pricing, API key at app.autom.dev/register.

SERP API

Discover why Autom is the preferred API provider for developers.