# Web Search (Tavily-powered via 4yearcycle.com x402)

> Web Search (Tavily-powered via 4yearcycle.com x402) is a paid API for AI agents from 4yearcycle.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Queries the live web via Tavily Search API and returns ranked results with titles, URLs, snippets, and relevance scores, plus an optional synthesized answer — payable per-call via x402.

## Facts

- Endpoint: GET https://4yearcycle.com/x402/web-search
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web-search-tavily-powered-via-4yearcycle-com-x402-6d318ff4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jv2uN8JpPlteVZlRr2Lcz

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability web-search-tavily-powered-via-4yearcycle-com-x402-6d318ff4
```

Example prompt: Search the web for the latest news on EU AI Act enforcement — give me up to 10 results using advanced search depth, and exclude pinterest.com from the results.

## When to prefer this

Choose this endpoint when an AI agent needs live, ranked web search results with relevance scores and an optional synthesized answer in a single call, especially when domain filtering (include/exclude) is needed. It is well-suited for agents that need real-time information retrieval without managing a Tavily API key directly, and supports x402 micropayment billing at $0.03 per call — ideal for pay-per-use agent architectures.

## Known failure modes

- Missing or empty 'q' parameter returns a 400 error
- Query exceeding 400 characters is rejected
- Invalid 'max' value (outside 1-10 integer range) causes a validation error
- Tavily upstream API unavailability results in a 502 or 503 error
- Payment not provided or insufficient USDC balance causes a 402 Payment Required response
- Domain filter typos may silently reduce result quality without an explicit error

## How this service works

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.

## Output

A JSON object containing the original query string, the number of results returned, an array of ranked result objects (each with title, URL, snippet text, and a Tavily relevance score), and an optional short synthesized answer string (null if unavailable).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "examples": [
        "who is Leo Messi",
        "latest news on EU AI Act enforcement"
       ],
       "maxLength": 400,
       "minLength": 1,
       "description": "Search query. Required, 1-400 characters."
      },
      "max": {
       "type": "string",
       "default": "5",
       "pattern": "^\\d{1,2}$",
       "examples": [
        "5",
        "10"
       ],
       "description": "Maximum number of results to return. Integer 1-10. Default: 5."
      },
      "depth": {
       "enum": [
        "basic",
        "advanced"
       ],
       "type": "string",
       "default": "basic",
       "examples": [
        "basic",
        "advanced"
       ],
       "description": "Search depth. \"advanced\" costs Tavily more upstream but is not priced differently to the buyer yet. Default: basic."
      },
      "exclude_domains": {
       "type": "string",
       "examples": [
        "pinterest.com"
       ],
       "description": "Optional comma-separated domains to exclude from results."
      },
      "include_domains": {
       "type": "string",
       "examples": [
        "wikipedia.org",
        "nytimes.com,bbc.com"
       ],
       "description": "Optional comma-separated domains to restrict results to, e.g. wikipedia.org,bbc.com."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "query",
      "count",
      "results"
     ],
     "properties": {
      "count": {
       "type": "integer",
       "description": "Number of results returned"
      },
      "query": {
       "type": "string",
       "description": "Query as sent to Tavily"
      },
      "answer": {
       "type": [
        "string",
        "null"
       ],
       "description": "Tavily's short synthesized answer, null if una
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web-search-tavily-powered-via-4yearcycle-com-x402-6d318ff4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 4yearcycle.com](https://www.zero.xyz/host/4yearcycle.com/llms.txt)
