# LION x402 Web Search JSON

> LION x402 Web Search JSON is a paid API for AI agents from lion-x402-bible.lionmaster-operations.workers.dev, paid per call via x402, $0.025/call, status unknown (last checked 2026-09-15).

Performs a web search and returns results as JSON, paid per-call with $0.01 USDC via x402 protocol on Base.

## Facts

- Endpoint: GET https://lion-x402-bible.lionmaster-operations.workers.dev/api/x402/web-search-json
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lion-x402-web-search-json-3e6f3d71
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VKRf9N87-kzdUVMFBXf4T

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 lion-x402-web-search-json-3e6f3d71
```

Example prompt: Search the web for the latest news on quantum computing breakthroughs and give me the results as structured JSON.

## When to prefer this

Choose this endpoint when your agent needs web search results in a clean JSON format without managing API keys, and you are already operating within an x402 micropayment-enabled pipeline on Base. It is ideal for autonomous agents that need keyless, pay-per-use access to live web data, especially when integrating with other x402-compatible services. Prefer it over traditional search APIs when low-friction crypto micropayments ($0.01 USDC per call) are preferable to subscription-based or key-gated alternatives.

## Known failure modes

- Payment not received or insufficient USDC balance — returns 402 Payment Required
- Invalid or missing search query parameter — returns 400 Bad Request
- x402 payment channel not properly initialized — payment handshake fails
- Search backend unavailable — returns 503 or empty results
- Query returns no results — resolved may be false or result set empty

## How this service works

Keyless attested data for autonomous agents. USDC on Base via x402. Official @x402/* middleware.

## Output

A JSON object containing web search results, including an asset_id field ('LION') and a resolved boolean indicating success, plus the underlying search result data for the query submitted.

## 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"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asset_id": "LION",
  "resolved": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lion-x402-web-search-json-3e6f3d71/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lion-x402-bible.lionmaster-operations.workers.dev](https://www.zero.xyz/host/lion-x402-bible.lionmaster-operations.workers.dev/llms.txt)
