Haystack components for Webcite, one evidence suite for AI apps and agents: document parsing and OCR to Markdown, claim verification with verdicts, citations bound to source passages, and source search.
| Component | Import | What it does | Credits |
|---|---|---|---|
WebciteDocumentConverter |
haystack_integrations.components.converters.webcite |
PDFs, scans, images, spreadsheets and office files (paths, ByteStreams or https:// URLs) to Markdown Documents |
Per page, at cost; upload is free |
WebciteWebSearch |
haystack_integrations.components.websearch.webcite |
Sources for a query as Documents (passage as content; URL, title, stance in meta) and links |
2 per search |
WebciteClaimVerifier |
haystack_integrations.components.verifiers.webcite |
A verdict per claim, with the citations it rests on as Documents |
4 per claim |
Prices are on webcite.co/pricing. The Free plan includes 100 credits, renewing every 30 days while credits remain.
pip install webcite-haystack
export WEBCITE_API_KEY=... # create one at https://webcite.co/api-keysPython 3.10 or newer, Haystack 2.x. The key is read through a Haystack Secret
(Secret.from_env_var("WEBCITE_API_KEY") by default), so pipelines serialize without it.
from haystack_integrations.components.converters.webcite import WebciteDocumentConverter
converter = WebciteDocumentConverter() # mode="lite" for the faster, cheaper read
docs = converter.run(sources=["https://www.irs.gov/pub/irs-pdf/fw9.pdf"])["documents"]
print(docs[0].meta)
print(docs[0].content.splitlines()[0])Output for page 1 of the form, from the response recorded from the API (webcite.co/samples/doc-irs-w9.json):
{'source': 'https://www.irs.gov/pub/irs-pdf/fw9.pdf', 'state': 'complete', 'pages': 1, 'credits': 0.4966}
Form **W-9**
Check meta["state"]: anything other than complete comes with meta["reason"] naming what was
not read. The request stays open until every page is read; there is no job to poll.
from haystack_integrations.components.verifiers.webcite import WebciteClaimVerifier
verifier = WebciteClaimVerifier(max_citations=2)
out = verifier.run(claims=["The Great Wall of China is visible from the Moon with the naked eye."])
print(out["verdicts"][0]["result"], out["verdicts"][0]["credits"])
for doc in out["documents"]:
print(doc.meta["stance"], doc.meta["url"])Output, from the response recorded from the API on 24 November 2026 (webcite.co/samples/claim-great-wall.json):
contradicted 4
contradicts https://www.nasa.gov/image-article/great-wall/
inconclusive https://www.britannica.com/question/Can-you-see-the-Great-Wall-of-China-from-space
Each document's content is the source passage the citation is bound to. Pass source_urls to
check claims against given pages instead of a web search. verdicts[i]["response"] keeps the full
API response.
from haystack_integrations.components.websearch.webcite import WebciteWebSearch
search = WebciteWebSearch(top_k=3)
result = search.run(query="Apple total net sales fiscal 2024")
print(result["links"])See examples/pipeline.py. All three components support to_dict and
from_dict, so pipelines round-trip through YAML.
The same capabilities are also available to any MCP client from the hosted server at
https://api.webcite.co/mcp (OAuth or API key).
make install # uv sync --all-groups
make check # ruff, mypy, pytest
make build # wheel and sdist in dist/Tests run against recorded API responses in tests/fixtures with sockets disabled, so no test
reaches the network or spends credits.
- Webcite API reference
- Webcite Python SDK
- Issues: https://github.com/strategyconnect/webcite-haystack/issues
- Support: [email protected]
MIT licensed.