So I built a command-line tool for fetching Wikipedia articles and search results via the REST API.
wikitool Earth
wikitool "https://de.wikipedia.org/wiki/Erde"
wikitool search "intitle:einstein"
It parses Wikipedia URLs automatically (extracts language + title), supports all 300+ language editions, and exposes CirrusSearch query syntax for search.Output is wikitext by default, with `--html` and `--output json` options.
Single static Go binary, no dependencies.
Repo: https://github.com/teal-bauer/wikitool
There's also a skill file (https://github.com/teal-bauer/wikitool-skill) that teaches Claude Code how to use it.