---
name: wikivectors
description: Look up facts in current English Wikipedia (updated within the hour) and cite them. Use when a task needs a fact you might not know or that may have changed since your training cutoff (this year's news, recent winners, office holders, release dates, deaths, sports results), a rare or exact fact (dates, numbers, names), a Wikipedia page's text or infobox, which page a name means, pages related to a topic, what changed on a page, or a source link to cite. Calls the WikiVectors API with curl and the WIKIVECTORS_KEY environment variable.
license: MIT
metadata:
  homepage: https://wikivectors.com
  docs: https://wikivectors.com/docs
---

# WikiVectors: current Wikipedia for agents

WikiVectors searches all of current English Wikipedia and returns short paragraphs,
each with its page link, revision id and license. The index follows Wikipedia edits
within the hour, so it knows things that happened after your training cutoff.

## When to use it

- The question is about anything recent, or anything that can change (who holds an
  office, latest results, newest version, is this person alive). Your memory may be old.
- A rare or exact fact where a wrong guess would matter: dates, numbers, spellings.
- The user wants a source: every result has a Wikipedia link to cite.
- Code needs Wikipedia data: page text, infobox facts, which page a name means.

Do not use it for things Wikipedia does not cover (private data, live prices, code docs).

## The key

Every call needs `Authorization: Bearer $WIKIVECTORS_KEY`. Just make the call; run
each curl as its own command. Your harness may ask the user to approve it the first time.

If it answers `missing_api_key` or `invalid_api_key`, you can get the user a free key
(1,000 searches a month, no card). Ask for their email, then:

```bash
curl -s https://wikivectors.com/v1/keys/agent -H "Content-Type: application/json" \
  -d '{"email": "their@email.com", "app": "Your agent name"}'
```

Tell them: "Check your email and approve code XXXX-XXXX" (the `code` it returned).
Then poll the `poll_url` it returned every 5 seconds with a plain `curl -s <poll_url>`
until `status` is `approved` (the reply holds `key`) or `denied`. It ends in 15 minutes.
Tell the user to save it with `export WIKIVECTORS_KEY=wv_live_...` (or in their shell
profile). Or they can get one at https://wikivectors.com/account.
Never print the key, write it into files you commit, or put it in a URL.

## 1. Search (start here)

```bash
curl -s https://wikivectors.com/v1/search \
  -H "Authorization: Bearer $WIKIVECTORS_KEY" -H "Content-Type: application/json" \
  -d '{"query": "who won the 2026 FIFA World Cup", "limit": 5}'
```

Ask in plain words, like you would ask a person. `limit` is 1-20; 5 is usually enough.
The answer is `{"results": [...]}`; each result has `title`, `section`, `text`, `url`,
`revision_id`, `exact_title_match`, `description` and `score`. Read the `text` of the
top results and answer from them. If they do not answer it, search again with other
words before you fall back to memory, and say so if you do.

## 2. Short cited answer

```bash
curl -s https://wikivectors.com/v1/answer \
  -H "Authorization: Bearer $WIKIVECTORS_KEY" -H "Content-Type: application/json" \
  -d '{"query": "When did the James Webb Space Telescope launch?"}'
```

Returns `answer` (shortest right answer, or null), `detail` (1-3 sentences with `[1]`
style citations), `answered` (false when Wikipedia does not say) and `sources`.
Add `"options": ["a", "b"]` (2-10) to make it pick one. Costs 5 searches; use
search when you can read the paragraphs yourself.

## 3. Pages you can name

```bash
curl -s https://wikivectors.com/v1/pages \
  -H "Authorization: Bearer $WIKIVECTORS_KEY" -H "Content-Type: application/json" \
  -d '{"titles": ["Ada Lovelace", "JFK"]}'
```

1-20 titles. Follows redirects ("JFK" gives "John F. Kennedy"). Each page has `found`,
`text` (the opening paragraph), `description`, `disambiguation` (true = a list of
namesakes: pick a more exact title) and `is_person`. Add `"full": true` (1-5 titles)
to read the whole page: `sections` plus `passages`, every paragraph in order with
its `section` and `passage_id`. Same price.

Infobox facts (born, died, office, founders, population) as data:

```bash
curl -s https://wikivectors.com/v1/pages/Sam_Altman/facts \
  -H "Authorization: Bearer $WIKIVECTORS_KEY"
```

`status` is ok, none (no infobox) or pending (HTTP 202: wait a few seconds, retry).

## 4. Which page does a name mean?

```bash
curl -s https://wikivectors.com/v1/identify \
  -H "Authorization: Bearer $WIKIVECTORS_KEY" -H "Content-Type: application/json" \
  -d '{"name": "Michael Jordan", "hint": "professor, machine learning", "kind": "person"}'
```

Use `match` only when `sure` is true; otherwise read `candidates` or send a better hint.

## 5. Pages like a page

```bash
curl -s https://wikivectors.com/v1/similar \
  -H "Authorization: Bearer $WIKIVECTORS_KEY" -H "Content-Type: application/json" \
  -d '{"title": "Ada Lovelace", "limit": 5}'
```

Gives the closest paragraph of each page most like it, closest first (related topics,
"more like this"). Send `{"passage_id": 123}` instead (a `passage_id` from a search
result) to find pages like one paragraph.

## 6. Find pages by title

```bash
curl -s -G https://wikivectors.com/v1/titles -H "Authorization: Bearer $WIKIVECTORS_KEY" \
  --data-urlencode 'prefix=2026 in ' --data-urlencode 'limit=25'
```

Lists pages whose title starts with `prefix`, or matches `pattern` where `*` is any text
(`List of * rivers`). Most-read first; `sort=newest` for newest edit first. Use it when
you don't know the exact title, then call `/v1/pages` or `/facts` with it.

## 7. What changed since

```bash
curl -s -G https://wikivectors.com/v1/changes -H "Authorization: Bearer $WIKIVECTORS_KEY" \
  --data-urlencode 'pages=Mount Everest|Ada Lovelace' --data-urlencode 'since=2026-11-20T00:00:00Z'
```

Edits, moves and deletes in the last 30 days, oldest first, with the paragraphs that
changed and a `diff_url`. Narrow it with `pages` (split by `|`), `prefix` or `pattern`.

## Citing

Wikipedia text is CC BY-SA 4.0. When you show facts from WikiVectors:

- Cite the page: `[Title](url)`. For an exact version, use the result's `permalink`
  or `https://en.wikipedia.org/w/index.php?oldid=<revision_id>`.
- Quote or closely follow the returned `text`; do not add facts it does not contain.
- If an app displays the text, show the `attribution` line (or title + link) with it.

## Errors

Errors look like `{"error": {"code", "message"}}`.

- `missing_api_key` / `invalid_api_key`: the key is not set or wrong (see "The key").
- `quota_exceeded`: free searches used up; more at https://wikivectors.com/account ($2 per 1,000).
- `rate_limited`: over 10 calls a second; wait a second and retry.
- `answer_unavailable`: answers are paused; use `/v1/search` instead.

## More

- Page watches (we POST to your URL when a page changes): https://wikivectors.com/docs/watches
- Full reference for agents: https://wikivectors.com/llms.txt
- OpenAPI: https://wikivectors.com/openapi.json
- MCP server (same tools, no curl): `claude mcp add --transport http wikivectors https://wikivectors.com/mcp --header "Authorization: Bearer $WIKIVECTORS_KEY"`
