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.
Endpoints
WikiGem exposes four endpoints, all accepting POST requests with a JSON body. Each call costs 0.001 USDC.e.
| Endpoint | Description | Required fields |
|---|---|---|
/api/search | Full-text article search | query |
/api/summary | Article summary + thumbnail | title |
/api/section | Extract a named section | title, section |
/api/related | Discover related articles | title |
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:
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 call | 0.001 USDC.e (~$0.001) |
| Token | USDC.e |
| Token address | 0x20C000000000000000000000b9537d11c60E8b50 |
| Network | Tempo Mainnet (chain ID 4217) |
| Intent | charge (one-time, atomic) |
| Auth method | HTTP 402 challenge / www-authenticate |
Discovery
Machine-readable service descriptions are available at the following URLs:
/api/openapi.jsonโ OpenAPI 3.1 specification withx-paymentextensions/llms.txtโ Plain-text context file for LLM agents
Language support
All endpoints accept a lang parameter corresponding to any Wikipedia language edition subdomain. Examples:
endefrruzhesjaptaritplnlfaukvikoand 280+ more