# x402serps Web Search API

> x402serps Web Search API is a paid API for AI agents from x402serps.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-11-16).

Pay-per-call Google web search and news results API for AI agents, billed in USDC on Base via x402 protocol

## Facts

- Endpoint: GET https://x402serps.com/api/v1/search?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402serps-web-search-api-5e748858
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ynHQctcGg_DYuKHgYeG8R

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 x402serps-web-search-api-5e748858
```

Example prompt: Search the web for the latest news about OpenAI's GPT-5 release from the past week — give me the top 10 results in English.

## When to prefer this

Choose this endpoint when your AI agent needs live Google web or news search results without managing API keys or accounts, and you want frictionless per-call billing via USDC micropayments on Base. It is ideal for agentic workflows that run searches sporadically and want to pay only for what they use, rather than committing to a subscription. Prefer it over alternatives when you need country/language targeting, freshness filtering, or date-range-scoped results alongside Google's index quality.

## Known failure modes

- Insufficient USDC balance — payment fails and no results returned
- Invalid or missing query field — API returns validation error
- Unsupported country or language code — may return unexpected results or error
- Rate limits or quota exhaustion on the underlying Google search provider — may return partial or empty results
- Invalid date range (dateFrom after dateTo) — returns error or empty result set
- Page number out of range (>10) — returns error or empty results

## How this service works

real-time web search results (title, url, snippet) for AI agents, one query, 10 results per $0.004 (num up to 100), with freshness/date-range filters and pagination

## Output

Returns a JSON object with the echoed query, provider name, and an array of up to 100 search results each containing position number, title, URL, and snippet text.

## 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",
       "description": "Search query"
      },
      "num": {
       "type": "string",
       "description": "Results 1-100, default 10"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "query": {
       "type": "string"
      },
      "results": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "url": {
          "type": "string"
         },
         "title": {
          "type": "string"
         },
         "snippet": {
          "type": "string"
         },
         "position": {
          "type": "number"
         }
        }
       }
      },
      "provider": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "x402 payments protocol",
  "results": [
   {
    "url": "https://www.x402.org/",
    "title": "x402 payments protocol",
    "snippet": "An open standard for internet-native payments over HTTP 402.",
    "position": 1
   }
  ],
  "provider": "primary"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402serps-web-search-api-5e748858/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402serps.com](https://www.zero.xyz/host/x402serps.com/llms.txt)
