OpenAPIllms.txtTempo MPP
Powered by Wikipedia ยท CC BY-SA 4.0
๐Ÿ’Ž
WikiGem
Wikipedia Knowledge API for AI Agents

WikiGem

WikiGem is a pay-per-call HTTP API that provides AI agents with programmatic access to Wikipedia's knowledge base โ€” over 60 million articles in more than 300 language editions. The service operates on the Machine Payments Protocol (MPP) via the Tempo blockchain, charging $0.001 USDC.e per API call.

Unlike traditional APIs, WikiGem requires no registration or API key. Agents pay atomically per request using Tempo micropayments. Unauthenticated requests receive an HTTP 402 Payment Required challenge containing payment instructions.

Contents
1Endpoints
2Usage
3Payment
4Discovery
5Language support

Endpoints

WikiGem exposes four endpoints, all accepting POST requests with a JSON body. Each call costs 0.001 USDC.e.

EndpointDescriptionRequired fields
/api/searchFull-text article searchquery
/api/summaryArticle summary + thumbnailtitle
/api/sectionExtract a named sectiontitle, section
/api/relatedDiscover related articlestitle

All endpoints additionally accept an optional lang field (ISO language code, default: "en") and return a Payment-Receipt header on success.

Usage

The service is compatible with the mppx client library and the tempo CLI:

# With Tempo CLI
tempo request -X POST https://wikigem.xyz/api/search \
--json '{"query":"black holes","lang":"en","limit":5}'
// With mppx client (TypeScript)
import
import { Mppx, tempo } from 'mppx/client'
Mppx.create({ methods: [tempo({ account })] })
const res = await fetch('https://wikigem.xyz/api/summary', {
method: 'POST',
body: JSON.stringify({ title: 'Albert Einstein' }),
})

Payment

WikiGem uses the Machine Payments Protocol on Tempo Mainnet (chain ID 4217). Payments are settled in USDC.e โ€” a bridged stablecoin native to the Tempo chain.

Price per call0.001 USDC.e (~$0.001)
TokenUSDC.e
Token address0x20C000000000000000000000b9537d11c60E8b50
NetworkTempo Mainnet (chain ID 4217)
Intentcharge (one-time, atomic)
Auth methodHTTP 402 challenge / www-authenticate

Discovery

Machine-readable service descriptions are available at the following URLs:

Language support

All endpoints accept a lang parameter corresponding to any Wikipedia language edition subdomain. Examples:

endefrruzhesjaptaritplnlfaukvikoand 280+ more

WikiGem is an independent service and is not affiliated with the Wikimedia Foundation.
Wikipedia content is licensed under CC BY-SA 4.0. Powered by Tempo MPP.