Skip to main content

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_...
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.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wikivectors 0.4.0
File Size Uploaded Provenance Actions
wikivectors-0.4.0.tar.gz 466.3 kB Without provenance Details for wikivectors-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wikivectors 0.4.0
File Interpreter ABI Platform Actions
wikivectors-0.4.0-py3-none-any.whl Python 3 none any Details for wikivectors-0.4.0-py3-none-any.whl

Total release size: 474.3 kB

Release files / wikivectors-0.4.0.tar.gz

Download URL wikivectors-0.4.0.tar.gz
Size 466.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0283908e981b13ccc66b4cbeae135cc5bce69089c05199e4123f9a47bd36e7f0
BLAKE2b-256 checksum
How to use checksums
9d6c70b94220d1d457ae48d867be8312803b6697bd54ee2863b72fb1a7bcc053
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.4.0-py3-none-any.whl

Download URL wikivectors-0.4.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36f647debc84f8a4ca10f46070fc1b243dd8cdada808d8a909b2936b788c34ca
BLAKE2b-256 checksum
How to use checksums
b49dfee6765ec605019b7f608442b7d66ab0dcb4232da1a37417d452172f2e03
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.4.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page