W

Web Search · WEB Search

by Web Search

GETBase

$0.03

per call · USD Coin on Base

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.

Endpoint

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

10

Calls / 30d

4

Unique payers / 30d

Sep 5

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://4yearcycle.com/x402/web-search", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://4yearcycle.com/x402/web-search?depth=basic&max=5&q=who+is+Leo+Messi" \
  -H "X-PAYMENT: <signed x402 payment>"

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

Payment details

Pay to0x9862ca83b72ab95521f457aff6e6efb03d8164c3
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

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

Get featured →

More from Web Search & similar services