Skip to main content
POST
Search the web
From 1 credit per 10 results See the guide for examples and usage.

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer <API_KEY>. Keys have full access unless restricted to specific permissions.

Body

application/json
query
string
required

Search query. Accepts natural language and search operators such as site:, -site:, inurl:, intitle:, quoted phrases, and OR.

Required string length: 1 - 500
numResults
integer
default:10

Number of results to return.

Required range: 1 <= x <= 100
includeDomains
string[]

Only return results from these domains, such as arxiv.org.

Maximum array length: 100
Minimum string length: 3
excludeDomains
string[]

Leave out results from these domains, such as pinterest.com.

Maximum array length: 100
Minimum string length: 3
freshness
enum<string>

Restrict results to content published within this window.

Available options:
last_24_hours,
last_week,
last_month,
last_year
country
enum<string>

Localize results to this country, as an ISO 3166-1 alpha-2 code such as us or de.

Available options:
af,
al,
dz,
as,
ad,
ao,
ai,
aq,
ag,
ar,
am,
aw,
au,
at,
az,
bs,
bh,
bd,
bb,
by,
be,
bz,
bj,
bm,
bt,
bo,
ba,
bw,
bv,
br,
io,
bn,
bg,
bf,
bi,
kh,
cm,
ca,
cv,
ky,
cf,
td,
cl,
cn,
cx,
cc,
co,
km,
cg,
cd,
ck,
cr,
ci,
hr,
cu,
cy,
cz,
dk,
dj,
dm,
do,
ec,
eg,
sv,
gq,
er,
ee,
et,
fk,
fo,
fj,
fi,
fr,
gf,
pf,
tf,
ga,
gm,
ge,
de,
gh,
gi,
gr,
gl,
gd,
gp,
gu,
gt,
gn,
gw,
gy,
ht,
hm,
va,
hn,
hk,
hu,
is,
in,
id,
ir,
iq,
ie,
il,
it,
jm,
jp,
jo,
kz,
ke,
ki,
kp,
kr,
kw,
kg,
la,
lv,
lb,
ls,
lr,
ly,
li,
lt,
lu,
mo,
mk,
mg,
mw,
my,
mv,
ml,
mt,
mh,
mq,
mr,
mu,
yt,
mx,
fm,
md,
mc,
mn,
ms,
ma,
mz,
mm,
na,
nr,
np,
nl,
an,
nc,
nz,
ni,
ne,
ng,
nu,
nf,
mp,
no,
om,
pk,
pw,
ps,
pa,
pg,
py,
pe,
ph,
pn,
pl,
pt,
pr,
qa,
re,
ro,
ru,
rw,
sh,
kn,
lc,
pm,
vc,
ws,
sm,
st,
sa,
sn,
rs,
sc,
sl,
sg,
sk,
si,
sb,
so,
za,
gs,
es,
lk,
sd,
sr,
sj,
sz,
se,
ch,
sy,
tw,
tj,
tz,
th,
tl,
tg,
tk,
to,
tt,
tn,
tr,
tm,
tc,
tv,
ug,
ua,
ae,
gb,
us,
um,
uy,
uz,
vu,
ve,
vn,
vg,
vi,
wf,
eh,
ye,
zm,
zw
languages
default:all

Languages to return results in, as BCP 47 codes such as en or de, or all for any language.

Available options:
all
markdownOptions
object | null

Scrape each result page to Markdown. Set enabled to true to turn it on.

highlightsOptions
object | null

Return passages from each result page that are relevant to the query. Pages are read with the markdownOptions settings.

descriptionMaxCharacters
integer | null

Maximum length of each result's description, in characters.

Required range: x >= 0
timeoutOpts
object

Request deadline and what to return when it passes.

zdr
enum<string>
default:disabled

enabled turns on zero data retention. Returns 403 ZDR_NOT_ENABLED unless your organization has ZDR.

Available options:
enabled,
disabled
tags
string[]

Labels for this request. Filter usage and request logs by them in the dashboard or with GET /org/logs.

Maximum array length: 20
Required string length: 1 - 50
Example:
policies
string[]

Access policy IDs to apply; each URL must pass all of them. Requires access policies enabled for your organization; otherwise returns ACCESS_POLICIES_NOT_ENABLED.

Example:

Response

Search results, ordered by relevance.

results
object[]
required
query
string
required

The query you sent.

cache_metadata
object
required

Cache status of this response.

request_id
string<uuid>
required

Unique ID of this request, also in X-Request-Id. Include it when contacting support.

Example:

"3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91"

partial
boolean

true when the deadline passed with timeoutOpts.behavior set to return-partial. Only results finished in time are included. Partial results are not cached.

key_metadata
object

Credits this request used and your remaining balance.