82trust / 100

Web Search

by Web Search in Search & web

x402 APIPassing, checked 2 h ago

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.

GET https://4yearcycle.com/x402/web-search

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
113 ms typical, 113 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://4yearcycle.com/x402/web-search?depth=basic&max=5&q=who+is+Leo+Messi"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2F4yearcycle.com%2Fx402%2Fweb-search
const res = await pay("https://4yearcycle.com/x402/web-search?depth=basic&max=5&q=who+is+Leo+Messi");
console.log(await res.json());

Example input

{
  "depth": "basic",
  "max": "5",
  "q": "who is Leo Messi"
}

Example output

{
  "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"
    }
  ]
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402137 ms$0.01
7 h agoPassed402113 ms$0.01