GET
$0.01 default
/x402/web-searchDescription
General web search reselling the Tavily Search API: query the live web and get back ranked results (title, URL, snippet, relevance score) plus an optional short synthesized answer, with basic or advanced search depth and optional domain include/exclude filters.
Pricing
$0.01 default
Parameters
{
"additionalProperties": false,
"properties": {
"depth": {
"default": "basic",
"description": "Search depth. \"advanced\" costs Tavily more upstream but is not priced differently to the buyer yet. Default: basic.",
"enum": [
"basic",
"advanced"
],
"examples": [
"basic",
"advanced"
],
"type": "string"
},
"exclude_domains": {
"description": "Optional comma-separated domains to exclude from results.",
"examples": [
"pinterest.com"
],
"type": "string"
},
"include_domains": {
"description": "Optional comma-separated domains to restrict results to, e.g. wikipedia.org,bbc.com.",
"examples": [
"wikipedia.org",
"nytimes.com,bbc.com"
],
"type": "string"
},
"max": {
"default": "5",
"description": "Maximum number of results to return. Integer 1-10. Default: 5.",
"examples": [
"5",
"10"
],
"pattern": "^\\d{1,2}$",
"type": "string"
},
"q": {
"description": "Search query. Required, 1-400 characters.",
"examples": [
"who is Leo Messi",
"latest news on EU AI Act enforcement"
],
"maxLength": 400,
"minLength": 1,
"type": "string"
}
},
"required": [
"q"
],
"type": "object"
}Example response
{
"answer": "Lionel Messi is an Argentine professional footballer widely regarded as one of the greatest players of all time.",
"count": 1,
"query": "who is Leo Messi",
"responseTimeMs": 1340,
"results": [
{
"score": 0.8135,
"snippet": "Lionel Andrés Messi is an Argentine professional footballer who plays as a forward for and captains both Major League Soccer club Inter Miami and the Argentina national team.",
"title": "Lionel Messi - Wikipedia",
"url": "https://en.wikipedia.org/wiki/Lionel_Messi"
}
]
}