# AgentPay Web Search

> AgentPay Web Search is a paid API for AI agents from agentpay.help, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Performs a live web search and returns ranked results with titles, URLs, and snippets, paid per-call via USDC on Base with no API key required.

## Facts

- Endpoint: POST https://agentpay.help/v1/web-search
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentpay-web-search-7dfdc74d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Wv6M-OJ2zd9bhSScUe4wq

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 agentpay-web-search-7dfdc74d -d '<json body>'
```

Example prompt: Search the web for the best yield farming strategies on Base in 2026 and give me up to 8 results with their URLs and summaries.

## When to prefer this

Choose this endpoint when your agent needs live web search results without setting up API keys or recurring subscriptions — ideal for pay-as-you-go agent workflows that already operate on Base/USDC. Prefer it for crypto-native pipelines, autonomous agents with on-chain payment capability, or when you want minimal integration overhead for occasional web lookups.

## Known failure modes

- Query too short (under 2 characters) — validation error returned
- Query exceeds 400 character limit — truncation or rejection error
- max_results out of range (less than 1 or greater than 10) — validation error
- Payment fails or insufficient USDC balance — 402 Payment Required response with no results
- No results found for obscure or malformed query — empty results array returned
- Network or upstream search provider timeout — 5xx error response

## How this service works

Pay-per-call AI services via the 402 Payment Required protocol. No accounts, no API keys — just USDC on Base.

## Output

A JSON object containing the original query, a count of results returned, and an array of result objects each with a URL, page title, and a short text snippet summarizing the page content. Typically returns 1–10 results depending on max_results requested.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "maxLength": 400,
   "minLength": 2,
   "description": "Search query"
  },
  "max_results": {
   "type": "number",
   "description": "Max results 1-10, default 8"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "query": "best yield farming strategies on Base 2026",
  "results": [
   {
    "url": "https://example.com/yield-base",
    "title": "Yield Guide — Base",
    "snippet": "Aave v3 and Morpho lead Base yields..."
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentpay-web-search-7dfdc74d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentpay.help](https://www.zero.xyz/host/agentpay.help/llms.txt)
