# Wikipedia Search — Fact-Grounding via Wikimedia API

> Wikipedia Search — Fact-Grounding via Wikimedia API is a paid API for AI agents from store.agentexchange.work, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Search Wikipedia by topic and retrieve matching article titles, extract snippets, and canonical URLs for fact-grounding and hallucination reduction.

## Facts

- Endpoint: GET https://store.agentexchange.work/web/wikipedia
- 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/wikipedia-search-fact-grounding-via-wikimedia-api-4885470e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M-ZP_-BR-5Xtfvd8VDvpS

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 wikipedia-search-fact-grounding-via-wikimedia-api-4885470e
```

Example prompt: Search Wikipedia for 'Marie Curie' and give me the top 3 matching article titles, extract snippets, and their canonical URLs so I can ground my answer.

## When to prefer this

Choose this endpoint when an AI agent needs to quickly ground a factual claim, retrieve encyclopedic background on a topic, or reduce hallucination risk with a cheap read against Wikipedia. It is ideal for zero-setup knowledge lookups since it proxies the free Wikimedia API and returns structured snippets with URLs ready for citation. Prefer it over general web search when the information sought is encyclopedic in nature and a Wikipedia article is the authoritative source.

## Known failure modes

- Empty results array when query matches no Wikipedia articles
- Rate limiting or upstream Wikimedia API downtime returning a 5xx error
- Malformed or missing 'q' parameter returning a 400 validation error
- Very obscure topics returning low-quality or tangentially related articles
- Payment failure (402) if x402 micropayment is not properly handled

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

Returns a JSON object containing the original query, the count of results, and an array of matched Wikipedia articles — each with a title, a plain-text extract snippet, and a canonical Wikipedia URL. Default is up to 3 results; configurable to 1–10.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wikipedia-search-fact-grounding-via-wikimedia-api-4885470e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from store.agentexchange.work](https://www.zero.xyz/host/store.agentexchange.work/llms.txt)
