T

Tavily · Search

by Tavily

POSTBaseAWS✓ Curated

$0.01

per call · USD Coin on Base

Tavily Search - advanced mode

Endpoint

POST https://x402.tavily.com/search

1.6k

Calls / 30d

87

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402.tavily.com/search", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "end_date": "2026-05-28",
    "exclude_domains": [
      "example.com"
    ],
    "include_answer": true,
    "include_domains": [
      "x402.org",
      "docs.cdp.coinbase.com"
    ],
    "include_images": true,
    "include_raw_content": true,
    "max_results": 5,
    "query": "what is x402?",
    "search_depth": "advanced",
    "start_date": "2026-01-01",
    "time_range": "month",
    "topic": "general"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://x402.tavily.com/search" \
  -H "Content-Type: application/json" \
  -d '{"end_date":"2026-05-28","exclude_domains":["example.com"],"include_answer":true,"include_domains":["x402.org","docs.cdp.coinbase.com"],"include_images":true,"include_raw_content":true,"max_results":5,"query":"what is x402?","search_depth":"advanced","start_date":"2026-01-01","time_range":"month","topic":"general"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "answer": null,
  "follow_up_questions": null,
  "images": [],
  "query": "what is x402?",
  "request_id": "8146b0d8-db42-42a7-8fb9-3796fce6853e",
  "response_time": 0.7,
  "results": [
    {
      "content": "x402 is an open payment protocol that revives the HTTP 402 status code so AI agents can pay per request in stablecoins, with no API keys or accounts.",
      "raw_content": null,
      "score": 0.92,
      "title": "x402 — Payment Required",
      "url": "https://x402.org/"
    }
  ]
}

Payment details

Pay to0xc9b42364fb804dd6705c3880099c7014673625dd
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, AWS
Schemesexact, agent-pay

Is this your API?

Pin it to the top of Search & Web and the homepage with a featured placement.

Get featured →

More from Tavily & similar services