Wikipedia article summary API
Return a Wikipedia page summary (title, Wikidata id, description, extract, thumbnail, canonical URL) from the official Wikimedia REST API. Attribute CC BY-SA. Uses a descriptive User-Agent including brainiac.software. POST /api/v1/wikipedia/summary costs $0.004 USDC on Base via x402. HTTP 2xx with status complete or partial and real data is charged; status failed, empty payloads, and HTTP 4xx/5xx are not charged. Sources: Wikimedia REST API page summaries Wikimedia pageviews top articles Limits: Official extracts and pageviews only — HTML pages are not scraped. Identify the client with a descriptive User-Agent that includes brainiac.software.
Return a Wikipedia page summary (title, Wikidata id, description, extract, thumbnail, canonical URL) from the official Wikimedia REST API. Attribute CC BY-SA. Uses a descriptive User-Agent including brainiac.software. POST /api/v1/wikipedia/summary costs $0.004 USDC on Base via x402. HTTP 2xx with status complete or partial and real data is charged; status failed, empty payloads, and HTTP 4xx/5xx are not charged. Sources: Wikimedia REST API page summaries Wikimedia pageviews top articles Limits: Official extracts and pageviews only — HTML pages are not scraped. Identify the client with a descriptive User-Agent that includes brainiac.software.
/api/v1/wikipedia/summaryExample request
curl -i -X POST "https://www.brainiac.software/api/v1/wikipedia/summary" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"title": "Bitcoin"
}
JSONExample response
{
"status": "complete",
"title": "Bitcoin",
"displayTitle": "Bitcoin",
"wikidataId": "Q131723",
"description": "Decentralized cryptocurrency",
"extract": "Bitcoin is a decentralized digital currency that can be transferred on the peer-to-peer bitcoin network.",
"canonicalUrl": "https://en.wikipedia.org/wiki/Bitcoin",
"thumbnailUrl": "https://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Bitcoin.svg/320px-Bitcoin.svg.png",
"license": "CC BY-SA",
"language": "en",
"source": "Wikimedia REST API",
"missing_items": []
}An unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
Errors: HTTP 4xx/5xx are not charged. HTTP 2xx with status complete or partial and real data is charged; failed or empty results are not charged. Invalid cursor returns HTTP 400 (uncharged).
Limits: Official extracts and pageviews only — HTML pages are not scraped. Identify the client with a descriptive User-Agent that includes brainiac.software. Trending drops Main_Page and Special:* rows from the official ranking.
FAQ
- Do I need an API key? No. Pay the listed USDC amount with x402.
- What network? Base (eip155:8453), USDC.
- Is this an official determination? No. Results are for human review against the cited sources.
Related operations
- Wikipedia trending pages — $0.004 USDC
Related APIs
- Building Energy & Facilities Intelligence API
- Electricity Market & Grid Intelligence API
- Electrical Engineering & Installation Intelligence API
Wikipedia Summary Trending Pageviews API APIGroup docsHow it works