Web Search
Search public web content with Tavily.
Tavily Search
Search the web and return ranked results with titles, URLs and content snippets. query is required. Use max_results to control the number of results and search_depth to select the search mode. Additional answer, images and raw content are returned only when requested. Set include_usage to receive resource usage information; usage.credits is not a Felo charge.
- Type: stringqueryrequired
The search query to execute with Tavily.
- Type: booleanauto
_parameters Automatically configure search parameters based on query content.
- Type: integerchunks
_per _source min:1max:3Maximum number of relevant chunks returned per source.
- Type: string enumcountry
Boost search results from a specific country. Available only when topic is general.
values- afghanistan
- albania
- algeria
- andorra
- angola
- Type: string Format: dateend
_date Return results before the specified end date.
- Type: array string[] …150exclude
_domains List of domains to specifically exclude from the search results.
- include
_answer Include an LLM-generated answer. true uses the default answer mode; basic or advanced selects the answer generation mode.
- Type: boolean
Include an LLM-generated answer. true uses the default answer mode; basic or advanced selects the answer generation mode.
- Type: array string[] …300include
_domains List of domains to specifically include in the search results.
- Type: booleaninclude
_favicon Include the favicon URL for each result.
- Type: booleaninclude
_image _descriptions Add descriptive text for each image when include_images is true.
- Type: booleaninclude
_images Perform an image search and include results.
- include
_raw _content Include cleaned and parsed content for each search result. true or markdown returns markdown; text returns plain text and may increase latency.
- Type: boolean
Include cleaned and parsed content for each search result. true or markdown returns markdown; text returns plain text and may increase latency.
- Type: booleaninclude
_usage Include resource usage information in the response. This is not Felo billing information.
- Type: integermax
_results min:0max:20Maximum number of search results to return.
- Type: booleansafe
_search Filter out adult or unsafe content from search results. Enterprise only; not supported when search_depth is fast or ultra-fast.
- Type: string enumsearch
_depth Controls the latency vs. relevance tradeoff. advanced gives the highest relevance with higher latency and cost; basic is balanced; fast and ultra-fast optimize for lower latency.
values- advanced
- basic
- fast
- ultra
-fast
- Type: string Format: datestart
_date Return results after the specified start date.
- Type: string enumtime
_range Time range to filter results based on publish date.
values- day
- week
- month
- year
- d
- w
- m
- y
- Type: string enumtopic
Category of the search.
values- general
- news
- finance
- Type: object200
Search results returned successfully.
- Type: string nullableanswer
A short LLM-generated answer. Present as null when include_answer is false or no answer is generated.
- Type: array object[]images
- descriptionType: string
Image description.
- urlType: string
Image URL.
- Type: stringquery
The search query that was executed.
- Type: stringrequest
_id Unique request identifier.
- Type: number Format: floatresponse
_time Time in seconds it took to complete the request.
- Type: array object[]results
- contentType: string
Content snippet of the search result.
- faviconType: string nullable
Favicon URL of the search result.
- rawType: string nullable
_content Cleaned and parsed source content. Null unless include_raw_content is requested or no raw content is available.
- scoreType: number Format: float
Relevance score of the search result.
- titleType: string
Title of the search result.
- urlType: string
URL of the search result.
- Type: objectusage
- creditsType: integer
Resource units consumed by this request, not USD or Felo credits.
application/json - 400
The request could not be processed. Check the request parameters.
- 401
A valid Felo API key is required.
- 402
The request cannot proceed because a billing requirement is not met.
- 403
The account is not permitted to perform this operation.
- 429
A request or spending limit has been reached.
- 502
The service could not complete the request.
- 503
The API or billing service is temporarily unavailable.
- 504
The service timed out while processing the request.
- default
The operation failed. Keep the response request ID when contacting Felo support.
curl --request POST https://openapi.felo.ai/v1/beta/tavily/search \
--header "Authorization: Bearer ${FELO_API_KEY:?Set FELO_API_KEY}" \
--header 'Content-Type: application/json' \
--data '{"query": "Python official documentation", "search_depth": "basic", "max_results": 2, "include_usage": true}'
{
"query": "Python official documentation",
"answer": null,
"images": [],
"results": [
{
"title": "Python Documentation",
"url": "https://docs.python.org/3/",
"content": "Documentation for the Python programming language.",
"score": 0.98,
"raw_content": null
}
],
"response_time": 1.2,
"usage": {
"credits": 1
},
"request_id": "example-search-request"
}