# Wikipedia Article Lookup

> Wikipedia Article Lookup is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Fetches Wikipedia article data including title, summary, image, sections, Wikidata ID, and optional full extract for a given topic, in 300+ languages.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/wikipedia
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-bfba80c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mzu21pegJxnal5niBayKx

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 x402-deployer-x402-deployer-workers-dev-bfba80c6 -d '<json body>'
```

Example prompt: Can you pull up the Wikipedia article on the French Revolution — give me the summary, main sections, the Wikidata ID, and include the full extract (up to 25,000 characters)?

## When to prefer this

Use this endpoint when an agent needs structured, encyclopedic reference information about a topic — including a summary, sections, image, and Wikidata linkage — especially when multilingual support or a long-form extract is needed. Prefer over web scraping or general search when clean, structured Wikipedia data is the goal.

## Known failure modes

- Article not found for the given title — returns 404 or empty result
- Disambiguation page returned when title matches multiple articles
- Language code unsupported or article not available in requested language
- Network timeout or upstream Wikipedia API unavailability
- Malformed request body missing required title field

## How this service works

Wikipedia API / encyclopedia lookup. Title, summary, image, sections, Wikidata id, optional 25k-char extract. 300+ languages.

## Output

Returns the article title, a plain-text summary, a featured image URL, a list of sections, the Wikidata entity ID, and optionally up to 25,000 characters of the full article extract. Supports 300+ language editions.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "description": "Search term or article title (e.g. 'Albert Einstein', 'mitochondria'). Resolved via MediaWiki search to the best-matching page."
      },
      "language": {
       "type": "string",
       "description": "Wiki language code (e.g. 'en', 'de', 'ja', 'es'). Default 'en'."
      },
      "full_text": {
       "type": "boolean",
       "description": "If true, include a plain-text extract of the full article body (truncated to ~25k chars). Default false."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "type": {
       "type": "string"
      },
      "title": {
       "type": "string"
      },
      "page_id": {
       "type": "string"
      },
      "summary": {
       "type": "string"
      },
      "language": {
       "type": "string"
      },
      "sections": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "level": {
          "type": "integer"
         },
         "title": {
          "type": "string"
         },
         "anchor": {
          "type": "string"
         }
        }
       }
      },
      "full_text": {
       "type": "null"
      },
      "image_url": {
       "type": "string"
      },
      "coordinates": {
       "type": "null"
      },
      "description": {
       "type": "string"
      },
      "canonical_url": {
       "type": "string"
      },
      "thumbnail_url": {
       "type": "string"
      },
      "wikidata_item": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-bfba80c6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
