LangChain Proxy Setup for Web Loaders That Load Junk
LangChain proxy setup for WebBaseLoader, PlaywrightURLLoader and AsyncChromiumLoader: why async loaders skip the proxy, and how to gate pages before embedding.

A langchain proxy problem rarely announces itself. The loader returns a list of Document objects, nothing raises, and the vector store fills with chunks like Access DeniedAccess Denied. Reference #18., empty strings, or Error: Page.goto: net::ERR_NAME_NOT_RESOLVED. This post shows where each LangChain web loader actually reads its proxy setting (some ignore the one you set), how to route the JavaScript-heavy pages through the SparkProxy Scraping API instead, and how to stop bad pages before they become embeddings. Every behaviour below was reproduced on langchain-community 0.4.2 with a local test proxy on 31 October 2026.
What a bad load looks like
LangChain's web loaders are built to keep going. Most of them turn a failure into content instead of an exception, so the first sign of trouble is usually a strange answer from your RAG chain rather than a stack trace. These are the shapes we saw while testing, each reproduced on purpose against a local test server (the "Reference #18" text is our test page, standing in for a real CDN block page):
| What `page_content` contains | Which loader | What actually happened |
|---|---|---|
| `Access DeniedAccess Denied. Reference #18.` | WebBaseLoader (`raise_for_status=False`, the default) | Target answered 403; the block page was parsed as the document |
| `""` (empty string) | WebBaseLoader async with `continue_on_failure=True` | Fetch failed; the loader logged a warning and returned an empty page |
| `Error: Page.goto: net::ERR_NAME_NOT_RESOLVED at ...` | AsyncChromiumLoader | Navigation failed; the exception text became the document |
| A few hundred characters of nav and footer | Any HTTP loader on a client-rendered site | The HTML shell loaded; the content needs JavaScript |
| Fewer documents than URLs | PlaywrightURLLoader (`continue_on_failure=True`, the default) | Failed URLs are logged and dropped, not yielded |
Notice that the run-together Access DeniedAccess Denied is itself a clue: soup.get_text() with no separator glues the onto the body. Pass bs_get_text_kwargs={"separator": "\n", "strip": True} and your documents become readable, which also makes block pages easier to spot by eye.
Run this after any load before you trust it:
from collections import Counter
def summarize(docs, urls):
"""Print the signals that show a silent web-loader failure."""
print(f"{len(docs)} documents for {len(urls)} URLs")
for doc in docs:
text = doc.page_content
flag = ""
if not text.strip():
flag = "EMPTY"
elif text.startswith("Error: "):
flag = "LOADER-ERROR"
elif len(text) < 500:
flag = "SHORT"
print(f"{len(text):>7} {flag:<12} {doc.metadata.get('title', '')[:50]} {doc.metadata['source']}")
titles = Counter(d.metadata.get("title", "") for d in docs)
for title, n in titles.most_common(3):
if n > 1 and title:
print(f"repeated title x{n}: {title!r}")
A title that repeats across many unrelated URLs ("Just a moment...", "Access Denied", "Attention Required") is the fastest tell that you indexed a challenge page several times over.
Diagnosis order, cheapest check first
Work down this list. Each step costs less than the one after it, and the first three need no proxy at all.
- Is the proxy being used at all? Several loaders silently skip the setting you passed. Check the loader-specific sections below before anything else; it's the most common cause we found.
- Do the credentials work? Test the proxy outside Python so LangChain isn't part of the question.
- What status did the target return? Turn on
raise_for_status=True(WebBaseLoader) orcheck_response_status=True(RecursiveUrlLoader) for one run. - Is the content rendered client-side? Compare
curloutput with what a browser shows. - Is it a bot challenge rather than an IP block? Challenge pages often come back with 403 or 503 and a known title.
The credential check, using SparkProxy's gateway on the Random Rotation port:
curl -s -o /dev/null -w "%{http_code}\n" \
-x "http://$SPARK_USER:$SPARK_PASS@gateway.sparkproxy.io:11000" \
https://www.sparkproxy.io/
A 200 means the proxy path is fine and the problem is inside your loader configuration. A 407 means the credentials are wrong or your server IP isn't on the whitelist.
What a proxy can and cannot fix:
| Cause | Typical signal | Does a proxy fix it? |
|---|---|---|
| Loader not sending traffic through the proxy | Same failures with and without proxy settings | No. Fix the configuration first |
| Target blocks your cloud or office IP range | 403 / 429 from the target, works from home | Yes |
| Geo-restricted or geo-varied content | Wrong language, "not available in your region" | Yes, with country targeting |
| Content rendered by JavaScript | 200 with a near-empty body | No. Needs a browser or `render_js` |
| JavaScript challenge or fingerprint check | "Just a moment..." titles, 403/503 | Rarely on its own. Needs a real browser or the Scraping API |
| Login wall or paywall | Login form text in every document | No |
| Default `DefaultLangchainUserAgent` header rejected | 403 that disappears with a browser UA | No. Set a real user agent |
That last row deserves its own note. If USER_AGENT isn't set, langchain_community logs USER_AGENT environment variable not set, consider setting it to identify your requests. and sends the literal string DefaultLangchainUserAgent. WebBaseLoader builds its default headers when the module is imported, so setting os.environ["USER_AGENT"] after the import has no effect on it; we confirmed the header still read DefaultLangchainUserAgent. Set the variable in the shell, or before the first langchain_community import. AsyncChromiumLoader reads it at construction time instead, so it does pick up a late change.
Scraping at scale? Skip the blocks.
Fast, unblockable datacentre proxies with unlimited bandwidth.
Versions tested, and the langchain-community sunset
Every loader in this post lives in langchain-community, and that package has stopped moving. The repository README now says "langchain-community has been sunset", pointing to issue #674 (opened 22 May 2026), which states the sunset "will take effect immediately" and that the package had accepted no new integrations or features for over a year. The last release on PyPI is 0.4.2, uploaded 22 May 2026; the last commit, "sunset package (#679)", landed on 19 June 2026, and GitHub lists the repository as archived. Importing it now prints a DeprecationWarning that reads in part: "langchain-community is being sunset and is no longer actively maintained."
What that means in practice: the proxy quirks below will not be fixed upstream. You either work around them as shown, or copy the loader into your own code, which the sunset issue explicitly suggests is the expected path now.
Tested stack, 31 October 2026:
| Package | Version | Released |
|---|---|---|
| langchain-community | 0.4.2 | 22 May 2026 (final) |
| langchain-core | 1.7.3 | 29 Oct 2026 |
| aiohttp | 3.14.5 | 11 Oct 2026 |
| requests | 2.34.2 | current on PyPI |
| playwright (Python) | 1.64.1 | 22 Oct 2026 |
All tests ran on Python 3.14.2 on Windows Server 2022, against a local HTTP proxy that logged every request, so "went through the proxy" below means the proxy log recorded the hit.
WebBaseLoader: proxies, requests_kwargs and the env-var trap
WebBaseLoader has two separate HTTP stacks. load() and lazy_load() use a requests.Session. alazy_load(), the deprecated aload(), scrape_all() and fetch_all() use aiohttp. The proxy settings behave differently on each, and the obvious one is the least reliable.
The constructor's proxies= argument is copied into session.proxies. The requests documentation warns that session-level proxies "will be overwritten by environmental proxies". We tested it: with HTTP_PROXY pointing at one local proxy and proxies= pointing at another, the request went to the environment one. On a laptop with a corporate proxy variable set, or in a container that inherits HTTPS_PROXY, proxies= is silently ignored.
Per-request arguments win over the environment, and requests_kwargs is passed straight into every session.get() call. So for the synchronous path, put the proxy there:
import os
os.environ.setdefault("USER_AGENT", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0 Safari/537.36")
from langchain_community.document_loaders import WebBaseLoader
PROXY = "http://{}:{}@gateway.sparkproxy.io:11000".format(
os.environ["SPARK_USER"], os.environ["SPARK_PASS"]
)
loader = WebBaseLoader(
web_paths=[
"https://www.sparkproxy.io/docs/scraping-api/",
"https://www.sparkproxy.io/blog",
],
requests_kwargs={
"proxies": {"http": PROXY, "https": PROXY},
"timeout": 30,
},
raise_for_status=True,
bs_get_text_kwargs={"separator": "\n", "strip": True},
)
docs = loader.load()
raise_for_status=True turns a 403 into requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: ... instead of a document. That is what you want during setup. In a long batch you may prefer to catch it per URL, which the pipeline section shows.
Two errors you'll meet here, verbatim from our runs. A wrong password or a non-whitelisted IP on an HTTPS target:
requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.sparkproxy.io', port=443): Max retries exceeded with url: / (Caused by ProxyError('Unable to connect to proxy', OSError('Tunnel connection failed: 407 Proxy Authentication Required')))
And a proxy host that refuses the connection shows ProxyError('Unable to connect to proxy', NewConnectionError(...Failed to establish a new connection...)) instead. The first is an auth problem; the second is a host, port or firewall problem.
For SOCKS5 on port 13000, requests needs pip install "requests[socks]". Use the socks5h:// scheme if you want DNS resolved on the proxy side, which the requests docs describe as the difference between socks5 and socks5h. aiohttp has no built-in SOCKS support in its proxy docs, which is one more reason to stay on the HTTP port for LangChain work.
The async path: alazy_load, aiohttp and trust_env
This is where most "my proxy works in the notebook but not in the service" reports come from. The async methods open a fresh aiohttp.ClientSession(trust_env=self.trust_env) for every URL and pass requests_kwargs into session.get(). They never read session.proxies. In our tests:
| Setup | Sync `load()` | Async `alazy_load()` |
|---|---|---|
| `proxies={...}` | Proxied (unless an env var overrides it) | **Direct.** Proxy ignored |
| `requests_kwargs={"proxies": {...}}` | Proxied, beats env vars | `TypeError: ClientSession._request() got an unexpected keyword argument 'proxies'` |
| `requests_kwargs={"proxy": url}` | `TypeError: Session.request() got an unexpected keyword argument 'proxy'` | Proxied |
| `HTTPS_PROXY` env var only | Proxied | **Direct.** `trust_env` defaults to `False` |
| Env var plus `trust_env=True` | Proxied | Proxied |
aiohttp's own documentation says it plainly: "Contrary to the requests library, it won't read environment variables by default." WebBaseLoader added a trust_env keyword to switch that on, but it defaults to False.
The direct-connection failure looks like a network problem, not a proxy problem, which is why it misleads people. The loader retries three times on connection errors, logging Error fetching , then aborts with Error fetching If you take that advice, you get the empty-string documents from the symptoms table.
Because requests_kwargs is shared by both stacks, one loader object can't hold a proxy key that suits both. Either export the proxy as an environment variable and pass trust_env=True (both paths then use it; the scope caveat is in the next section), or build the loader for the path you are going to call:
import os
from langchain_community.document_loaders import WebBaseLoader
PROXY = "http://{}:{}@gateway.sparkproxy.io:11000".format(
os.environ["SPARK_USER"], os.environ["SPARK_PASS"]
)
def make_web_loader(urls, *, use_async: bool, concurrency: int = 8) -> WebBaseLoader:
"""requests wants 'proxies' (a dict); aiohttp wants 'proxy' (a URL string)."""
if use_async:
kwargs = {"proxy": PROXY}
else:
kwargs = {"proxies": {"http": PROXY, "https": PROXY}, "timeout": 30}
return WebBaseLoader(
web_paths=urls,
requests_kwargs=kwargs,
requests_per_second=concurrency,
raise_for_status=True,
bs_get_text_kwargs={"separator": "\n", "strip": True},
show_progress=False,
)
async def load_async(urls):
loader = make_web_loader(urls, use_async=True)
return [doc async for doc in loader.alazy_load()]
Two details from the source matter for sizing. requests_per_second is misnamed: the code wraps it in an asyncio.Semaphore, so it is a concurrency cap, not a rate. And with a bad password the async path raises aiohttp.client_exceptions.ClientHttpProxyError: 407, message='Proxy Authentication Required', url=... where url is your full proxy URL, credentials included. Scrub that before it reaches shared logs.
The general requests-versus-aiohttp proxy mechanics, outside LangChain, are covered in using proxies with Python requests and aiohttp.
RecursiveUrlLoader and SitemapLoader
RecursiveUrlLoader has a proxies= argument and, on its default synchronous path, passes it per call to requests.get(..., proxies=self.proxies). That worked in our test and beat the environment, because it is per-request.
Set use_async=True and it changes completely. The async branch builds its own aiohttp.ClientSession with no trust_env and no proxy argument at all, so both proxies= and HTTPS_PROXY are ignored. With an unreachable target and a proxy configured, our async run returned an empty list with no exception, because continue_on_failure defaults to True. There is no flag to fix this in 0.4.2. Stay on the sync path, or subclass and override _async_get_child_links_recursive.
import os
from langchain_community.document_loaders import RecursiveUrlLoader
PROXY = "http://{}:{}@gateway.sparkproxy.io:11002".format(
os.environ["SPARK_USER"], os.environ["SPARK_PASS"]
)
loader = RecursiveUrlLoader(
"https://www.sparkproxy.io/docs/",
max_depth=2,
use_async=False, # the async branch ignores proxies entirely
proxies={"http": PROXY, "https": PROXY},
check_response_status=True, # skip 4xx/5xx pages instead of indexing them
timeout=30,
prevent_outside=True,
)
docs = loader.load()
This example uses port 11002, Sticky Sessions, on purpose: a recursive crawl of one site benefits from one exit holding for the length of the session window, since some sites set a cookie on the first page and challenge requests that arrive from a new IP without it. Also note check_response_status defaults to False, so without it every 404 and 403 page in the crawl becomes a document.
SitemapLoader is the awkward one. It subclasses WebBaseLoader, but it uses both HTTP stacks inside a single load() call: the sitemap XML comes through the requests path (_scrape), and the pages it lists come through scrape_all(), which is the aiohttp path. So no requests_kwargs value works. We tested each:
requests_kwargs={"proxies": ...}fetched the sitemap through the proxy, then failed on the pages with the'proxies'TypeError.requests_kwargs={"proxy": ...}failed on the sitemap with the'proxy'TypeError.HTTP_PROXYset, defaulttrust_env=False: sitemap proxied, pages direct.HTTP_PROXYset plustrust_env=True: sitemap and every page proxied.
Environment variables plus trust_env=True is the only configuration that routes the whole job without a subclass (it also needs pip install lxml):
import os
os.environ["HTTP_PROXY"] = os.environ["HTTPS_PROXY"] = "http://{}:{}@gateway.sparkproxy.io:11000".format(
os.environ["SPARK_USER"], os.environ["SPARK_PASS"]
)
os.environ["NO_PROXY"] = "localhost,127.0.0.1" # add your embedding and vector DB hosts here
from langchain_community.document_loaders.sitemap import SitemapLoader
loader = SitemapLoader(
"https://www.sparkproxy.io/sitemap.xml",
trust_env=True, # lets aiohttp read HTTP_PROXY / HTTPS_PROXY
requests_per_second=4, # a concurrency cap, despite the name
continue_on_failure=True,
show_progress=False,
)
docs = loader.load()
The catch with environment variables is scope. Everything in the process that honours them, including the HTTP client your embedding provider's SDK uses, now goes through the proxy too. List those hostnames in NO_PROXY so you aren't paying proxy threads for embedding calls.
PlaywrightURLLoader's proxy argument
PlaywrightURLLoader is the one web loader with a first-class browser proxy setting. Its proxy dict goes straight to chromium.launch(proxy=...), which matches Playwright's documented global proxy shape of server, username and password. Playwright's network docs note that credentials are for HTTP(S) proxies, so use port 11000 or 11002 here rather than the SOCKS5 port.
import os
from langchain_community.document_loaders import PlaywrightURLLoader
urls = [
"https://www.sparkproxy.io/pricing",
"https://www.sparkproxy.io/docs/scraping-api/",
]
loader = PlaywrightURLLoader(
urls=urls,
proxy={
"server": "http://gateway.sparkproxy.io:11000",
"username": os.environ["SPARK_USER"],
"password": os.environ["SPARK_PASS"],
},
remove_selectors=["header", "footer", "nav"],
wait_until="networkidle",
timeout=45000,
continue_on_failure=False, # default True drops failed URLs silently
)
docs = loader.load()
assert len(docs) == len(urls), "some URLs failed; check the log"
Three behaviours to know. The default evaluator parses HTML with unstructured, so pip install unstructured is required. All URLs share one browser and one context, so on the Sticky Sessions port the whole list goes out from one exit until the window rolls over. And with the default continue_on_failure=True, a failed navigation is logged as Error fetching or processing and the URL is simply skipped, which is why the document count check matters more than any setting. Broader Playwright proxy patterns, such as per-context proxies, are in our guide to web scraping with Playwright and proxies.
AsyncChromiumLoader has no proxy option
AsyncChromiumLoader takes urls, headless and user_agent. That's all. It calls p.chromium.launch(headless=self.headless) with no proxy, and we confirmed it doesn't pick one up from the environment either: with HTTP_PROXY and HTTPS_PROXY both set, the browser connected directly and returned the navigation error as the document text. (Our environment couldn't download Playwright's headless shell, so this test ran headed Chromium; the launch call is the same either way.)
The fix is a small subclass that keeps the loader's interface:
import asyncio
import os
from langchain_community.document_loaders import AsyncChromiumLoader
from langchain_community.document_transformers import Html2TextTransformer
class ProxiedChromiumLoader(AsyncChromiumLoader):
"""AsyncChromiumLoader with a Playwright proxy and a cap on parallel browsers."""
def __init__(self, urls, *, proxy, max_browsers=4, **kwargs):
super().__init__(urls, **kwargs)
self.proxy = proxy
self._sem = asyncio.Semaphore(max_browsers)
async def ascrape_playwright(self, url: str) -> str:
from playwright.async_api import async_playwright
async with self._sem, async_playwright() as p:
browser = await p.chromium.launch(headless=self.headless, proxy=self.proxy)
try:
page = await browser.new_page(user_agent=self.user_agent)
response = await page.goto(url, wait_until="networkidle", timeout=45000)
if response is None or response.status >= 400:
status = response.status if response else "no response"
raise RuntimeError(f"{url} returned {status}")
return await page.content()
finally:
await browser.close()
loader = ProxiedChromiumLoader(
["https://www.sparkproxy.io/blog"],
proxy={
"server": "http://gateway.sparkproxy.io:11000",
"username": os.environ["SPARK_USER"],
"password": os.environ["SPARK_PASS"],
},
)
html_docs = loader.load()
text_docs = Html2TextTransformer().transform_documents(html_docs)
Two changes beyond the proxy. The subclass raises instead of returning "Error: ..." as content, so failures surface. And the semaphore exists because the stock alazy_load() runs asyncio.gather over every URL at once, launching one Chromium process per URL. Hand it 300 URLs and you start 300 browsers. Note that load() (sync) goes through lazy_load(), which scrapes one URL at a time, so the cap only matters on the async path. With the proxy subclass, the same local test proxy logged the browser's requests and the document contained the proxied page.
Swapping in the Scraping API for JS-heavy pages
Running Chromium yourself is the expensive end of ingestion: memory per browser, challenge pages, and the subclass above to maintain on a sunset package. For the subset of URLs that need rendering or keep returning challenges, a custom loader that calls the SparkProxy Scraping API is simpler. The API renders the page, picks the exit, and can return Markdown directly, so you skip the HTML-to-text step.
Facts from the Scraping API docs, read 31 October 2026: base URL https://scrape.sparkproxy.io/api/v1, key in the X-API-Key header. render_js defaults to true and costs 5 credits; render_js=false is a plain fetch at 1 credit. country_code adds 5. format only converts content (html, md, mdx, json, screenshot, pdf). The envelope with job_id, status_code, duration_ms, credits_used and body comes from json_response=true, and body is base64, so decode it before checking anything. A 530 means the scrape failed (timeout, block or CAPTCHA) and credits are refunded.
import base64
import os
from typing import Iterator, Optional
import requests
from langchain_core.document_loaders import BaseLoader
from langchain_core.documents import Document
API = "https://scrape.sparkproxy.io/api/v1"
class SparkScrapeLoader(BaseLoader):
"""Load pages as Markdown through the SparkProxy Scraping API."""
def __init__(self, urls, *, render_js: bool = True,
country_code: Optional[str] = None, wait_for: Optional[str] = None):
self.urls = list(urls)
self.params = {
"render_js": str(render_js).lower(),
"format": "md",
"json_response": "true",
}
if country_code:
self.params["country_code"] = country_code
if wait_for and render_js:
self.params["wait_for"] = wait_for
self.http = requests.Session()
self.http.headers["X-API-Key"] = os.environ["SPARK_API_KEY"]
def lazy_load(self) -> Iterator[Document]:
for url in self.urls:
r = self.http.get(API, params={**self.params, "url": url}, timeout=200)
if r.status_code == 530:
print(f"skip {url}: scrape failed upstream, credits refunded")
continue
r.raise_for_status()
env = r.json()
text = base64.b64decode(env["body"]).decode("utf-8", errors="replace")
yield Document(
page_content=text,
metadata={
"source": url,
"status_code": env.get("status_code"),
"credits_used": env.get("credits_used"),
"job_id": env.get("job_id"),
"fetched_via": "sparkproxy-scraping-api",
},
)
The timeout=200 leaves room for the API's own retry ladder: its docs say the first navigation attempt times out at 90 seconds and up to 3 retries follow with longer limits. Keep extract_rules out of this loader; it replaces the response with an extracted object and shouldn't be combined with json_response. If your follow-on step pulls structured fields out of these pages with a model, the token arithmetic for that is worked through in LLM extraction vs CSS selectors.
We attempted one live call to verify the envelope while writing this, and the API endpoint returned an HTTP 521 at that moment, so the loader above follows the published docs rather than a captured response. Check one URL by hand before running a batch.
Gate content before it reaches embeddings
Whatever loader you use, put a check between loading and splitting. Embedding is the last cheap moment to catch a bad page; after that it sits in your index and gets retrieved as an answer. The gate below rejects the failure shapes from the first section and routes rejects to the Scraping API loader for a second attempt:
import hashlib
import re
BLOCK_TITLES = re.compile(
r"just a moment|access denied|attention required|are you a robot|captcha|403 forbidden",
re.IGNORECASE,
)
def gate(doc, *, min_chars: int = 800, seen: set) -> str:
"""Return 'ok' or a reason string. Run before splitting and embedding."""
text = doc.page_content.strip()
status = doc.metadata.get("status_code")
if not text:
return "empty"
if text.startswith("Error: "):
return "loader-error"
if status is not None and status >= 400:
return f"status-{status}"
if BLOCK_TITLES.search(doc.metadata.get("title", "")) or BLOCK_TITLES.search(text[:400]):
return "challenge-page"
if len(text) < min_chars:
return "too-short"
digest = hashlib.sha256(text.encode("utf-8")).hexdigest()
if digest in seen:
return "duplicate-body"
seen.add(digest)
return "ok"
def split_by_gate(docs):
seen, good, retry = set(), [], []
for doc in docs:
reason = gate(doc, seen=seen)
if reason == "ok":
good.append(doc)
else:
doc.metadata["gate_reason"] = reason
retry.append(doc)
return good, retry
Then the pipeline is three moves: load cheaply through the proxy, gate, and send only the rejects to SparkScrapeLoader(render_js=True). Gate the second pass too, and log whatever still fails instead of embedding it. Tune min_chars per site; a product page can be legitimately short, a docs page rarely is. The duplicate check catches the case where twenty URLs all returned the same interstitial with a 200 status. For corpus-scale deduplication and quality filtering beyond this ingestion gate, see proxies for AI training data. Our guide on how to detect when your scraper is blocked lists more marker strings worth adding to BLOCK_TITLES.
Store the raw loaded text with its hash and fetch time alongside the vectors. On the next scheduled refresh, re-embed only pages whose hash changed. Embedding calls usually cost more than the fetch, so this saves real money on a nightly job.
Rotation, country, concurrency and cost
Random Rotation or Sticky Sessions. For a list of independent URLs, use Random Rotation on port 11000: each connection can leave from a different IP, which spreads load across the pool. Use Sticky Sessions on port 11002 when the loader holds state across requests, as in a recursive crawl of one site or a PlaywrightURLLoader run with browser_session storage state. The trade-offs in more depth are in what a sticky session proxy is.
Country. If the content you need varies by region, target the exit country. The SparkProxy homepage shows the username pattern user-country-us for US exits; check your dashboard for the exact form for other countries. On the Scraping API, the equivalent is country_code at +5 credits per request.
Concurrency. SparkProxy plans are sold by concurrent threads with unlimited bandwidth, so the number that matters is how many connections your loaders hold open at once, not how many megabytes they pull. Prices from the SparkProxy homepage, read 31 October 2026, in US dollars excluding VAT/GST, billed every 30 days:
| Plan | Price | Threads | Whitelisted IPs |
|---|---|---|---|
| Starter | $75/mo | 100 | 5 |
| Core | $140/mo | 250 | 10 |
| Boost | $240/mo | 500 | 15 |
| Plus | $440/mo | 1000 | 25 |
Entry pricing is "Starting from $75/month"; 3, 6 and 12-month terms take 5%, 10% and 15% off, and there's a 24-hour free trial with no credit card. The pool is 1M+ IPs across 80+ countries, over HTTP, HTTPS or SOCKS5, with IP whitelist or user:pass auth.
Map that onto loaders. A WebBaseLoader async run with requests_per_second=8 holds about 8 connections. A browser page is different: it fetches scripts, styles, images and XHRs, often several at once, all through the same proxy, so four parallel Chromium pages can hold far more than four connections. Leave headroom under your thread count, and keep the max_browsers cap from the Chromium subclass low until you have measured what one page costs in connections.
Scraping API credits. The 1,000 free credits cover 200 rendered pages at 5 credits each, or 1,000 plain fetches with render_js=false. Batch mode (comma-separated URLs, render_js=false only) costs 1 credit for the whole batch, which suits a sitemap of static pages; per-plan credit pricing is broken down in Scraping API credit pricing explained. If the ingestion feeds an agent's live browsing tool rather than a batch index, the buying criteria shift, and our guide to the best proxies for AI agents covers that case.
Frequently asked questions
FAQ
For load(), pass requests_kwargs={"proxies": {"http": url, "https": url}}; it beats environment variables, while the proxies= constructor argument can be overridden by them. For alazy_load(), pass requests_kwargs={"proxy": url} or set trust_env=True with HTTPS_PROXY exported.
The async methods use aiohttp, which ignores session.proxies and doesn't read proxy environment variables unless trust_env=True. WebBaseLoader defaults trust_env to False, so the async path connects directly.
No. In langchain-community 0.4.2 it accepts only urls, headless and user_agent, and in our test it ignored HTTPS_PROXY. Subclass it and pass proxy= to chromium.launch(), or use PlaywrightURLLoader, which has a proxy argument.
WebBaseLoader parses 403 pages as content unless raise_for_status=True, and continue_on_failure=True turns failed async fetches into empty strings. Check document length, status and title before embedding.
No. Its README says the package "has been sunset", the final release was 0.4.2 on 22 May 2026, and the last commit landed on 19 June 2026. The loaders still install and run, but proxy bugs in them won't be fixed upstream.
Use it for pages that need JavaScript rendering or keep returning challenge pages through a plain proxy. A rendered request costs 5 credits, a plain one 1 credit, and the Markdown output can go straight into a text splitter.
Get 20% off your first month
Premium datacentre proxies with unlimited bandwidth. Use the code at checkout.
Save up to 15% more on quarterly, half-yearly and yearly plans
Related articles

How to Bulk Check Google Index Status for Thousands of URLs
Bulk check Google index status past the 2,000-a-day URL Inspection API quota: impressions first, inspections next, proxied site: checks, and a reasons report.

Cloud Run Static Outbound IP for Proxy Whitelisting
Set a Cloud Run static outbound IP with Cloud NAT and whitelist it on your proxy, or skip NAT with user:pass auth. Commands, egress check, NAT ports and costs.

Reddit Keyword Alerts: Catch Buying Threads in Slack
Build Reddit keyword alerts that watch subreddits, poll new posts and comments, flag recommendation asks and complaints, and post them to Slack within rules.
