# Riley Craig x402 Agent Store — Wikipedia Search

> Riley Craig x402 Agent Store — Wikipedia 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-13).

Search Wikipedia and return article titles, snippets, and URLs for a given topic query, paid per-call in USDC via x402

## Facts

- Endpoint: GET https://x402-agent-store.rileycraig14.workers.dev/web/wikipedia
- Price: $0.01/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-wikipedia-search-4a92d9c8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kQwiIu466nhvY-SlvdGLP

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-wikipedia-search-4a92d9c8
```

Example prompt: Search Wikipedia for 'Ethereum' and give me the top 5 results with their titles, snippets, and links — pay the per-call fee in USDC automatically.

## When to prefer this

Use this endpoint when an AI agent needs quick encyclopedic background information, factual summaries, or source URLs from Wikipedia without setting up API keys or accounts. Ideal for agents that need to enrich responses with reference knowledge on-the-fly and can pay micro-amounts per call in USDC via x402. Prefer over direct Wikipedia API calls when operating in an x402-enabled payment environment.

## Known failure modes

- Missing required 'q' query parameter returns a validation error
- Limit value outside 1-10 range may be rejected or clamped
- No Wikipedia articles found for an obscure query returns empty results array
- Payment failure or insufficient USDC balance blocks the request with 402 response
- Service unavailability returns a 5xx error

## How this service works

Keyless fact-grounding: search Wikipedia for any topic and get the matching article titles with extract snippets and canonical URLs — the cheap knowledge read agents make to ground answers and reduce hallucination. Free upstream (Wikimedia API).

## Output

A JSON object containing the original query string, a count of results returned, and an array of Wikipedia article results each with a title, URL, and text snippet. Default returns up to 3 results; up to 10 can be requested.

## 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": "Topic / search query"
      },
      "limit": {
       "type": "number",
       "description": "Results, 1-10 (default 3)"
      }
     }
    }
   },
   "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": 3,
  "query": "Ethereum",
  "results": [
   {
    "url": "https://en.wikipedia.org/wiki/Ethereum",
    "title": "Ethereum",
    "snippet": "Ethereum is a decentralized blockchain..."
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/riley-craig-x402-agent-store-wikipedia-search-4a92d9c8/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)
