Query
Returns a list of search index hits from query
Returns a list of search index hits from query
Query Parameters
Search query used to retrieve relevant results from index. You may also include search operators to refine your search.
Country Code
Specifies the freshness of the results to return.
Specifies the maximum number of web results to return. Range 1 ≤ num_web_results ≤ 20.
Indicates the offset for pagination. The offset is calculated in multiples of num_web_results. For example, if num_web_results = 5 and offset = 1, results 5–10 will be returned. Range 0 ≤ offset ≤ 9.
Configures the safesearch filter for content moderation. off - no filtering applied. moderate - moderate content filtering (default). strict - strict content filtering.
Returns
Indicates the time (in seconds) taken by the API to generate the response
curl https://api.you.com/search \
-H "X-API-Key: $YOU_API_API_KEY" \
-d '{}'
{
"hits": [
{
"description": "Search on YDC",
"title": "The World's Greatest Search Engine!",
"url": "https://you.com",
"favicon_url": "https://someurl.com/favicon",
"snippets": [
"I'm an AI assistant that helps you get more done. What can I help you with?"
],
"thumbnail_url": "https://www.somethumbnailsite.com/thumbnail.jpg"
}
],
"latency": 1
}