Tavily Search
Execute a search query using Tavily Search.
Authorizations
Bearer authentication header in the form Bearer <token>, where <token> is your Tavily API key (e.g., Bearer tvly-YOUR_API_KEY).
Body
The search query to execute with Tavily.
"who is Leo Messi?"
The category of the search.
general
, news
The depth of the search. A basic
search costs 1 API Credit, while an advanced
search costs 2 API Credits.
basic
, advanced
The maximum number of search results to return.
0 <= x <= 20
1
The time range back from the current date to filter results.
day
, week
, month
, year
, d
, w
, m
, y
Number of days back from the current date to include. Available only if topic is news
.
x >= 0
Include an LLM-generated answer to the provided query. basic
or true
returns a quick answer. advanced
returns a more detailed answer.
Include the cleaned and parsed HTML content of each search result.
Also perform an image search and include the results in the response.
When include_images
is true
, also add a descriptive text for each image.
A list of domains to specifically include in the search results.
A list of domains to specifically exclude from the search results.
Response
The search query that was executed.
"Who is Leo Messi?"
A short answer to the user's query, generated by an LLM. Included in the response only if include_answer
is requested (i.e., set to true
, basic
, or advanced
)
"Lionel Messi, born in 1987, is an Argentine footballer widely regarded as one of the greatest players of his generation. He spent the majority of his career playing for FC Barcelona, where he won numerous domestic league titles and UEFA Champions League titles. Messi is known for his exceptional dribbling skills, vision, and goal-scoring ability. He has won multiple FIFA Ballon d'Or awards, numerous La Liga titles with Barcelona, and holds the record for most goals scored in a calendar year. In 2014, he led Argentina to the World Cup final, and in 2015, he helped Barcelona capture another treble. Despite turning 36 in June, Messi remains highly influential in the sport."
List of query-related images. If include_image_descriptions
is true, each item will have url
and description
.
[]
A list of sorted search results, ranked by relevancy.
Time in seconds it took to complete the request.
"1.67"