# Wikipedia Article Lookup API

> Wikipedia Article Lookup API is a paid API for AI agents from api.agent-data.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-14).

Fetches the best-matching Wikipedia article for a query in any language, returning title, description, summary, URL, thumbnail, and optionally the full plain-text article.

## Facts

- Endpoint: GET https://api.agent-data.workers.dev/api/v1/wikipedia?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wikipedia-article-lookup-api-3003f9e3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_asS4E02U_9u7XOaV_Crv2

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-article-lookup-api-3003f9e3
```

Example prompt: Can you look up the Wikipedia article on Ethereum and give me the title, summary, and URL?

## When to prefer this

Use this endpoint when you need reliable, structured encyclopedic information about a named entity, concept, person, or place — especially when you want a trusted source with a canonical URL and clean plain-text summary rather than web search snippets. It is particularly valuable for enriching agent context with background knowledge, verifying entity descriptions, or seeding an answer with factual grounding. Prefer it over web search when you specifically want Wikipedia's authoritative, structured summary rather than broader web results.

## Known failure modes

- No matching article found for the query — returns empty or null result
- Ambiguous query returns an unexpected article (e.g. disambiguation pages)
- Requested language edition has no article for the topic
- Full-text flag on a very long article may return large payloads
- Network timeout if Wikipedia's API is slow
- Incorrect language code parameter returns default-language result or error

## How this service works

Best matching Wikipedia article in any language: title, description, summary, URL, thumbnail, optionally the full plain-text article.

## Output

Returns a JSON object with the best-matching Wikipedia article's title, short description, multi-sentence summary, canonical Wikipedia URL, thumbnail image URL, and optionally the full plain-text content of the article.

## 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"
      },
      "full": {
       "type": "boolean"
      },
      "lang": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://en.wikipedia.org/wiki/Ethereum",
  "title": "Ethereum",
  "summary": "Ethereum is a decentralized blockchain with smart contract functionality...",
  "description": "Blockchain-based computing platform"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wikipedia-article-lookup-api-3003f9e3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agent-data.workers.dev](https://www.zero.xyz/host/api.agent-data.workers.dev/llms.txt)
