Integrations: n8n, LangChain, LlamaIndex, Zapier and Make
Read web pages, crawl sites and search the web from the tools you already use: a community node for n8n, a document loader and tools for LangChain, a reader for LlamaIndex – and Zapier and Make through webhooks and their HTTP modules.
| Tool | What you get | Install |
|---|---|---|
| n8n | Node VirginProxy: Scrape, Search, Screenshot, Map, Crawl, Get Job, Get Job Results. Usable as an AI Agent tool. | n8n-nodes-virginproxy |
| LangChain | VirginProxyLoader (scrape, crawl, search), VirginProxyScrapeTool, VirginProxySearchTool | langchain-virginproxy |
| LlamaIndex | VirginProxyReader (scrape, crawl, search) | llama-index-readers-virginproxy |
| Zapier, Make | Calls through the HTTP modules; results back through webhooks | Nothing to install |
Note
The packages are offered as downloads from this site for now; they are not on npm or PyPI yet. Once they are, this page will show the package names to install.
Tip
Give every integration its own API key with a credit limit (dashboard or through the API). A test key (vp_test_…) returns sample answers at no cost while you build.
n8n
The community node VirginProxy works in any workflow and as a tool of n8n's AI Agent.
Install
# self-hosted n8n: in the n8n user's folder (usually ~/.n8n)
mkdir -p ~/.n8n/nodes && cd ~/.n8n/nodes
npm install https://docs.virginproxy.com/integrations/n8n-nodes-virginproxy-0.1.0.tgz
# then restart n8nWith Docker, run the same inside the container (or add it to your image) with ~/.n8n mounted. Community nodes from a file work on self-hosted n8n; on n8n Cloud only verified nodes can be installed, which this one is not yet.
Credentials
Add a credential of type VirginProxy API with your key. Leave Base URL at https://api.virginproxy.com. n8n checks the key with GET /v1/account when you save it.
Operations
| Operation | Calls | Output |
|---|---|---|
| Scrape | POST /v1/requests | The whole answer: body, status, strategy, tokens, auto_extracted, extracted, cost … |
| Search | POST /v1/search | One item per result; with Scrape Result Pages each carries page.body. |
| Screenshot | GET /v1/screenshot | The image as binary data (field data), plus credits and request_id. |
| Map | POST /v1/map | One item per address. |
| Crawl | POST /v1/crawl | Waits for the crawl and returns one item per page – or returns the job at once. |
| Get Job | GET /v1/jobs/{id} | Progress, optionally holding up to 30 seconds for a change. |
| Get Job Results | GET /v1/jobs/{id}/results | One item per result, all or up to a limit, optionally by status. |
Scrape offers browser rendering Off / Automatic / Always, the output format, main content only, Auto Extract (product, article, job, review list, recipe, event, organization), redaction of personal data, include and exclude selectors, extract rules, presets, sessions and a credit cap; Extra Options (JSON) passes any other option of POST /v1/requests. Split Into Items turns lists into one item each.
Errors stop the node with the API's code and message (for example credits_exhausted: …); with On Error → Continue the item carries error instead. Short-lived limits such as busy or maintenance are retried twice on their own.
LangChain
pip install langchain-core
pip install https://docs.virginproxy.com/integrations/langchain_virginproxy-0.1.0.tar.gzThe key comes from VP_API_KEY, an api_key= argument, or the file written by vp login.
Document loader
from langchain_virginproxy import VirginProxyLoader
# One or more pages: Markdown of the main content, a browser only if a page needs one
docs = VirginProxyLoader(["https://example.com/"], params={"render": "auto"}).load()
# A whole site: waits for the crawl, then yields each page
loader = VirginProxyLoader(
"https://example.com/docs/",
mode="crawl",
params={"max_pages": 50, "include_paths": ["/docs/**"], "max_credits": 200},
)
for doc in loader.lazy_load():
print(doc.metadata["source"], len(doc.page_content))
# Web search with each result page as the content
docs = VirginProxyLoader(
mode="search",
query="open source vector database",
params={"limit": 5, "scrape": {"format": "markdown"}},
).load()params go to the API unchanged: options of POST /v1/requests for scrape (the default mode), of POST /v1/crawl for crawl, of POST /v1/search for search. Each Document's metadata has source, status, request_id, credits and, when present, title, strategy, tokens, auto_extracted and extracted; crawls add job_id and depth, search results title, snippet and position. lazy_load() yields one Document at a time; continue_on_failure=True skips pages that fail instead of raising.
Tools for agents
from langchain_virginproxy import VirginProxyScrapeTool, VirginProxySearchTool
tools = [VirginProxyScrapeTool(), VirginProxySearchTool(params={"limit": 5})]
model_with_tools = model.bind_tools(tools) # or hand them to your agent
print(VirginProxyScrapeTool().invoke({"url": "https://example.com/"}))VirginProxyScrapeTool returns the page as Markdown (cut at max_chars, default 40,000) and uses render: "auto" by default: a browser only when the page needs one, and only the delivered answer is charged. With auto_extract or extract in its params it returns that data as JSON. Errors come back as text such as Error credits_exhausted: …, so the agent can react.
LlamaIndex
pip install llama-index-core
pip install https://docs.virginproxy.com/integrations/llama_index_readers_virginproxy-0.1.0.tar.gzfrom llama_index.core import VectorStoreIndex
from llama_index.readers.virginproxy import VirginProxyReader
docs = VirginProxyReader(params={"render": "auto"}).load_data(urls=["https://example.com/"])
# A whole site, or web search results
site = VirginProxyReader(mode="crawl", params={"max_pages": 50}).load_data(url="https://example.com/docs/")
found = VirginProxyReader(mode="search", params={"limit": 5, "scrape": {"format": "markdown"}}).load_data(
query="open source vector database")
index = VectorStoreIndex.from_documents(docs + site + found)The same three modes as the LangChain loader. Bookkeeping metadata (request_id, credits, status, tokens …) is kept out of embeddings and prompts; auto_extracted and extracted are stored as JSON text because many vector stores accept only flat metadata. lazy_load_data() yields Documents one by one.
Zapier
Zapier needs no extra app: call the API with Webhooks by Zapier and let results come back to a Zap the same way.
Call the API
- Add the action Webhooks by Zapier → Custom Request.
- Method
POST, URLhttps://api.virginproxy.com/v1/requests(or/v1/search,/v1/map,/v1/crawl). - Data: the JSON body, for example
{"url": "https://example.com/", "format": "markdown", "main_content": true, "max_credits": 10}– map fields of earlier steps into it. - Headers:
Authorization=Bearer vp_live_…andContent-Type=application/json.
The answer's fields (body, status, auto_extracted, cost …) are available to the next steps. A call waits for the page – up to 90 seconds; for many pages use a crawl or job with a webhook instead.
Receive results
Start a Zap with Webhooks by Zapier → Catch Hook and use its URL as the job or crawl webhook. Each finished page arrives as a job.item event, the end of the job as job.done (see Webhook events):
{
"url": "https://example.com/",
"max_pages": 50,
"request": { "format": "markdown", "main_content": true },
"max_credits": 100,
"webhook": {
"url": "https://hooks.zapier.com/hooks/catch/123456/abcdef/",
"events": ["item", "done"]
}
}For a recurring run, put the same body into a schedule; every run then reports to the Zap.
Make
Call the API
- Add the module HTTP → Make a request.
- URL
https://api.virginproxy.com/v1/requests, methodPOST. - Headers:
Authorization=Bearer vp_live_…. Body type Raw, content type JSON (application/json), request content: your JSON body. - Turn on Parse response so later modules can use the answer's fields. Set the timeout to at least 120 seconds.
Screenshots: GET /v1/screenshot with the query string url, full_page …; the module returns the image as binary data for an upload module.
Receive results
Start a scenario with Webhooks → Custom webhook, copy its address into the webhook.url of a job, crawl or schedule, and run the job once so Make learns the structure of the events.
Webhooks in no-code tools
Each delivery is signed in X-VP-Signature. Zapier and Make cannot check the signature without a code step, so keep the hook URL private, treat the content as data from the web, and use webhook.metadata to recognise your own jobs. To check signatures, receive the webhook in your own code first – see Verify the signature. Failed deliveries are retried and can be sent again from the delivery log.
Other tools
Anything that can send an HTTPS request with a header can use VirginProxy: the endpoints take plain JSON, the OpenAPI description imports into most low-code tools, and the SDKs, the command line and the MCP server cover code, shells and AI assistants.
Was this page helpful?
Last updated