# x402 Demo API - Web Search

> x402 Demo API - Web Search is a paid API for AI agents from x402-demo-api-theta.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Performs a paid web search query and returns results, using the x402 micropayment protocol on Base mainnet for $0.05 USDC per call.

## Facts

- Endpoint: POST https://x402-demo-api-theta.vercel.app/api/web-search
- 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/x402-demo-api-web-search-3e9045b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TCQAxCkBkQnHBVbgzF_VI

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 x402-demo-api-web-search-3e9045b1 -d '<json body>'
```

Example prompt: Search the web for 'latest AI breakthroughs in 2025' and return the top results — pay the $0.05 USDC fee via x402 on Base mainnet.

## When to prefer this

Use this endpoint when an AI agent needs real-time web search results and is operating in an x402-enabled micropayment context on Base mainnet. Ideal for agents that need live web data without managing API keys, relying instead on per-call USDC micropayments. Best suited for demos, prototyping, or x402-native agent workflows.

## Known failure modes

- Payment not included or insufficient USDC — 402 Payment Required error
- Invalid or missing query parameter — 400 Bad Request
- Upstream search provider unavailable — 503 Service Unavailable
- Base mainnet transaction failure — payment processing error
- Rate limit exceeded — 429 Too Many Requests

## How this service works

Paid API with real data: AI/LLM, crypto prices, web search, translation, trending topics, sentiment analysis, aggregator, and more. All endpoints use x402 protocol on Base mainnet.

## Output

Returns a list of web search results including page titles, URLs, and text snippets relevant to the submitted query, fetched in real time from the web.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-demo-api-web-search-3e9045b1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-demo-api-theta.vercel.app](https://www.zero.xyz/host/x402-demo-api-theta.vercel.app/llms.txt)
