Get an API key Your API keys

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.

ToolWhat you getInstall
n8nNode VirginProxy: Scrape, Search, Screenshot, Map, Crawl, Get Job, Get Job Results. Usable as an AI Agent tool.n8n-nodes-virginproxy
LangChainVirginProxyLoader (scrape, crawl, search), VirginProxyScrapeTool, VirginProxySearchToollangchain-virginproxy
LlamaIndexVirginProxyReader (scrape, crawl, search)llama-index-readers-virginproxy
Zapier, MakeCalls through the HTTP modules; results back through webhooksNothing 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
# 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 n8n

With 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

OperationCallsOutput
ScrapePOST /v1/requestsThe whole answer: body, status, strategy, tokens, auto_extracted, extracted, cost …
SearchPOST /v1/searchOne item per result; with Scrape Result Pages each carries page.body.
ScreenshotGET /v1/screenshotThe image as binary data (field data), plus credits and request_id.
MapPOST /v1/mapOne item per address.
CrawlPOST /v1/crawlWaits for the crawl and returns one item per page – or returns the job at once.
Get JobGET /v1/jobs/{id}Progress, optionally holding up to 30 seconds for a change.
Get Job ResultsGET /v1/jobs/{id}/resultsOne 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

Install
pip install langchain-core
pip install https://docs.virginproxy.com/integrations/langchain_virginproxy-0.1.0.tar.gz

The key comes from VP_API_KEY, an api_key= argument, or the file written by vp login.

Document loader

loader.py
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

tools.py
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

Install
pip install llama-index-core
pip install https://docs.virginproxy.com/integrations/llama_index_readers_virginproxy-0.1.0.tar.gz
index.py
from 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

  1. Add the action Webhooks by Zapier → Custom Request.
  2. Method POST, URL https://api.virginproxy.com/v1/requests (or /v1/search, /v1/map, /v1/crawl).
  3. 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.
  4. Headers: Authorization = Bearer vp_live_… and Content-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):

POST /v1/crawl
{
  "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

  1. Add the module HTTP → Make a request.
  2. URL https://api.virginproxy.com/v1/requests, method POST.
  3. Headers: Authorization = Bearer vp_live_…. Body type Raw, content type JSON (application/json), request content: your JSON body.
  4. 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