Settings

Theme

Show HN: Wikitool – CLI for fetching Wikipedia content

2 points by moeffju a month ago · 0 comments · 1 min read


I wanted Wikipedia access for scripts and AI agents without scraping rendered pages. Using the API is lighter on Wikipedia's servers and compliant with their guidelines.

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.

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection