Skip to content
中文

Search

POST/tavily/search● Supported

Official Tavily docs ↗

Request body

  • querystringrequired

    The search query to execute with Tavily.

  • search_depthstringoptional
    default "basic"

    Controls the latency vs. relevance tradeoff and how results[].content is generated:

    • advanced: Highest relevance with increased latency. Best for detailed, high-precision queries. Returns multiple semantically relevant snippets per URL (configurable via chunks_per_source).
    • basic: A balanced option for relevance and latency. Ideal for general-purpose searches. Returns multiple semantically relevant snippets per URL (configurable via chunks_per_source).
    • fast: Prioritizes lower latency while maintaining good relevance. Returns multiple semantically relevant snippets per URL (configurable via chunks_per_source).
    • ultra-fast: Minimizes latency above all else. Best for time-critical use cases. Returns one NLP summary per URL.

    Cost:

    • basic, fast, ultra-fast: 1 API Credit
    • advanced: 2 API Credits

    See Search Best Practices for guidance on choosing the right search depth.

    values advancedbasicfastultra-fast
  • chunks_per_sourceintegeroptional
    default 3

    Chunks are short content snippets (maximum 500 characters each) pulled directly from the source. Use chunks_per_source to define the maximum number of relevant chunks returned per source and to control the content length. Chunks will appear in the content field as: <chunk 1> [...] <chunk 2> [...] <chunk 3>. Available when search_depth is advanced, basic or fast.

  • max_resultsintegeroptional
    default 10

    The maximum number of search results to return.

  • topicstringoptional
    default "general"

    The category of the search.news is useful for retrieving real-time updates, particularly about politics, sports, and major current events covered by mainstream media sources. general is for broader, more general-purpose searches that may include a wide range of sources.

    values generalnewsfinance
  • time_rangestringoptional
    default null

    The time range back from the current date to filter results based on publish date or last updated date. Useful when looking for sources that have published or updated data. By default, results with no detectable published date are not removed; set filter_by_published_date to true to remove them.

    values dayweekmonthyeardwmy
  • start_datestringoptional
    default null

    Will return all results after the specified start date based on publish date or last updated date. Required to be written in the format YYYY-MM-DD. By default, results with no detectable published date are not removed; set filter_by_published_date to true to remove them.

  • end_datestringoptional
    default null

    Will return all results before the specified end date based on publish date or last updated date. Required to be written in the format YYYY-MM-DD. By default, results with no detectable published date are not removed; set filter_by_published_date to true to remove them.

  • include_published_datebooleanoptional
    default false

    Include a published_date field in each result. The date is Tavily's best estimate of when the source was published or last updated, so it can be later than the original publish date. Results with no detectable date return null. Automatically enabled when topic is news.

    Note: this feature is currently in beta.

  • filter_by_published_datebooleanoptional
    default false

    Remove results whose published date falls outside the time_range, start_date, or end_date window. Results with no detectable published date are also removed. Setting this to true also enables include_published_date.

    If you want date-window filtering but don't want to lose sources without a detectable date, leave this false and set include_published_date: true together with a date range instead.

  • More parameters (15)
    • include_answerboolean | stringoptional
      default false

      Include an LLM-generated answer to the provided query. basic or true returns a quick answer. advanced returns a more detailed answer.

    • include_raw_contentboolean | stringoptional
      default false

      Include the cleaned and parsed HTML content of each search result. markdown or true returns search result content in markdown format. text returns the plain text from the results and may increase latency.

    • include_imagesbooleanoptional
      default false

      Include images in the response. Returns both a top-level images list of query-related images and an images array inside each result object with images extracted from that specific source.

    • include_image_descriptionsbooleanoptional
      default false

      When include_images is true, also add a descriptive text for each image.

    • include_faviconbooleanoptional
      default false

      Whether to include the favicon URL for each result.

    • include_domainsarrayoptional
      default []

      A list of domains to specifically include in the search results. Maximum 300 domains.

    • exclude_domainsarrayoptional
      default []

      A list of domains to specifically exclude from the search results. Maximum 150 domains.

    • include_domains_modestringoptional
      default null

      Controls how include_domains is applied. restrict limits results to only the listed domains. prefer also searches the rest of the web, so results outside include_domains can still surface, rather than excluding them. Requires include_domains to be set; returns a 400 error otherwise.

      values restrictprefer
    • countrystringoptional
      default null

      Boost search results from a specific country. This will prioritize content from the selected country in the search results. Available only if topic is general.

      values afghanistanalbaniaalgeriaandorraangolaargentinaarmeniaaustraliaaustriaazerbaijanbahamasbahrainbangladeshbarbadosbelarusbelgiumbelizebeninbhutanboliviabosnia and herzegovinabotswanabrazilbruneibulgariaburkina fasoburundicambodiacamerooncanadacape verdecentral african republicchadchilechinacolombiacomoroscongocosta ricacroatiacubacyprusczech republicdenmarkdjiboutidominican republicecuadoregyptel salvadorequatorial guineaeritreaestoniaethiopiafijifinlandfrancegabongambiageorgiagermanyghanagreeceguatemalaguineahaitihondurashungaryicelandindiaindonesiairaniraqirelandisraelitalyjamaicajapanjordankazakhstankenyakuwaitkyrgyzstanlatvialebanonlesotholiberialibyaliechtensteinlithuanialuxembourgmadagascarmalawimalaysiamaldivesmalimaltamauritaniamauritiusmexicomoldovamonacomongoliamontenegromoroccomozambiquemyanmarnamibianepalnetherlandsnew zealandnicaraguanigernigerianorth koreanorth macedonianorwayomanpakistanpanamapapua new guineaparaguayperuphilippinespolandportugalqatarromaniarussiarwandasaudi arabiasenegalserbiasingaporeslovakiasloveniasomaliasouth africasouth koreasouth sudanspainsri lankasudanswedenswitzerlandsyriataiwantajikistantanzaniathailandtogotrinidad and tobagotunisiaturkeyturkmenistanugandaukraineunited arab emiratesunited kingdomunited statesuruguayuzbekistanvenezuelavietnamyemenzambiazimbabwe
    • languagestringoptional
      default null

      Boost search results in a specific language. Accepts an ISO 639-1 code (e.g. en, fr, zh-cn) or an English language name (e.g. english, french). By default this only boosts matching-language results in ranking; pass filter_by_language: true to strictly filter out non-matching results instead. For best results, write your query in the same language you set here.

    • filter_by_languagebooleanoptional
      default false

      Strictly filter out search results that don't match the language parameter, instead of only boosting them in ranking. Requires language to be set; returns a 400 error otherwise.

    • auto_parametersbooleanoptional
      default false

      When auto_parameters is enabled, Tavily automatically configures search parameters based on your query's content and intent. You can still set other parameters manually, and your explicit values will override the automatic ones. The parameters include_answer, include_raw_content, and max_results must always be set manually, as they directly affect response size. Note: search_depth may be automatically set to advanced when it's likely to improve results. This uses 2 API credits per request. To avoid the extra cost, you can explicitly set search_depth to basic.

    • exact_matchbooleanoptional
      default false

      Ensure that only search results containing the exact quoted phrase(s) in the query are returned, bypassing synonyms or semantic variations. Wrap target phrases in quotes within your query (e.g. "John Smith" CEO Acme Corp). Punctuation is typically ignored inside quotes.

    • include_usagebooleanoptional
      default false

      Whether to include credit usage information in the response.

    • safe_searchbooleanoptional
      default false

      Whether to filter out adult or unsafe content from results. Not supported for fast or ultra-fast search depths.

Returns

200

Errors follow the Tavily format — see error codes

Request

curl
curl https://api.deepraxis.com/tavily/search \
  -H "Authorization: Bearer $PRAXIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"Who is Leo Messi?"}'
Python
from tavily import TavilyClient

tavily_client = TavilyClient(
    api_key="$PRAXIS_API_KEY",
    api_base_url="https://api.deepraxis.com/tavily",
)

response = tavily_client.search("Who is Leo Messi?")
print(response)
TypeScript
import { tavily } from "@tavily/core";

const tvly = tavily({
  apiKey: "$PRAXIS_API_KEY",
  apiBaseURL: "https://api.deepraxis.com/tavily",
});

const response = await tvly.search("Who is Leo Messi?");
console.log(response);

Response 200

{
  "query": "Who is Leo Messi?",
  "follow_up_questions": null,
  "answer": null,
  "images": [],
  "results": [
    {
      "url": "https://en.wikipedia.org/wiki/Lionel_Messi",
      "title": "Lionel Messi",
      "content": "Lionel Andrés \"Leo\" Messi (born 24 June 1987) is an Argentine professional footballer who plays as a forward \"Forward (association football)\") for and captains \"Captain (association football)\") the Major League Soccer club Inter Miami and the Argentina national team. Widely regarded as one of the greatest players in history, He has set numerous records for individual accolades won throughout his professional footballing career, including eight Ballons d'Or, six European Golden Shoes, and being [...] the Argentine Armed Forces. On his father's side, Messi is of Italian and Spanish descent, the great-grandson of immigrants from the Marche region of Italy (with his surname coming from Porto Recanati), and on his mother's side he has primarily Italian ancestry. Growing up in a tight-knit, football-loving family, \"Leo\" developed a passion for the sport from an early age, playing constantly with his older brothers, Rodrigo and Matías, and his cousins, Maximiliano and Emanuel Biancucchi, both of [...] Messi the best player in history. Messi was a childhood idol for Jamal Musiala, Lamine Yamal, Cole Palmer, Estêvão Willian, Julián Alvarez and Enzo Fernández.",
      "score": 0.93666285,
      "raw_content": null,
      "id": "b2e0df-00"
    },
    {
      "url": "https://www.olympics.com/en/athletes/lionel-messi",
      "title": "Lionel Messi | Biography, Competitions, Wins and Medals",
      "content": "Born in Rosario, Argentina, in 1987, Lionel Messi is widely regarded as one of the greatest football players of all time, eight Ballon d'Or awards,",
      "score": 0.7092009,
      "raw_content": null,
      "id": "653684-01"
    },
    {
      "url": "https://messi.com/en/biography",
      "title": "Biografía Leo Messi | messi.com",
      "content": "MENUMENU\n\n HOME\n PRESS ROOM\n NEWS\n BIOGRAPHY\n THE MESSI STORE\n STATS\n ACHIEVEMENTS\n PHOTOS AND VIDEOS\n\n CAT\n ENG\n ESP\n\nWeb oficial Leo Messi jugador del Inter de Miami – messi.com\n\nWeb oficial Leo Messi jugador del Inter de Miami - messi.com\n\nWeb oficial de Lionel Messi, jugador del Futbol Profesional y campeón mundial con la selección Argentina\n\n# BIOGRAPHY\n\nMESSI\n\nBIOGRAPHY\n\nCHILDHOOD [...] I don’t care about personal awards, I am lucky to have won almost everything. What I care about is to keep winning with my club and Argentina. Everyday I give my best in order to obtain more titles with Barcelona and win important things with Argentina. I hope this lasts for many more years to come.\n\nONE OF THE\n\nBEST IN THE WORLD [...] I try to focus on maintaining my level of play and I am lucky to be part of a spectacular team — a team that always fights hard and I’ll try to continue enjoying all of this. Having Ballon D’Or nominees in the locker room is truly a privilege, a clear testament to the caliber of players that we have at Barcelona.",
      "score": 0.67192334,
      "raw_content": null,
      "id": "ca44fd-02"
    },
    {
      "url": "https://www.mlssoccer.com/players/lionel-messi",
      "title": "Leo Messi",
      "content": "Come Kick It! Watch MLS on Apple TV\n\nLearn More\n\nMajor League Soccer\n\n# Leo Messi\n\n#10 • Forward • Inter Miami CF\n\n Profile\n Career Stats\n Match Log\n News\n Video\n\nPlayer Details\n\n### Name\n\nLeo Messi\n\n### Height\n\n5' 7\"\n\n### Weight\n\n148 lbs\n\n### Date of Birth\n\n6.24.1987 (39)\n\n### Birthplace\n\n Rosario, Argentina\n\n### National Team\n\nArgentina\n\n### Position\n\nForward\n\n### Footedness\n\nLeft\n\n### Roster Category\n\nSenior\n\n### Player Category\n\nDesignated Player, International\n\nLatest News\n\nLatest News [...] ## David Beckham makes Ballon d'Or case for Lionel Messi after Campeones Cup triumph\n ## Lionel Messi lifts record 48th trophy as Inter Miami win Campeones Cup\n ## Inter Miami's Lionel Messi wins Goal of Matchday\n ## Lionel Messi nominated for Ballon d'Or 2026 award\n ## Lionel Messi makes history in first game since Argentina retirement\n\nLatest Video\n\nLatest Video\n\n 0:58\n\n  ## Goal: L. Messi vs. SD, 24'\n\n 1:09\n\n  ## Goal: L. Messi vs. CAZ, 24'\n 0:26 [...] Latest News\n\n ## Lionel Messi joins Denis Bouanga in elite MLS club\n\n  Stop us if you've heard this one before: Lionel Messi has rewritten the MLS record books.",
      "score": 0.5769478,
      "raw_content": null,
      "id": "04df76-03"
    },
    {
      "url": "https://www.intermiamicf.com/players/lionel-messi",
      "title": "Leo Messi",
      "content": "Inter Miami CF\n\n# Leo Messi\n\n#10 • Forward • Inter Miami CF\n\n Profile\n Career Stats\n Match Log\n News\n Video\n\nPlayer Details\n\n### Name\n\nLeo Messi\n\n### Height\n\n5' 7\"\n\n### Weight\n\n148 lbs\n\n### Date of Birth\n\n6.24.1987 (39)\n\n### Birthplace\n\n Rosario, Argentina\n\n### National Team\n\nArgentina\n\n### Position\n\nForward\n\n### Footedness\n\nLeft\n\n### Roster Category\n\nSenior\n\n### Player Category\n\nDesignated Player, International, International\n\n### Player Status\n\nUnavailable\n\nLatest\n\nLatest [...] Latest\n\nLatest\n\n ## Leo Messi Reaches 100 Goals for Inter Miami CF\n\n  With the opener against Cruz Azul on Wednesday evening in the 2026 Michelob ULTRA Campeones Cup, Inter Miami CF captain Leo Messi achieved another career milestone as he became the first player in Club history to reach the 100 goal mark. Messi achieved the feat in 115 appearances across all [...] ## Messi Named to MLS Team of the Matchday\n ## Leo Messi Nominated for 2026 Ballon d’Or\n ## Leo Messi Named MLS Player of the Matchday presented by Michelob Ulta for Matchday 23\n ## Messi and Casemiro Named to MLS Team of the Matchday\n ## Inter Miami CF Representatives Standout at FIFA World Cup 2026™",
      "score": 0.5585443,
      "raw_content": null,
      "id": "706ba9-04"
    },
    {
      "url": "https://www.transfermarkt.us/lionel-messi/profil/spieler/28003",
      "title": "Lionel Messi - Player profile 2026 - Transfermarkt",
      "content": "Transfermarkt\n\nLionel Messi\n\n# #10 Lionel Messi\n\nCaptain\n\nThe Best FIFA Men's Player 4   Winner Ballon d'Or 8   World Cup winner 1   Copa América winner 2   UEFA Champions League winner 4\n\nInter Miami CF \n\nMiami   \n   MLSMLS   League level:  United StatesFirst Tier   Joined: Jul 15, 2023 Contract expires: Dec 31, 2028\n\nLionel Messi\n\nMajor League Soccer\n\n+\n\n Date of birth/Age:  Jun 24, 1987 (39)\n Place of birth: Argentina  Rosario\n Citizenship:  Argentina Argentina [...] Social Media Links   Social Media Links   Social Media Links\n\nTransfermarkt Videos\n\nFurther information\n\nLionel Messi is the cousin of Maximiliano Biancucchi (Retired).  \n  \nLionel Messi is the cousin of Emanuel Biancucchi (Retired).  \n  \nLionel Messi is the brother of Matías Messi (Agent).\n\n \n\n## Youth clubs\n\nGrandoli FC (1992-1995), Newell's Old Boys (1995-2000)\n\n## Whom do you prefer?\n\n \n\nWhich player do you prefer...\n\nLionel Messi\n\nLionel Messi\n\nInter Miami CF versus  Mateo Silvetti [...] Facts and data \n\nName in home country: Lionel Andrés Messi Cuccitini Date of birth/Age:  Jun 24, 1987 (39)  Place of birth:  Rosario  Argentina  Height: 5 ft 7 in Citizenship:  Argentina  Argentina  \nSpain  Spain  Position:  Attack - Right Winger  Foot: left Player agent:  Relatives   Current club:    Inter Miami CF  Inter Miami CF  Joined:  Jul 15, 2023  Contract expires: Dec 31, 2028 Last contract extension: Oct 23, 2025 Outfitter: adidas Social-Media:",
      "score": 0.55420566,
      "raw_content": null,
      "id": "8fa9cd-05"
    },
    {
      "url": "https://www.imdb.com/name/nm2177779",
      "title": "Lionel Messi",
      "content": "Use app\n\n   Biography\n   Awards\n   Trivia\n\nIMDbPro\n\nAll topics\n\n# Lionel Messi\n\n   Actor\n   Executive\n\nIMDbPro StarmeterSee rank\n\nImage 3: Lionel Messi\n\n\n\nPlay trailer 1:44\n\nKun by Agüero (2025– )\n\n3 2\n\n18 Videos11 Photos\n\n\n\n\n\n\n\n\n\n\n\n   2020\n\n          \n\n   Born\n\n       June 24, 1987\n       Rosario, Santa Fe Province, Argentina\n\n   Spouse\n\n       Antonela RoccuzzoJune 30, 2017 - present (3 children) [...] #### User polls\n\nRelated polls from IMDb users\n\nWorld's Highest-Paid Celebrities 2016 Image 41: Taylor Swift at an event for 2019 Golden Globe Awards (2019)\n\nCristiano Ronaldo vs. Lionel Messi Image 42: Cristiano Ronaldo\n\nPersons of International Interest of 2022 Image 43: Joe Biden\n\nFace-Off: Maradona vs. Messi Image 44: Diego Maradona\n\nThe World's Highest-Paid Celebrities 2015 Image 45: Floyd Mayweather Jr. [...] Children    Thiago Messi  \n   Parents    Jorge Horacio Messi  \n   Relatives    Marcela Cuccittini(Aunt or Uncle)  \n   Other works Print ads for Proctor & gamble's Head & Shoulder shampoo line of hair care products.   \n   Publicity listings\n\n       1 Print Biography\n       1 Portrayal\n       6 Articles\n       7 Pictorials\n       17 Magazine Cover Photos\n\n\n\nTop Soccer Players Created 4y ago•27 people Image 39: Lionel Messi\n\nFamous Gamers Created 2y ago•39 people Image 40: Hideo Kojima",
      "score": 0.5100334,
      "raw_content": null,
      "id": "b83222-06"
    },
    {
      "url": "https://www.espn.com/soccer/player/_/id/45843/lionel-messi",
      "title": "Lionel Messi - Inter Miami CF Forward",
      "content": "Inter Miami's co-owner David Beckham and Inter Miami's Argentine forward #10 Lionel Messi shake hands after their team defeated Mexico's Cruz Azul in the Campeones Cup final at Nu Stadium in Miami, Florida, on September 16, 2026.\nLionel Messi and Luis Suarez celebrate after scoring a goal for Miami against Cruz Azul in the Campeones Cup.\nRetired Messi named to Argentina squad for Oct. 6 farewell game [...] Mbappe will 'dedicate' Ballon d'Or to African roots\nSan Diego's Andres Dreyer battles Lionel Messi of Miami for the ball during their MLS match on Sunday.\nMessi tracker: All goals, assists, key moments for Miami, Argentina in 2026\nLionel Messi, Kily Gonzalez and Rodrigo De Paul.\nLionel Messi #10 of Inter Miami CF receives the Player of the Match award after winning the Campeones Cup 2026 match between Inter Miami CF and Cruz Azul  at Nu Stadium on September 16, 2026 in Miami, Florida. [...] Cristian Gonzalez, Head Coach of Inter Miami CF speaks with David Beckham, co-owner of Inter Miami CF, during a training session at Florida Blue Training Center on September 15, 2026 in Fort Lauderdale, Florida.\nLionel Messi #10 of Inter Miami CF reacts during the MSL match between Inter Miami CF and Nashville SC at Miami Freedom Park on September 12, 2026 in Miami, Florida.",
      "score": 0.46016815,
      "raw_content": null,
      "id": "d17803-07"
    },
    {
      "url": "https://www.youtube.com/watch?v=8PCwX2wRJqQ",
      "title": "Lionel Messi 🇦🇷 The Complete Story",
      "content": "[5:34] more than resistance from Iran but there is a world class player on the opposing team and his name is Lionel Messi he's a\n[5:42] man on the mission strikes oh extraordinary four goals at this world cup now for lonel Messi but this is what\n[5:51] I love one andone by change your direction see you later Messi with the Run can Messi finally win it delber it\n[5:59] in for the first time in 16 years a place in the World Cup final will be decided [...] [24:52] getting beat by a country ranked outside the world's top 50 they have have rocked Argentina and Lionel Messi one of the\n[25:01] greatest players of all time to their core exuse where is Missy where is Missy\n[25:08] where is Miss where is Miss okay where is Miss where is Missy where is he\n[25:15] play where is who is Missy Missy is no one he's finished he's finished where is Messi tomorrow you will play against\n[25:24] artina please Messi kick him out World Cup kick him [...] [11:32] it's Messi this is what the great great players do Messi to accelerate to look for the hattick He is unbelievable\n[11:41] Leonel Messi saves Argentina he's uh for me the best player\n[11:49] in the world when he was needed he was called upon by his country and he delivered five Balon doors or One World Cup which would you\n[11:57] choose and if he were to win the the World Cup",
      "score": 0.4478231,
      "raw_content": null,
      "id": "ae64b3-08"
    }
  ],
  "response_time": 1.53,
  "usage": {
    "credits": 1
  },
  "request_id": "03e95e0a-dc31-4692-a23e-c03f8a230ce9"
}

Response

HTTP 200

Search results returned successfully

application/json

Name Type Description
query string The search query that was executed.
answer string 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)
images array<object> A list of query-related images from image search. If include_image_descriptions is true, each item will have url and description. Note: per-result images are also returned inside each result object's images field.
images[].url string
images[].description string
results array<object> A list of sorted search results, ranked by relevancy.
results[].title string The title of the search result.
results[].url string The URL of the search result.
results[].content string A short description of the search result.
results[].score number The relevance score of the search result.
results[].raw_content string The cleaned and parsed HTML content of the search result. Only if include_raw_content is true.
results[].published_date string Tavily's best estimate of when the source was published or last updated. Can be later than the original publish date. null if no date could be detected. Only returned when include_published_date is true (automatically enabled when topic is news).
results[].favicon string The favicon URL for the result.
results[].images array<object> A list of images extracted from this search result. Only included when include_images is true. If include_image_descriptions is true, each item will have url and description.
results[].id string Unique identifier for this result
auto_parameters object A dictionary of the selected auto_parameters, only shown when auto_parameters is true.
response_time number Time in seconds it took to complete the request.
usage object Credit usage details for the request.
request_id string A unique request identifier you can share with customer support to help resolve issues with specific requests.