GET
/
rag

Authorizations

X-API-Key
string
headerrequired

Query Parameters

query
string
required

Query string for searching index

num_web_results
integer

The max number of web results to return, must be under 20

offset
integer

The offset, in multiples of num_web_results. I.e if num_web_results = 5, and offset=1, the API will return results 5-10. The maximum value for offset is 9.

country
string

Country Code, one of ['AR', 'AU', 'AT', 'BE', 'BR', 'CA', 'CL', 'DK', 'FI', 'FR', 'DE', 'HK', 'IN', 'ID', 'IT', 'JP', 'KR', 'MY', 'MX', 'NL', 'NZ', 'NO', 'CN', 'PL', 'PT', 'PH', 'RU', 'SA', 'ZA', 'ES', 'SE', 'CH', 'TW', 'TR', 'GB', 'US']

safesearch
string

Safesearch settings, one of off, moderate, strict, defaults to moderate

Response

200 - application/json
answer
string
hits
object[]
latency
number