Tavily

App · AI Search & Memory · 7 actions

Search the web with Tavily and get results built for automation: ranked pages, the passages that matched, and an optional written answer with its sources. Read any page as clean markdown instead of raw HTML, map or crawl a whole website, and have Tavily research a question in depth and write a cited report.

Actions

ActionWhat it does
Crawl a websiteStart from one page of a website, follow its links, and read every page reached as clean markdown or plain text.
Get a research taskCheck on a research task started with 'Start a research task' and, once it has finished, get its report and the sources it cites.
Get API usageSee how many Tavily credits the connected API key and the whole account have used this billing cycle, broken down by search, page reading, crawling, mapping and research, with the plan's limit and what is left.
Map a websiteList the addresses of a website's pages, found by following its links from one page, without reading them.
Read web pagesRead up to 20 web pages and get their content back as clean markdown or plain text, with the navigation, ads, and markup stripped out.
Search the webSearch the web with Tavily and get back ranked pages with the passages that matched, and optionally a written answer to the question.
Start a research taskHave Tavily research a question in depth: it runs many searches, reads the sources, and writes a report with citations.

Crawl a website

Start from one page of a website, follow its links, and read every page reached as clean markdown or plain text. Narrow it with plain-word instructions or path patterns, such as only the documentation. Costs credits for each page found and read.

Inputs

Website addressurltextRequired
The page to start from, such as https://docs.tavily.com. Tavily follows its links to crawl the rest of the site.
What to look forinstructionstext
Tell Tavily in plain words which pages you want, such as 'Find all pages about the Python SDK', and it follows the links most likely to lead there. Doubles the cost of finding pages.
Levels to followmax_depthnumber
How many links away from the starting page to go, from 1 to 5. Leave blank for 1: the starting page and the pages it links to.From 1 to 5.
Links per pagemax_breadthnumber
How many links to follow from each page, from 1 to 500. Leave blank for 20.From 1 to 500.
Most pageslimitnumber
Stop after this many pages in all. Leave blank for 50. Each page costs credits, so keep it as low as the job allows.At least 1.
Only paths matchingselect_pathslist
Only include pages whose path matches one of these regular expressions, such as /docs/.* or /blog/2025/.*. One per line.
Skip paths matchingexclude_pathslist
Leave out pages whose path matches one of these regular expressions, such as /admin/.* or /private/.*. One per line.
Only domains matchingselect_domainslist
Only include pages on domains or subdomains matching one of these regular expressions, such as ^docs\.example\.com$. One per line.
Skip domains matchingexclude_domainslist
Leave out pages on domains or subdomains matching one of these regular expressions, such as ^shop\.example\.com$. One per line.
Include other websitesallow_externaltrue/false
Also include pages on other websites that the site links to. Turn off to stay on the starting site.Default: true.
Extraction depthextract_depthtext
'Standard' handles ordinary articles and pages. 'Thorough' also pulls tables and embedded content out of complex pages, at twice the reading credits and more waiting.One of: basic (Standard (recommended)), advanced (Thorough (2x credits)). Default: basic.
Content formatformattext
Markdown keeps the headings, lists, and links. Plain text drops all formatting.One of: markdown (Markdown (recommended)), text (Plain text). Default: markdown.
Snippets per pagechunks_per_sourcenumber
How many snippets of each page most relevant to 'What to look for' to return, up to 5. Leave blank for 3. Without 'What to look for', each page comes back whole.From 1 to 5.
Include imagesinclude_imagestrue/false
Also return the images found on each page.Default: false.
Include site iconsinclude_favicontrue/false
Also return each page's favicon, for showing it with its site icon.Default: false.
Time limit (seconds)timeoutnumber
How long Tavily may spend, from 10 to 150 seconds. Leave blank for 150. When time runs out it returns the pages it read so far.From 10.0 to 150.0.

Outputs

base_urltext
The address the crawl started from.
request_idtext
Tavily's ID for this request, to quote to their support if something looks wrong.
response_timenumber
How long Tavily took, in seconds.
result_countnumber
How many pages were read.
resultslist
Every page the crawl read.
Example output
{
  "base_url": "https://docs.tavily.com",
  "request_id": "123e4567-e89b-12d3-a456-426614174111",
  "response_time": 1.23,
  "result_count": 2,
  "results": [
    {
      "favicon": null,
      "images": [],
      "raw_content": "# Welcome\n\nExplore our docs. Your journey to state-of-the-art web search starts right here.",
      "url": "https://docs.tavily.com/welcome"
    },
    {
      "favicon": null,
      "images": [],
      "raw_content": "# Credits & Pricing\n\nLearn how to get and manage your Tavily API credits.",
      "url": "https://docs.tavily.com/documentation/api-credits"
    }
  ]
}

Get a research task

Check on a research task started with 'Start a research task' and, once it has finished, get its report and the sources it cites. Can wait up to 5 minutes for the report to be written.

Inputs

Request IDrequest_idtextRequired
The request ID 'Start a research task' returned, such as 123e4567-e89b-12d3-a456-426614174111.
Wait for the report (seconds)wait_secondsnumber
If the research is still running, keep checking for up to this many seconds, from 0 to 300. Leave blank or 0 to answer at once. An unfinished task is reported, not treated as an error.From 0 to 300.

Outputs

contenttext
The written report, in markdown with citations. Empty until the task has completed, and when a report structure was given.
created_attext
When the task was created, in ISO 8601.
request_idtext
The research task's ID.
response_timenumber
How long Tavily took, in seconds.
source_countnumber
How many sources the report cites.
sourceslist
The sources the report cites.
statustext
Where the task is: 'pending', 'in_progress', 'completed' or 'failed'.
structured_contentobject
The report as data in the fields of the report structure. Only when one was given.
Example output
{
  "content": "# Latest Developments in AI\n\n## Executive Summary\n\nArtificial intelligence has seen major advances in large language models and multimodal systems [1][2].",
  "created_at": "2025-01-15T10:30:00Z",
  "request_id": "123e4567-e89b-12d3-a456-426614174111",
  "response_time": 1.23,
  "source_count": 2,
  "sources": [
    {
      "favicon": "https://example.com/favicon.ico",
      "title": "Latest AI Developments",
      "url": "https://example.com/ai-news"
    },
    {
      "favicon": "https://example.com/favicon.ico",
      "title": "AI Research Breakthroughs",
      "url": "https://example.com/ai-research"
    }
  ],
  "status": "completed",
  "structured_content": null
}

Get API usage

See how many Tavily credits the connected API key and the whole account have used this billing cycle, broken down by search, page reading, crawling, mapping and research, with the plan's limit and what is left. Costs no credits.

Inputs

None.

Outputs

accountobject
The account's plan and the credits it used.
keyobject
Credits the connected API key has used.
plan_credits_remainingnumber
Credits left on the plan this billing cycle, not counting pay as you go.
Example output
{
  "account": {
    "crawl_usage": 50,
    "current_plan": "Bootstrap",
    "extract_usage": 75,
    "map_usage": 15,
    "paygo_limit": 100,
    "paygo_usage": 25,
    "plan_limit": 15000,
    "plan_usage": 500,
    "research_usage": 10,
    "search_usage": 350
  },
  "key": {
    "crawl_usage": 15,
    "extract_usage": 25,
    "limit": 1000,
    "map_usage": 7,
    "research_usage": 3,
    "search_usage": 100,
    "usage": 150
  },
  "plan_credits_remaining": 14500
}

Map a website

List the addresses of a website's pages, found by following its links from one page, without reading them. Use it to see how a site is laid out, or to pick pages for 'Read web pages'. Cheaper than a crawl.

Inputs

Website addressurltextRequired
The page to start from, such as https://docs.tavily.com. Tavily follows its links to map the rest of the site.
What to look forinstructionstext
Tell Tavily in plain words which pages you want, such as 'Find all pages about the Python SDK', and it follows the links most likely to lead there. Doubles the cost of finding pages.
Levels to followmax_depthnumber
How many links away from the starting page to go, from 1 to 5. Leave blank for 1: the starting page and the pages it links to.From 1 to 5.
Links per pagemax_breadthnumber
How many links to follow from each page, from 1 to 500. Leave blank for 20.From 1 to 500.
Most pageslimitnumber
Stop after this many pages in all. Leave blank for 50. Each page costs credits, so keep it as low as the job allows.At least 1.
Only paths matchingselect_pathslist
Only include pages whose path matches one of these regular expressions, such as /docs/.* or /blog/2025/.*. One per line.
Skip paths matchingexclude_pathslist
Leave out pages whose path matches one of these regular expressions, such as /admin/.* or /private/.*. One per line.
Only domains matchingselect_domainslist
Only include pages on domains or subdomains matching one of these regular expressions, such as ^docs\.example\.com$. One per line.
Skip domains matchingexclude_domainslist
Leave out pages on domains or subdomains matching one of these regular expressions, such as ^shop\.example\.com$. One per line.
Include other websitesallow_externaltrue/false
Also include pages on other websites that the site links to. Turn off to stay on the starting site.Default: true.
Time limit (seconds)timeoutnumber
How long Tavily may spend, from 10 to 150 seconds. Leave blank for 150. When time runs out it returns the pages it found so far.From 10.0 to 150.0.

Outputs

base_urltext
The address the map started from.
request_idtext
Tavily's ID for this request, to quote to their support if something looks wrong.
response_timenumber
How long Tavily took, in seconds.
url_countnumber
How many pages were found.
urlslist
The address of every page found.
Example output
{
  "base_url": "https://docs.tavily.com",
  "request_id": "123e4567-e89b-12d3-a456-426614174111",
  "response_time": 1.23,
  "url_count": 3,
  "urls": [
    "https://docs.tavily.com/welcome",
    "https://docs.tavily.com/documentation/api-credits",
    "https://docs.tavily.com/documentation/about"
  ]
}

Read web pages

Read up to 20 web pages and get their content back as clean markdown or plain text, with the navigation, ads, and markup stripped out. Pair it with 'Search the web' to read the pages a search turned up.

Inputs

Web page addressesurlslistRequired
The addresses (URLs) of the pages to read, such as the ones an earlier search returned. Up to 20 per step. Pass a list even when there is only one page.
Extraction depthextract_depthtext
'Standard' handles ordinary articles and pages. 'Thorough' also pulls tables and embedded content out of complex pages, at twice the credits and more waiting.One of: basic (Standard (recommended)), advanced (Thorough (2x credits)). Default: basic.
Content formatformattext
Markdown keeps the headings, lists, and links. Plain text drops all formatting.One of: markdown (Markdown (recommended)), text (Plain text). Default: markdown.
What to look forquerytext
A question or topic to rank each page's content against. With it, each page comes back as its most relevant snippets, 3 unless 'Snippets per page' says otherwise, rather than in full. Leave blank to get the whole page.
Snippets per pagechunks_per_sourcenumber
How many of each page's most relevant snippets to return, up to 5. Leave blank for 3. Needs 'What to look for' filled in.From 1 to 5.
Include imagesinclude_imagestrue/false
Also return the images found on each page.Default: false.
Include site iconsinclude_favicontrue/false
Also return each page's favicon, for showing it with its site icon.Default: false.
Seconds per pagetimeoutnumber
How long to wait for each page before giving up on it, from 1 to 60 seconds. Leave blank to use Tavily's own timeout, which depends on the extraction depth.From 1.0 to 60.0.

Outputs

failed_countnumber
How many pages could not be read.
failed_resultslist
The pages that could not be read, each with the reason why.
request_idtext
Tavily's ID for this request, to quote to their support if something looks wrong.
response_timenumber
How long Tavily took, in seconds.
result_countnumber
How many pages were read.
resultslist
The pages that were read successfully.
Example output
{
  "failed_count": 0,
  "failed_results": [],
  "request_id": "123e4567-e89b-12d3-a456-426614174111",
  "response_time": 1.19,
  "result_count": 1,
  "results": [
    {
      "favicon": null,
      "images": [],
      "raw_content": "# Lionel Messi\n\nLionel Andres Messi is an Argentine professional footballer...",
      "url": "https://en.wikipedia.org/wiki/Lionel_Messi"
    }
  ]
}

Search the web

Search the web with Tavily and get back ranked pages with the passages that matched, and optionally a written answer to the question. Built for feeding later steps: results come back as clean text rather than HTML.

Inputs

Search queryquerytextRequired
What to search for, such as 'who is Leo Messi?'. Write it the way you would ask a person.
Topictopictext
Which slice of the web to search. 'News' is best for current events and reads from mainstream media; 'Finance' for markets and company data; 'General' for everything else.One of: general (General (recommended)), news, finance. Default: general.
Search depthsearch_depthtext
How hard Tavily works on the search. 'Balanced' suits almost every case. 'Thorough' is the most relevant, at twice the credits and more waiting. 'Fast' trades a little relevance for speed, and 'Fastest' returns one short summary per page instead of matching snippets.One of: basic (Balanced (recommended)), advanced (Thorough (2 credits)), fast, ultra-fast (Fastest (lowest quality)). Default: basic.
Number of resultsmax_resultsnumber
How many pages to return, up to 20. Set to 0 to get only the written answer, with no list of sources.From 0 to 20. Default: 5.
Write an answerinclude_answertext
Also have Tavily write an answer to the query from the results it found. 'Quick' is a sentence or two; 'Detailed' is a fuller write-up.One of: none (No answer), basic (Quick answer), advanced (Detailed answer). Default: none.
Include page contentinclude_raw_contenttext
Also return the full cleaned content of every result. Leave off unless a later step needs to read the whole page; the matching passages are usually enough, and full pages make the result much larger. Plain text takes longer than Markdown.One of: none (No page content), markdown, text (Plain text). Default: none.
Snippets per pagechunks_per_sourcenumber
How many matching snippets to return per page, from 1 to 3. Leave blank for 3. Does not apply to the 'Fastest' depth, which returns one summary per page.From 1 to 3.
Published withintime_rangetext
Only return pages published or updated within this much time of today.One of: day (Past day), week (Past week), month (Past month), year (Past year).
Published afterstart_datedate
Only return pages published or updated on or after this date, in YYYY-MM-DD format.
Published beforeend_datedate
Only return pages published or updated on or before this date, in YYYY-MM-DD format.
Include publish datesinclude_published_datetrue/false
Add Tavily's best estimate of when each page was published or last updated. Always on for a news search.Default: false.
Drop undated pagesfilter_by_published_datetrue/false
With a date range set, also leave out pages whose publish date can't be found, instead of keeping them. Turns on publish dates too.Default: false.
Websites to includeinclude_domainslist
Only return results from these websites, for example nytimes.com. Up to 300.
Use the included websitesinclude_domains_modetext
'Only these' returns results from the websites to include and nowhere else. 'Prefer these' ranks them first but still searches the rest of the web.One of: restrict (Only these (recommended)), prefer (Prefer these). Default: restrict.
Websites to excludeexclude_domainslist
Leave out results from these websites, for example reddit.com. Up to 150.
Boost a countrycountrytext
Prioritize results from one country, for example 'united states' or 'united kingdom'. Only applies to the General topic.
Boost a languagelanguagetext
Rank results in one language higher, as a two-letter code such as 'en' or 'fr', or a name such as 'german'. Works best with the query written in that language.
Only that languagefilter_by_languagetrue/false
Leave out results in any other language, instead of only ranking them lower. Needs 'Boost a language'.Default: false.
Match quoted phrases exactlyexact_matchtrue/false
Only return pages containing the phrases you put in quotes in the query, such as "John Smith" CEO. Without this, Tavily also matches synonyms and rewordings.Default: false.
Tune the search automaticallyauto_parameterstrue/false
Let Tavily pick the topic and depth from the query itself. Anything set above still wins. It may choose the 'Thorough' depth, which costs 2 credits per search.Default: false.
Include imagesinclude_imagestrue/false
Also return images related to the query, plus the images found on each result page.Default: false.
Describe the imagesinclude_image_descriptionstrue/false
Add a written description to every image returned. Needs 'Include images' turned on.Default: false.
Include site iconsinclude_favicontrue/false
Also return each result's favicon, for showing it with its site icon.Default: false.

Outputs

answertext
The written answer to the query. Only when an answer was requested.
auto_parametersobject
The settings Tavily chose. Only when the search was tuned automatically.
imageslist
Images related to the query. Only when images were included: addresses, or objects with a url and a description when the images are described.
querytext
The query that was searched for.
request_idtext
Tavily's ID for this request, to quote to their support if something looks wrong.
response_timenumber
How long Tavily took, in seconds.
result_countnumber
How many results were returned.
resultslist
The matching pages, most relevant first.
Example output
{
  "answer": null,
  "auto_parameters": null,
  "images": [],
  "query": "Who is Leo Messi?",
  "request_id": "123e4567-e89b-12d3-a456-426614174111",
  "response_time": 1.67,
  "result_count": 1,
  "results": [
    {
      "content": "Lionel Messi, an Argentine footballer, is widely regarded as one of the greatest football players of his generation.",
      "favicon": null,
      "id": "a3f9c2-04",
      "images": [],
      "published_date": null,
      "raw_content": null,
      "score": 0.81025416,
      "title": "Lionel Messi Facts | Britannica",
      "url": "https://www.britannica.com/facts/Lionel-Messi"
    }
  ]
}

Start a research task

Have Tavily research a question in depth: it runs many searches, reads the sources, and writes a report with citations. Research takes from under a minute to several, so this returns a request ID at once; pass it to 'Get a research task' for the report. Costs from 4 credits on the Mini model and 15 on Pro.

Inputs

Research questioninputtextRequired
What to research, such as 'Compare the pricing of the top three CRM tools for small teams'. Say what the report should cover.
Research modelmodeltext
'Mini' is quicker and cheaper, best for a narrow, well-defined question. 'Pro' looks at a broad topic from several angles. 'Automatic' lets Tavily choose.One of: auto (Automatic (recommended)), mini (Mini (4 to 110 credits)), pro (Pro (15 to 250 credits)). Default: auto.
Report lengthoutput_lengthtext
Roughly how long the report should be. A target, not a hard limit: the question can need more or less.One of: short, standard (Standard (recommended)), long. Default: standard.
Citation stylecitation_formattext
How the report cites its sources.One of: numbered (Numbered [1]), mla, apa, chicago. Default: numbered.
Websites to preferinclude_domainslist
Websites to favor as sources, for example sec.gov. Other sites can still be used. Up to 20.
Websites to excludeexclude_domainslist
Websites never to use as sources, subdomains included, for example reddit.com. Up to 20.
Report structureoutput_schemaobject
Get the report back as data in fixed fields rather than as text, by giving a JSON Schema: a 'properties' object where each field has a 'type' (string, number, integer, array or object) and a 'description', and optionally a 'required' list. Leave blank for a written report.

Outputs

created_attext
When the task was created, in ISO 8601.
inputtext
The question being researched.
modeltext
The research model that will do the work.
request_idtext
The research task's ID. Pass it to 'Get a research task' to collect the report.
response_timenumber
How long Tavily took, in seconds.
statustext
The task's state, 'pending' when it starts.
Example output
{
  "created_at": "2025-01-15T10:30:00Z",
  "input": "What are the latest developments in AI?",
  "model": "mini",
  "request_id": "123e4567-e89b-12d3-a456-426614174111",
  "response_time": 1.23,
  "status": "pending"
}

On this page