Free MediaWiki API behind Spawnpay routing — drop-in for research agents that need encyclopedic context.
RAG agents grounding answers in Wikipedia. Free fallback when Brave/Tavily search budgets run out.
GET/w/api.php$0.001 USDC per upstream 2xx (4xx is free)curl -X POST https://spawnpay.ai/api/proxy \
-H 'Authorization: Bearer spk_live_…' \
-H 'Content-Type: application/json' \
-d '{
"provider": "wikipedia",
"path": "/w/api.php",
"method": "GET",
"query": {
"action": "query",
"format": "json",
"list": "search",
"srsearch": "Spawnpay"
}
}'
import { proxy } from 'spawnpay-paywall';
const out = await proxy({
"provider": "wikipedia",
"path": "/w/api.php",
"method": "GET",
"query": {
"action": "query",
"format": "json",
"list": "search",
"srsearch": "Spawnpay"
}
});
console.log(out.status, out.body);
console.log('charged', out.charged); // txHash + $0.001 USDC receipt
The full upstream JSON body, the upstream status code, the upstream response headers, plus a charged field with the USDC receipt (tx hash) when the call succeeded.