Docs menu
Docs Reference
Haystack
Fetch pages for a Haystack pipeline or agent through residential, datacenter or mobile IPs.
Last verified: October 2026What it does
The proxmint-haystack package connects Haystack to your Proxmint proxies. Its ProxmintFetcher component takes a list of URLs and returns documents (the page as readable text, or the raw HTML) and failed_urls. Use it as the first step of an indexing pipeline, or wrap it in a ComponentTool to give an agent a page-reading tool.
Requests go straight from your code to the gateway, from the IPs and location you pick, and use the bandwidth of your own product. The source is on GitHub and the package on PyPI.
Install and connect
Install the package and create an API key under Settings in the dashboard (the same read-only key the customer API uses):
The key looks up the proxy login of the product you choose, so there is nothing else to copy. If you would rather not use a key, set PROXMINT_USERNAME and PROXMINT_PASSWORD to the proxy login from your product page.
Fetch pages
Each URL gets a new IP unless session_minutes is set. A URL that fails is logged, skipped and listed in failed_urls. When the gateway refuses a request, for example because the product is out of bandwidth or no IP matches the targeting, the message says what to change. The error codes page lists them all.
Use it in a pipeline or as an agent tool
Options
| Option | Default | What it does |
|---|---|---|
api_key | PROXMINT_API_KEY | A Haystack Secret. Without a key, PROXMINT_USERNAME and PROXMINT_PASSWORD are read. |
product | "residential" | residential, premium-residential, datacenter or mobile. |
country | any | Exit country as a two-letter code. run(urls, country=...) overrides it for one run. |
state, city, zip_code, asn | none | Finer targeting inside the country. Needs country. |
session_minutes | none | Keep one exit IP across runs for 1 to 120 minutes. Default: a new IP for every URL. |
output | "text" | text returns readable text, html the raw page. |
timeout | 60 | Seconds per request. |
raise_on_failure | False | Raise on a failed URL instead of listing it in failed_urls. |
Good to know
- State, city, ZIP and ASN targeting can meter at twice the bandwidth; the targeting page says which products.
- Pages load over the destination ports the network forwards, which cover the usual web ports (see port access). A short list of sites is refused outright (see blocked websites).
- Each product allows up to 2,000 concurrent connections.
- The component does not run JavaScript. It reads what the server sends.