Skip to main content

langchain-agentreader

LangChain document loader for AgentReader: turn web pages, JavaScript-rendered pages, RSS/Atom feeds and PDF URLs into clean, compact Markdown for LLMs and RAG.

  • Works without an API key on the free tier (5 reads/day per IP).
  • For more, buy prepaid credits at https://agentreader.xyz/buy ($3 for 2,000 reads, $10 for 7,000) and set AGENTREADER_API_KEY.
  • Failed reads (bot checks, paywalls, upstream errors) return an error and are not charged.

Install

pip install langchain-agentreader

Usage

from langchain_agentreader import AgentReaderLoader

loader = AgentReaderLoader([
    "https://react.dev/learn",
    "https://arxiv.org/pdf/1706.03762",   # PDF URLs work too
])
docs = loader.load()
print(docs[0].metadata["title"])
print(docs[0].page_content[:500])

With a key (env var, recommended):

export AGENTREADER_API_KEY=ar_...

or AgentReaderLoader(urls, api_key="ar_...").

Options

Argument Values Notes
mode auto (default), article, links, full links returns a headline/link list for index pages
render auto (default), never, always always forces a headless browser
extract e.g. "title,author,date,price" Extracted values land in metadata["fields"]
continue_on_failure False (default) Log and skip failing URLs instead of raising

Metadata

Each Document has source (final URL after redirects), requested_url, and when available title, author, date, siteName, description, lang, contentType, pageType, wordCount, pages (PDFs), rendered_with_browser, fields.

Errors

AgentReaderError carries status, code and reason (for example 402 when the free tier is used up, 502 with bot_challenge when a site blocks automated reads).

MIT licensed.

Metadata

Release files for langchain-agentreader 0.1.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 langchain-agentreader 0.1.0
File Size Uploaded Provenance Actions
langchain_agentreader-0.1.0.tar.gz 6.3 kB With provenance Details for langchain_agentreader-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-agentreader 0.1.0
File Interpreter ABI Platform Actions
langchain_agentreader-0.1.0-py3-none-any.whl Python 3 none any Details for langchain_agentreader-0.1.0-py3-none-any.whl

Total release size: 13.0 kB

Release files / langchain_agentreader-0.1.0.tar.gz

Download URL langchain_agentreader-0.1.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ca6d7c057957d39aa1cb8ef9e5da5c4d0e8a7db2164b47fa964e35b4ea660fd6
BLAKE2b-256 checksum
How to use checksums
d871a8006a5e4d34d5de057a1409bdf6a2ded56a2495acbbef5067c302a28b26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / langchain_agentreader-0.1.0-py3-none-any.whl

Download URL langchain_agentreader-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1fbc623859c8fb475c7785392ca12da417c8965917dad8026e4990bc44f06e2
BLAKE2b-256 checksum
How to use checksums
fc003ca1b53b050cc2d4d751bd0639f90ef09608ebefedc36ad5f27509fc6780
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for langchain-agentreader 0.1.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for langchain_agentreader-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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