Tools · search
Wikipedia article summary (21 languages)
The summary of the Wikipedia article a title or a few words name, in 21 languages: title, short description, the lead section as plain text, link, last edit, image, coordinates, Wikidata id. Only an article whose title fits the query is returned; otherwise 404 with the titles found. Send {} for the published example. An answer it cannot produce is not charged. Pay-per-call via x402.
$0.0018 per call, paid in USDC on Base or Solana with x402 — no account, no API key. POST https://fiatdock.com/v1/wiki/summary (or GET with the same fields as query parameters) · MCP tool wiki_summary. An answer the tool cannot produce is refused with 4xx/5xx and is not charged.
Inputs
| Field | Type | Description | Example |
|---|---|---|---|
query | string | An article title or a few words naming the subject (required; an empty body answers the published example) | "Riyadh" |
lang | one of en, ar, de, fr, es, it, ja, zh, ru, pt, nl, pl, tr, fa, he, ko, id, uk, sv, vi, hi | Wikipedia language edition (default en): en, ar, de, fr, es, it, ja, zh, ru, pt, nl, pl, tr, fa, he, ko, id, uk, sv, vi, hi | "en" |
Example
Request body
{"query":"Riyadh","lang":"en"}
Answer (the published example)
{"query":"Riyadh","lang":"en","title":"Riyadh","description":"Capital and largest city of Saudi Arabia","extract":"Riyadh is the capital and largest city of Saudi Arabia. It is also the capital of the Riyadh Province and the centre of the Riyadh Governorate. Located on the eastern bank of Wadi Hanifa, the current form of the metropolis largely emerged in the 1950s as an expansion of the 18th-century walled town, following the dismantling of its defensive fortifications.","type":"standard","url":"https://en.wikipedia.org/wiki/Riyadh","lastModified":"2026-10-04T19:10:02Z","thumbnail":"https://thumb.wikimedia.org/wikipedia/commons/thumb/2/20/Riyadh_Skyline.jpg/330px-Riyadh_Skyline.jpg","coordinates":{"lat":24.63333333,"lon":46.71666667},"wikidataId":"Q3692","matchedBy":"exact title","matchedTitle":null,"otherMatches":["Riyadh Metro","Riyadh Air","Riyadh International Book Fair","Riyadh Season"],"license":"CC BY-SA 4.0","attribution":"From Wikipedia, the free encyclopedia — https://en.wikipedia.org/wiki/Riyadh","source":"Wikipedia (en.wikipedia.org) — Wikimedia REST API: title/full-text search + page summary","asOf":"2026-10-08T16:30:00.000Z","note":"The text is Wikipedia contributors', under CC BY-SA 4.0: keep the attribution and link beside any reuse."}
Call it
curl
# 1) ask: an unpaid call answers 402 with the exact price (free)
curl -i -X POST https://fiatdock.com/v1/wiki/summary -H 'content-type: application/json' -d '{"query":"Riyadh","lang":"en"}'
# 2) pay: any x402 client signs that 402 and resends — see Node or Python below
Node
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";
const pay = wrapFetchWithPaymentFromConfig(fetch, {
schemes: [{ network: "eip155:*", client: new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_PRIVATE_KEY)) }],
});
const r = await pay("https://fiatdock.com/v1/wiki/summary", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"query":"Riyadh","lang":"en"}),
});
console.log(r.status, await r.json());
Python
# pip install "x402[httpx,evm]"
import asyncio, json, os
from eth_account import Account
from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm.exact import register_exact_evm_client
async def main():
client = register_exact_evm_client(x402Client(), Account.from_key(os.environ["AGENT_PRIVATE_KEY"]))
async with x402HttpxClient(client) as http:
r = await http.post("https://fiatdock.com/v1/wiki/summary", json=json.loads("{\"query\":\"Riyadh\",\"lang\":\"en\"}"))
print(r.status_code, r.json())
asyncio.run(main())
MCP (Claude, Cursor, any MCP client)
{"mcpServers":{"fiatdock":{"command":"npx","args":["-y","fiatdock-mcp"],"env":{"AGENT_PRIVATE_KEY":"0x<your agent wallet key>"}}}}
// then call the tool "wiki_summary" — the package pays each call from that wallet
The wallet needs USDC on Base. Prefer no install? The remote server https://fiatdock.com/mcp answers the 402 as tool output for an agent that signs its own payments.
Related tools
Machine-readable: OpenAPI · tools.json · llms.txt · /.well-known/x402