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.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.2.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.2.0
File Size Uploaded Provenance Actions
wikivectors-0.2.0.tar.gz 465.9 kB Without provenance Details for wikivectors-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 473.6 kB

Release files / wikivectors-0.2.0.tar.gz

Download URL wikivectors-0.2.0.tar.gz
Size 465.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f15c2d98126de1095f9b305ed3a922d9f85a06b3b3aabddb35dcc2103350d84d
BLAKE2b-256 checksum
How to use checksums
7b4c82a18795ba0765444063318789c8e079933e5f43300ef6316d0c54ee4ed1
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.2.0-py3-none-any.whl

Download URL wikivectors-0.2.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34fa7d30797a98f985ebc15baebd1d3fe5e6cee4e3c63b48b51c21d5795211ae
BLAKE2b-256 checksum
How to use checksums
0383432cf059f97d6c235f03fae0c71db39006192fbf721af634377a2d3a2efe
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.2.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