$ man wikipedia
/wikipedia(1)
PRICE / CALL
$0.005
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
webprobeCATEGORY
ai
STATUS
● live
NAME
wikipedia — wikipedia api / encyclopedia lookup
SYNOPSIS
POST https://x402.org/v1/wikipedia
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Wikipedia API / encyclopedia lookup. Title, summary, image, sections, Wikidata id, optional 25k-char extract. 300+ languages.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| query | string | Search term or article title (e.g. 'Albert Einstein', 'mitochondria'). Resolved via MediaWiki search to the best-matching page. | required |
| language | string | Wiki language code (e.g. 'en', 'de', 'ja', 'es'). Default 'en'. | optional |
| full_text | boolean | If true, include a plain-text extract of the full article body (truncated to ~25k chars). Default false. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| title | string | Article title as it appears on Wikipedia. |
| canonical_url | string | Canonical Wikipedia URL for the article page. |
| page_id | string | Numeric MediaWiki page identifier as a string. |
| wikidata_item | string | Wikidata Q-identifier linked to the article (e.g. Q42). |
| language | string | Wiki language code the article was fetched from (e.g. en, de, ja). |
| summary | string | Short plain-text lead extract summarizing the article. |
| description | string | Short Wikidata-style descriptor (e.g. "American physicist"). |
| type | string | Page type reported by Wikipedia (standard, disambiguation, redirect, etc.). |
| thumbnail_url | string | URL of the small thumbnail image for the article, if one exists. |
| image_url | string | URL of the full-resolution lead image for the article, if one exists. |
| coordinates | object | Geographic coordinates for the subject with lat and lon fields, if applicable. |
| sections | array | Ordered list of article section headings with anchors and nesting level. |
| full_text | string | Plain-text article body, capped at 25k characters when the extract flag is set. |
| full_text_truncated | boolean | True when full_text was cut off at the 25k-character limit. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/wikipedia \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# install once claude mcp add x402 --command "npx x402-deployer-mcp" # then ask Claude Code: # "use the wikipedia tool to ..."
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- wikipediaknowledgelookupencyclopedia
- methods
- POST
- cluster
- webprobe
- price
- $0.005 USDC per call
ADJACENT — other endpoints in webprobe
| endpoint | description | price |
|---|---|---|
| disposable-email-check | Disposable email detector / fake email filter / fraud signup defense. | $0.005 |
| domain-availability | Domain availability / RDAP lookup / WHOIS replacement / domain registration checker / expiry date lookup. | $0.005 |
| github-stars-history | GitHub stars history / star growth chart / repo popularity over time / trending tracker. | $0.005 |
| link-extract | Link extractor / extract links from URL / list all anchor links / page outlink crawler / scrape outbound links / get hrefs from page. | $0.005 |
| mcp-tools-list | MCP tools-list / Model Context Protocol discovery / list MCP server tools / tools/list JSON-RPC / agent capability discovery / MCP catalo… | $0.005 |
| sitemap-fetch | Sitemap fetcher / sitemap.xml parser / sitemap index resolver / SEO sitemap reader / robots.txt sitemap discovery / website URL inventory. | $0.005 |
| wikipedia-lookup | Wikipedia API / encyclopedia lookup / structured article fetch. | $0.005 |
| homoglyph-check | Homoglyph attack detector / Unicode lookalike scanner. | $0.003 |
SEE ALSO