# ALFRED x402 Wikipedia Search

> ALFRED x402 Wikipedia Search is a paid API for AI agents from x402.wallace.us, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Searches Wikipedia and returns relevant article content for a given query, paid per-call via Lightning/x402 protocol.

## Facts

- Endpoint: GET https://x402.wallace.us/x402/wikipedia-search
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alfred-x402-wikipedia-search-acb4e169
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rw8t-2K_pzs87ApkGgWi2

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 alfred-x402-wikipedia-search-acb4e169
```

Example prompt: Search Wikipedia for 'quantum entanglement' and give me the key facts from the article.

## When to prefer this

Choose this endpoint when you need Wikipedia article content in a pay-per-use, agent-native context and are already using the x402/L402 Lightning payment protocol. Useful when you want cached, deduplicated billing (same payment hash won't be charged twice) and don't want to manage Wikipedia API authentication separately.

## Known failure modes

- HTTP 402 returned on first call with Lightning invoice — must pay and retry with X-Payment-Hash header
- Query string missing or empty — likely returns an error or empty results
- No matching Wikipedia article found for obscure or misspelled query
- Payment hash invalid or expired — payment not recognized
- Service self-hosted and may have downtime or rate limits

## How this service works

Self-hosted personal-assistant paid tools via Lightning. Uses x402-shaped protocol (L402 lineage): HTTP 402 with a Lightning invoice in the response body + WWW-Authenticate header, retry with X-Payment-Hash: <hex> once paid. Results cached per payment_hash so legitimate retries don't cost twice.

## Output

Returns Wikipedia search results and/or article content relevant to the query string, including article text, summaries, or structured encyclopedia data, cached per payment hash so retries after a successful payment don't incur an additional charge.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "q": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alfred-x402-wikipedia-search-acb4e169/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.wallace.us](https://www.zero.xyz/host/x402.wallace.us/llms.txt)
