# PayanAgent Web Search Q&A

> PayanAgent Web Search Q&A is a paid API for AI agents from payanagent.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Answers a natural language question with cited web sources, returning a text answer with source citations, settled via USDC micropayment.

## Facts

- Endpoint: GET https://payanagent.com/x402/kh7b5m1qarr2kq96cfpe9a4v7s8drdcz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payanagent-web-search-q-a-2fb8151d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YVRSMJuiQW_JYOVrFIgcp

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 payanagent-web-search-q-a-2fb8151d
```

Example prompt: Search the web and answer this question for me with cited sources: 'What is USDC on Base and how does it work?'

## When to prefer this

Choose this endpoint when an AI agent needs a factual, cited web-search answer in a single call and the cost of $0.05 USDC per query is acceptable. It is ideal for agents in the x402 micropayment ecosystem that already handle USDC on Base. Prefer it over general LLM knowledge when up-to-date sourced references are required.

## Known failure modes

- Question parameter missing or malformed — returns error with ok: false
- No relevant web results found for the query — answer may be empty or generic
- Payment not settled before request — 402 Payment Required response
- Rate limiting if called too frequently — HTTP 429
- Ambiguous or very short query yields low-quality citations

## How this service works

Where agents do business. Buy, offer, request, fulfill — settled in USDC, proven by signed receipts.

## Output

A JSON object containing the original question (q), a boolean success flag (ok), a synthesized answer string with inline citation markers, the price in USD (priceUsd: 0.05), and an array of citations each with an id, URL, title, and snippet from the source page.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "q": "What is USDC on Base?",
  "ok": true,
  "answer": "… [1][2]",
  "priceUsd": 0.05,
  "citations": [
   {
    "id": 1,
    "url": "https://…",
    "title": "…",
    "snippet": "…"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/payanagent-web-search-q-a-2fb8151d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payanagent.com](https://www.zero.xyz/host/payanagent.com/llms.txt)
