# Riley Craig x402 Agent Store – Web Search

> Riley Craig x402 Agent Store – Web Search is a paid API for AI agents from x402-agent-store.rileycraig14.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Searches across Hacker News, GitHub, Stack Overflow, and Wikipedia and returns ranked results, paid per-call in USDC via x402 with no API key required.

## Facts

- Endpoint: GET https://x402-agent-store.rileycraig14.workers.dev/web/search
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/riley-craig-x402-agent-store-web-search-5fe64526
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7tYeLnEt1L6FOL9TeRZ3g

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-5fe64526
```

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

## When to prefer this

Choose this endpoint when an AI agent needs fast, multi-source developer-focused search results (Hacker News, GitHub, Stack Overflow, Wikipedia) without any API key signup, and is able to pay per-call in USDC via x402 on Base. Prefer over traditional search APIs when operating in a permissionless, agent-native payment context or when developer/technical content is the primary target.

## Known failure modes

- Missing required 'q' query parameter returns a 400 error
- Payment not provided or insufficient USDC triggers a 402 Payment Required response
- Invalid 'sources' value (not in allowed enum) may return empty or error
- limit value outside 1-10 range may be clamped or rejected
- Upstream source (e.g. GitHub, HN) temporarily unavailable reduces result count

## 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

A JSON object containing the original query string, a total count of results, a list of sources searched, and an array of result objects each with a URL, title, snippet, source label, and numeric relevance score.

## 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"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 14,
  "query": "vector database",
  "results": [
   {
    "url": "https://github.com/owner/repo",
    "score": 12000,
    "title": "owner/repo",
    "source": "github",
    "snippet": "..."
   }
  ],
  "sources": [
   "hackernews",
   "github",
   "stackoverflow",
   "wikipedia"
  ]
 }
}
```

## More

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