Wikipedia (free) via Spawnpay

Free MediaWiki API behind Spawnpay routing — drop-in for research agents that need encyclopedic context.

FREE UPSTREAM $0.001 / 2xx No reselling — your upstream relationship stays exactly as it is.

Why route through Spawnpay

RAG agents grounding answers in Wikipedia. Free fallback when Brave/Tavily search budgets run out.

Endpoint

Method
GET
Upstream path
/w/api.php
Upstream auth
None
Auth note
No upstream key required. Edge-served — works without VPS or signup.
Routing fee
$0.001 USDC per upstream 2xx (4xx is free)
Provider docs

curl

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"
  }
}'

Node (spawnpay-paywall)

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

What you get back

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.

▶ Try Wikipedia (free) live → 60-sec quickstart All providers