> ## Content Index
> Fetch the complete content index at: https://teal.is/llms.txt
> Use this file to discover other available public pages before exploring further.

# wikitool
- URL: https://teal.is/wikitool/
- Published: 2026-01-16T09:19:53.000Z
- Updated: 2026-08-21T10:50:39.000Z
- Author: Teal Starsong
- Tags: #Import 2026-10-06 11:58

A command-line tool for fetching Wikipedia content via the REST API. For scripts, terminals, and AI agents — without making Wikipedia render the whole UI just to extract some text.

```bash
wikitool Earth

```

Wikitext source by default. `--html` for rendered output, `--output json` for parsing.

Takes URLs directly:

```bash
wikitool https://de.wikipedia.org/wiki/Erde

```

Extracts language and title automatically.

## Search

Wikipedia uses CirrusSearch (Elasticsearch). wikitool exposes that:

```bash
wikitool search "intitle:einstein"
wikitool search "physics -quantum"
wikitool search '"theory of relativity"'

```

Phrase matching, exclusions, category filters, all 300+ language Wikipedias.

## The Skill

There's a [skill file](https://github.com/teal-bauer/wikitool-skill?ref=teal.is) that teaches Claude Code how to use wikitool — API access that's compliant with Wikipedia's guidelines, instead of web-fetching rendered pages.

## Installation

Prebuilt binaries on the [releases page](https://github.com/teal-bauer/wikitool/releases?ref=teal.is), or:

```bash
go install github.com/teal-bauer/wikitool@latest

```

Skill goes in `.claude/skills/`.

---

[github.com/teal-bauer/wikitool](https://github.com/teal-bauer/wikitool?ref=teal.is)