搜索
/search/v1/search● 支持请求体
querystring必填The search query to execute with Tavily.
search_depthstring可选Controls the latency vs. relevance tradeoff and how
results[].contentis generated:advanced: Highest relevance with increased latency. Best for detailed, high-precision queries. Returns multiple semantically relevant snippets per URL (configurable viachunks_per_source).basic: A balanced option for relevance and latency. Ideal for general-purpose searches. Returns multiple semantically relevant snippets per URL (configurable viachunks_per_source).fast: Prioritizes lower latency while maintaining good relevance. Returns multiple semantically relevant snippets per URL (configurable viachunks_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 Creditadvanced: 2 API Credits
See Search Best Practices for guidance on choosing the right search depth.
chunks_per_sourceinteger可选Chunks are short content snippets (maximum 500 characters each) pulled directly from the source. Use
chunks_per_sourceto define the maximum number of relevant chunks returned per source and to control thecontentlength. Chunks will appear in thecontentfield as:<chunk 1> [...] <chunk 2> [...] <chunk 3>. Available whensearch_depthisadvanced,basicorfast.max_resultsinteger可选The maximum number of search results to return.
topicstring可选The category of the search.
newsis useful for retrieving real-time updates, particularly about politics, sports, and major current events covered by mainstream media sources.generalis for broader, more general-purpose searches that may include a wide range of sources.time_rangestring可选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_datetotrueto remove them.start_datestring可选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_datetotrueto remove them.end_datestring可选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_datetotrueto remove them.include_published_dateboolean可选Include a
published_datefield 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 returnnull. Automatically enabled whentopicisnews.Note: this feature is currently in beta.
filter_by_published_dateboolean可选Remove results whose published date falls outside the
time_range,start_date, orend_datewindow. Results with no detectable published date are also removed. Setting this totruealso enablesinclude_published_date.If you want date-window filtering but don't want to lose sources without a detectable date, leave this
falseand setinclude_published_date: truetogether with a date range instead.更多参数 (15)
include_answerboolean | string可选Include an LLM-generated answer to the provided query.
basicortruereturns a quick answer.advancedreturns a more detailed answer.include_raw_contentboolean | string可选Include the cleaned and parsed HTML content of each search result.
markdownortruereturns search result content in markdown format.textreturns the plain text from the results and may increase latency.include_imagesboolean可选Include images in the response. Returns both a top-level
imageslist of query-related images and animagesarray inside each result object with images extracted from that specific source.include_image_descriptionsboolean可选When
include_imagesistrue, also add a descriptive text for each image.include_faviconboolean可选Whether to include the favicon URL for each result.
include_domainsarray可选A list of domains to specifically include in the search results. Maximum 300 domains.
exclude_domainsarray可选A list of domains to specifically exclude from the search results. Maximum 150 domains.
include_domains_modestring可选Controls how
include_domainsis applied.restrictlimits results to only the listed domains.preferalso searches the rest of the web, so results outsideinclude_domainscan still surface, rather than excluding them. Requiresinclude_domainsto be set; returns a 400 error otherwise.countrystring可选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.languagestring可选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; passfilter_by_language: trueto strictly filter out non-matching results instead. For best results, write yourqueryin the same language you set here.filter_by_languageboolean可选Strictly filter out search results that don't match the
languageparameter, instead of only boosting them in ranking. Requireslanguageto be set; returns a 400 error otherwise.auto_parametersboolean可选When
auto_parametersis 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 parametersinclude_answer,include_raw_content, andmax_resultsmust always be set manually, as they directly affect response size. Note:search_depthmay 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 setsearch_depthtobasic.exact_matchboolean可选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_usageboolean可选Whether to include credit usage information in the response.
safe_searchboolean可选Whether to filter out adult or unsafe content from results. Not supported for
fastorultra-fastsearch depths.
返回
200
错误按 Tavily 格式返回,参见 错误码
请求示例
curl
curl https://api.deepraxis.com/search/v1/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/search/v1",
)
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/search/v1",
});
const response = await tvly.search("Who is Leo Messi?");
console.log(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 the Major League Soccer club Inter Miami, which he ca…(采样时截断:原文共 1293 字符,此处保留前 200)",
"score": 0.94225764,
"raw_content": null,
"id": "2bee16-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, and his illustrious career proves",
"score": 0.7197191,
"raw_content": null,
"id": "c67901-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 Mes…(采样时截断:原文共 1048 字符,此处保留前 200)",
"score": 0.67192334,
"raw_content": null,
"id": "30af04-02"
},
{
"url": "https://www.mlssoccer.com/players/lionel-messi",
"title": "Leo Messi | MLSsoccer.com",
"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…(采样时截断:原文共 1122 字符,此处保留前 200)",
"score": 0.60861784,
"raw_content": null,
"id": "d60f3a-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 Bi…(采样时截断:原文共 1155 字符,此处保留前 200)",
"score": 0.5585443,
"raw_content": null,
"id": "687a71-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…(采样时截断:原文共 1430 字符,此处保留前 200)",
"score": 0.55420566,
"raw_content": null,
"id": "85323d-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 …(采样时截断:原文共 1314 字符,此处保留前 200)",
"score": 0.5100334,
"raw_content": null,
"id": "c28118-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, Fl…(采样时截断:原文共 1283 字符,此处保留前 200)",
"score": 0.46016815,
"raw_content": null,
"id": "a6d132-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 w…(采样时截断:原文共 1331 字符,此处保留前 200)",
"score": 0.4478231,
"raw_content": null,
"id": "5871ba-08"
}
],
"response_time": 1.21,
"usage": {
"credits": 1
},
"request_id": "1d4727e2-01e9-477e-91df-2f9f8a3c392a"
}响应
HTTP 200
Search results returned successfully
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| 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 | URL of the image. |
| images[].description | string | Description of the image, when the search was asked to describe images. |
| 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. |