# LION Web Search JSON (x402, Ed25519-attested)

> LION Web Search JSON (x402, Ed25519-attested) is a paid API for AI agents from lionx402.com, paid per call via x402, $0.025/call, status unknown (last checked 2026-09-15).

Performs a web search and returns attested JSON results, with each paid response carrying an offline-verifiable Ed25519 attestation — no API key required, pay-per-call via x402 on Base.

## Facts

- Endpoint: GET https://lionx402.com/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-web-search-json-x402-ed25519-attested-c66d48cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rFmTZWSBJ7xdZxpF222-_

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-web-search-json-x402-ed25519-attested-c66d48cd
```

Example prompt: Search the web for 'Base Layer 2 ecosystem latest news' and give me up to 10 results — I need the response to be cryptographically attested so I can verify it offline.

## When to prefer this

Choose this endpoint when an AI agent needs web search results that come with a portable, offline-verifiable cryptographic attestation (Ed25519), operates without any API key or account setup, and is willing to pay $0.01 USDC per call via the x402 protocol on Base. Prefer over standard search APIs when provability of results matters, or when building keyless agent workflows on Base/USDC rails.

## Known failure modes

- Payment not included or insufficient USDC — HTTP 402 returned requiring x402 payment header
- Missing required `q` parameter — returns validation error
- Query too broad or unsupported — may return empty results array
- Network timeout or upstream search failure — 5xx error
- Invalid `num` value above 20 — capped or rejected

## How this service works

Keyless attested web search (?q=) for agent grounding. $0.025 Base USDC — agent-search band. Ed25519-attested result set.

## Output

A JSON object containing web search results (up to 20 items) plus an `attestation` block with Ed25519 signature, signer public key, payload SHA-256, and algorithm — verifiable offline against /.well-known/lion-compliance-key.json. Costs $0.01 USDC per call via x402.

## 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": {
  "service": "LION Verified Company",
  "asset_id": "LION",
  "resolved": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lion-web-search-json-x402-ed25519-attested-c66d48cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lionx402.com](https://www.zero.xyz/host/lionx402.com/llms.txt)
