# OnchainExpat Wiki Search API

> OnchainExpat Wiki Search API is a paid API for AI agents from x402.onchainexpat.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Searches Wikipedia and returns relevant article content or summaries for a given query

## Facts

- Endpoint: POST https://x402.onchainexpat.com/api/x402-tools/wiki/search
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onchainexpat-wiki-search-api-0d949add
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CFxBlmAqu2KMBtBoBUHLa

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 onchainexpat-wiki-search-api-0d949add -d '<json body>'
```

Example prompt: Search Wikipedia for 'quantum entanglement' and give me a summary of what it is.

## When to prefer this

Choose this endpoint when you need pay-per-use Wikipedia search without managing your own Wikipedia API integration, especially in x402-enabled micropayment workflows where per-call billing is preferred over subscription models.

## Known failure modes

- No results found for obscure or misspelled queries
- Payment failure if USDC balance is insufficient for $0.01 per call
- Query too vague returns unrelated articles
- Rate limiting or timeout if Wikipedia upstream is slow
- Empty response body if query parameter is missing

## How this service works

Pay-per-request AI, crypto, proxy, and utility APIs using x402 protocol

## Output

Returns structured JSON with Wikipedia search results including article titles, summaries, URLs, and relevant metadata for the queried topic.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "limit": {
   "type": "integer",
   "description": "Max results (default 10, max 50)"
  },
  "query": {
   "type": "string",
   "description": "Wikipedia search query. Alias: 'q'"
  },
  "language": {
   "type": "string",
   "description": "Wikipedia language code (default 'en')"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string"
  },
  "cached": {
   "type": "boolean"
  },
  "results": {
   "type": "array"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onchainexpat-wiki-search-api-0d949add/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.onchainexpat.com](https://www.zero.xyz/host/x402.onchainexpat.com/llms.txt)
