# Wikipedia Article Search API

> Wikipedia Article Search API is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Searches Wikipedia articles and returns title, snippet, page ID, word count, and direct article URL across 300+ languages

## Facts

- Endpoint: GET https://api.x402node.dev/knowledge/wikipedia
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-4af66a66
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cbNjIN36AGObFdhrfflub

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 api-x402node-dev-4af66a66
```

Example prompt: Search Wikipedia for 'quantum entanglement' in English and give me the top 5 results with titles, snippets, and article links.

## When to prefer this

Use this endpoint when an agent needs to ground facts in encyclopedic sources, retrieve authoritative article summaries, or discover Wikipedia pages in a specific language. Prefer over general web search when you specifically need Wikipedia's structured, CC BY-SA licensed content with reliable article metadata like word count and page ID.

## Known failure modes

- No results found for obscure or misspelled queries
- Invalid language code returns error or defaults to English
- Limit parameter out of range may be ignored or return error
- Network timeout for high-latency Wikipedia API calls
- Query too vague returns unrelated articles

## How this service works

Search Wikipedia articles. Returns title, snippet (highlighted match), pageid, wordcount, and direct article URL. Use ?q=YOUR_QUERY plus optional and lang=en|de|es|zh|ja|fr and limit=10. Built for AI research agents and fact-checkers needing ground-truth article discovery (300+ languages, CC BY-SA).

## Output

Returns a list of Wikipedia articles matching the query, each with title, highlighted snippet showing the matched text, numeric page ID, word count, and a direct URL to the full Wikipedia article — in the requested language.

## 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 (required)"
      },
      "lang": {
       "type": "string",
       "description": "Lang (optional)"
      },
      "limit": {
       "type": "string",
       "description": "Max results (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-4af66a66/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
