{"openapi":"3.1.0","info":{"title":"Tavily","version":"1.0.0","description":"Pay-per-request Tavily web search over the x402 protocol.","x-guidance":"Use POST /search for web search. Send a JSON body with a non-empty query and search_depth set to advanced. An unpaid request returns an x402 Payment Required challenge; pay it and retry the same request.","contact":{"email":"support@tavily.com"}},"servers":[{"url":"https://x402.tavily.com"}],"paths":{"/search":{"post":{"operationId":"search","summary":"Search the web with Tavily","description":"Returns comprehensive Tavily search results after an x402 payment.","tags":["Search"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":1000,"description":"The web search query."},"search_depth":{"type":"string","enum":["advanced"],"default":"advanced","description":"The currently supported x402 search tier."},"topic":{"type":"string","enum":["general","news","finance"],"default":"general"},"max_results":{"description":"The maximum number of search results.","oneOf":[{"const":"auto"},{"type":"integer","minimum":1,"maximum":50}]},"include_answer":{"type":"boolean"},"include_raw_content":{"type":"boolean"},"include_images":{"type":"boolean"},"time_range":{"type":"string"},"start_date":{"type":"string","format":"date"},"end_date":{"type":"string","format":"date"},"include_domains":{"type":"array","items":{"type":"string"}},"exclude_domains":{"type":"array","items":{"type":"string"}}},"required":["query"],"additionalProperties":true}}}},"responses":{"200":{"description":"Successful search response","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"follow_up_questions":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"answer":{"oneOf":[{"type":"string"},{"type":"null"}]},"images":{"type":"array","items":{}},"results":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"url":{"type":"string","format":"uri"},"content":{"type":"string"},"score":{"type":"number"},"raw_content":{"oneOf":[{"type":"string"},{"type":"null"}]}},"required":["title","url","content","score"],"additionalProperties":true}},"response_time":{"type":"number"},"request_id":{"type":"string"}},"required":["results"],"additionalProperties":true}}}},"402":{"description":"Payment Required","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 PaymentRequired payload.","schema":{"type":"string"}}}}}}}}}