Skip to main content
POST
/
api
/
brave
/
search
/brave/search
curl --request POST \
  --url https://api.anysite.io/api/brave/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "q": "<string>",
  "count": 2,
  "timeout": 300,
  "country": "all",
  "safesearch": "moderate",
  "tf": "any"
}
'
[
  {
    "url": "<string>",
    "@type": "BraveSearchResult",
    "position": 123,
    "displayed_url": "<string>",
    "description": "<string>",
    "date": "<string>",
    "favicon": "<string>",
    "thumbnail": "<string>",
    "is_sponsored": false,
    "deep_links": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
q
string
required

Search query

Minimum string length: 1
Example:

"python fastapi"

count
integer
required

Maximum number of results to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
country
enum<string>
default:all

Region of the search results

Available options:
all,
us,
ar,
au,
at,
be,
br,
ca,
cl,
cn,
de,
dk,
fi,
fr,
gr,
hk,
in,
id,
it,
jp,
kr,
my,
mx,
nl,
nz,
no,
ph,
pl,
pt,
ru,
sa,
sg,
za,
es,
se,
ch,
tw,
tr,
gb
search_lang
enum<string> | null

Language of the result content (ISO 639-1)

Available options:
en,
az,
id,
ms,
br,
ca,
cs,
cy,
da,
de,
et,
es,
eu,
fr,
gl,
hr,
it,
sw,
lv,
lt,
hu,
nl,
nb,
pl,
pt,
ro,
sq,
sk,
sl,
sr,
fi,
sv,
vi,
tr,
el,
bg,
ru,
uk,
ka,
th,
ko,
zh,
ja
safesearch
enum<string>
default:moderate

Adult content filtering level

Available options:
off,
moderate,
strict
tf
enum<string>
default:any

Restrict results to a recency window

Available options:
any,
pd,
pw,
pm,
py

Response

Successful Response

url
string
required
@type
string
default:BraveSearchResult
position
integer | null
displayed_url
string | null
description
string | null
date
string | null
favicon
string | null
thumbnail
string | null
is_sponsored
boolean
default:false