wikivectors
Fresh English Wikipedia for AI apps. Ask in plain English and get the right paragraphs, each with its link and revision, updated within the hour. Also short cited answers, whole pages, infobox facts and a change feed.
Free key (1,000 searches a month): https://wikivectors.com/account · Docs: https://wikivectors.com/docs
pip install wikivectors
export WIKIVECTORS_KEY=wv_live_...
Search
from wikivectors import WikiVectors
wv = WikiVectors() # reads WIKIVECTORS_KEY
for p in wv.search("who won the 2026 FIFA World Cup", limit=3):
print(p["title"], p["permalink"])
print(p["text"])
Everything else
wv.answer("who won the 2026 FIFA World Cup") # short answer + sources, or answered=False
wv.pages(["Ada Lovelace", "Alan Turing"]) # whole pages
wv.facts("Ada Lovelace") # infobox as JSON: born, died, known for...
wv.identify("Michael Jordan", hint="professor, machine learning")
wv.similar("Ada Lovelace", limit=5) # pages most like this one
wv.titles(prefix="2025 in ")
wv.changes(pages=["Ada Lovelace"]) # recent edits; pass next_after back as after=
wv.watch(page="Ada Lovelace", callback_url="https://example.com/hook")
Let your app or AI get its own key
No key yet? Ask for one by email. The person gets a code and an Approve button; the key comes back once they click it.
from wikivectors import WikiVectors, request_key
key = request_key("ada@example.com", "My Notebook") # prints the code, waits up to 15 min
wv = WikiVectors(api_key=key)
Errors raise WikiVectorsError with .status, .code, .message and .request_id.
LangChain
pip install "wikivectors[langchain]"
from wikivectors.langchain import WikiVectorsRetriever
retriever = WikiVectorsRetriever(k=3)
for doc in retriever.invoke("who won the 2026 FIFA World Cup"):
print(doc.metadata["title"], doc.metadata["permalink"])
LlamaIndex
pip install "wikivectors[llamaindex]"
from wikivectors.llamaindex import WikiVectorsRetriever
for n in WikiVectorsRetriever(k=3).retrieve("who won the 2026 FIFA World Cup"):
print(n.node.metadata["title"], n.node.metadata["permalink"])
License
The client is MIT. Wikipedia text is CC BY-SA 4.0: show the attribution line, or at least the link, wherever you show the text.
Metadata
Release files for wikivectors 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wikivectors-0.3.0.tar.gz | 466.2 kB | Without provenance | Details for wikivectors-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wikivectors-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for wikivectors-0.3.0-py3-none-any.whl |
Total release size: 474.1 kB
Release files / wikivectors-0.3.0.tar.gz
| Download URL | wikivectors-0.3.0.tar.gz |
|---|---|
| Size | 466.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f3cd2d12aedd6de610dc963212a4494fc4ca5f3f4debfe1bc205a41d66c7868
|
|
BLAKE2b-256 checksum How to use checksums |
e36239491547c3d70913be9197f58f6ad6fd344f33ed76096151f401eaa4d976
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / wikivectors-0.3.0-py3-none-any.whl
| Download URL | wikivectors-0.3.0-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b299c1ed18b9c84f045469d659228f41c5158431b4b415fccd364ad9e281b15
|
|
BLAKE2b-256 checksum How to use checksums |
e647b7157fb510ee3f089f45d76d8fbffcaa892214bded3a319381937a0f529a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for wikivectors 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.