# Riley Craig x402 Agent Store – Web Search

> Riley Craig x402 Agent Store – Web Search is a paid API for AI agents from store.agentexchange.work, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-13).

Search across Hacker News, GitHub, Stack Overflow, and Wikipedia with a single query, paying per call in USDC via x402 — no API keys required.

## Facts

- Endpoint: GET https://store.agentexchange.work/web/search
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/riley-craig-x402-agent-store-web-search-23427faa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dogsTJhiBMj114WtMMMCi

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 riley-craig-x402-agent-store-web-search-23427faa
```

Example prompt: Search for 'vector database' across GitHub, Hacker News, Stack Overflow, and Wikipedia and give me the top 8 results per source.

## When to prefer this

Choose this endpoint when an AI agent needs cross-source search covering developer and knowledge communities (GitHub, Hacker News, Stack Overflow, Wikipedia) without setting up API keys, and when the agent can pay $0.004 USDC per call via the x402 protocol on Base. Ideal for autonomous agents that need ad-hoc search with micropayments instead of subscription credentials.

## Known failure modes

- Missing required 'q' parameter returns 400 error
- Payment not included or insufficient USDC triggers 402 Payment Required
- Invalid source name in comma-separated 'sources' list may be ignored or cause 400
- limit value outside 1-10 range may be clamped or rejected
- Upstream source (e.g. GitHub, HN) unavailable leads to partial results or 503

## How this service works

One call, many sources: search Hacker News, GitHub, Stack Overflow, and Wikipedia by keyword and get back a unified, ranked result set — titles, URLs, scores/stars, and snippets — across all of them at once. The general research/search read agents make to ground answers, find code, surface discussion, and gather context. No API keys, no per-source accounts, free upstreams. Pass `sources` to narrow (hackernews,github,stackoverflow,wikipedia).

## Output

Returns a JSON object with the echoed query string, total result count, list of results (each with URL, title, snippet, source label, and relevance score), and an array of sources queried.

## 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 / keywords"
      },
      "limit": {
       "type": "number",
       "description": "Results per source, 1-10 (default 5)"
      },
      "sources": {
       "type": "string",
       "description": "Comma list to narrow: hackernews,github,stackoverflow,wikipedia (default all)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "count": {
       "type": "number"
      },
      "query": {
       "type": "string"
      },
      "results": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/riley-craig-x402-agent-store-web-search-23427faa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from store.agentexchange.work](https://www.zero.xyz/host/store.agentexchange.work/llms.txt)
