Batch jobs and webhooks
For lists of URLs, send them as one job. We run them in the background at the pace your plan allows, and you collect the results when they are done – or have them sent to you.
You send
POST /v1/jobs
{
"requests": [
{
"url": "https://shop.example/product/1"
},
{
"url": "https://shop.example/product/2"
},
{
"url": "https://shop.example/product/3"
}
],
"webhook": {
"url": "https://your-server.example/hooks/virginproxy"
}
}- Endpoint
POST /v1/jobs- Cost
- Each item like a single request
- Plans
- All plans, Free included
- Failed requests
- Not charged
- Documentation
- Step-by-step guide
Sending thousands of requests yourself means queues, rate limits, retries and keeping track of what is done. One crash in the middle, and you start again.
How VirginProxy helps
POST /v1/jobstakes a list of requests – each with all the options of a single request.- Temporary limits never fail an item: it simply waits for its turn.
- Signed webhooks for every result or when the job is done, with automatic retries if your server is down.
- Results as a live stream while the job runs, page by page for 24 hours, or written to your own S3-compatible storage when it ends.
How it works, step by step
Send the list
POST /v1/jobswith up to 50,000 requests (depending on your plan) – as a JSON list or an NDJSON file with one request per line, each with all the options of a single request.Get an id at once
The job runs in the background within your plan’s limits; you do not need to keep a connection open.
Follow the progress
Ask for the status, or let a webhook tell your server about each result and the end.
Collect the results
Page by page, or as they arrive by webhook; they are kept for 24 hours after the job ends.
Example request
Three product pages as one job; the results are sent to your server when they are ready.
curl https://api.virginproxy.com/v1/jobs \
-H "Authorization: Bearer $VP_KEY" \
-H "Content-Type: application/json" \
-d '{
"requests": [
{
"url": "https://shop.example/product/1"
},
{
"url": "https://shop.example/product/2"
},
{
"url": "https://shop.example/product/3"
}
],
"webhook": {
"url": "https://your-server.example/hooks/virginproxy"
}
}'
import os, requests
r = requests.post(
"https://api.virginproxy.com/v1/jobs",
headers={"Authorization": "Bearer " + os.environ["VP_KEY"]},
json={
"requests": [
{
"url": "https://shop.example/product/1"
},
{
"url": "https://shop.example/product/2"
},
{
"url": "https://shop.example/product/3"
}
],
"webhook": {
"url": "https://your-server.example/hooks/virginproxy"
}
},
timeout=150,
)
data = r.json()
print(data["id"], data["status"])
const res = await fetch("https://api.virginproxy.com/v1/jobs", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VP_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"requests": [
{
"url": "https://shop.example/product/1"
},
{
"url": "https://shop.example/product/2"
},
{
"url": "https://shop.example/product/3"
}
],
"webhook": {
"url": "https://your-server.example/hooks/virginproxy"
}
}),
});
const data = await res.json();
console.log(data.id, data.status);
$ch = curl_init("https://api.virginproxy.com/v1/jobs");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("VP_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"requests" => [[
"url" => "https://shop.example/product/1",
], [
"url" => "https://shop.example/product/2",
], [
"url" => "https://shop.example/product/3",
]],
"webhook" => [
"url" => "https://your-server.example/hooks/virginproxy",
],
]),
CURLOPT_TIMEOUT => 150,
]);
$data = json_decode(curl_exec($ch), true);
echo $data["id"], " ", $data["status"];
body := strings.NewReader(`{
"requests": [
{
"url": "https://shop.example/product/1"
},
{
"url": "https://shop.example/product/2"
},
{
"url": "https://shop.example/product/3"
}
],
"webhook": {
"url": "https://your-server.example/hooks/virginproxy"
}
}`)
req, _ := http.NewRequest("POST", "https://api.virginproxy.com/v1/jobs", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("VP_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal(err)
}
defer res.Body.Close()
var data map[string]any
json.NewDecoder(res.Body).Decode(&data)
fmt.Println(data["id"], data["status"])
Documentation for this feature · Delivery to your storage · API reference
What comes back
The job, right after it was created:
{
"id": "job_Q4mT7wLk2VhR9xPa1sNe",
"status": "queued",
"total": 1000,
"pending": 1000,
"succeeded": 0,
"failed": 0,
"canceled": 0,
"credits": 0
}What it costs
The job itself is free. Each item costs what the same single request costs; items the target never answered and cancelled items cost nothing. 1,000 pages without a browser are about 1,000 credits.
Good to know
- Per job: Free 10, Starter 1,000, Growth 10,000, Scale 50,000 requests; up to 20 jobs at once.
GET /v1/jobs/{id}/streamsends every finished item as one NDJSON line while the job runs – no polling.- Send an Idempotency-Key header: a repeated call within 24 hours returns the same job instead of a second one.
- Temporary limits never fail an item – it waits and runs a little later.
- Webhooks are signed, so your server can check that they come from us.
Questions
How many requests fit in one job?
10 on Free, 1,000 on Starter, 10,000 on Growth and 50,000 on Scale – as a JSON list or as an NDJSON upload with one request per line. Up to 20 jobs can be queued or running at the same time.
Do jobs cost more?
No. Every request in a job costs the same as a single request, and failed ones cost nothing.
What happens when my credits run out during a job?
Items that have not run yet end with credits_exhausted and cost nothing.
Can I cancel a job?
Yes. Waiting items are not sent and not charged; finished results stay available.
Can items use different options?
Yes. Every item is a full request with its own URL, method, headers and options.
Can the results go straight into my own storage?
Yes. Save a storage destination once – AWS S3, Cloudflare R2, Google Cloud Storage, MinIO or any other S3-compatible store – and add delivery to the job: when it ends, all results are written there as NDJSON, JSON or CSV under a file name you choose.
Other features
- Web scraping API
- JavaScript rendering
- URL to Markdown for LLMs
- Documents to Markdown
- Data extraction
- Web search API
- Screenshot API
- Website map and link discovery
- Website crawler
- Website monitoring
- MCP server for AI agents
Use cases
- Price and stock monitoring
- Travel and tickets
- Listings and classifieds
- Testing and verification
- Brand protection
Pricing and cost examplesSelf-hosting vs APIWeb scraping APIs comparedWhat is a web scraping API?Quick start
Use VirginProxy for lawful purposes and respect the terms and rights of the sites you visit.
Try it with 50 free credits
Pick up where you left off
No card needed. Your first request takes two minutes.
Your credits, keys and recent requests are waiting in the dashboard.
Start with 50 free creditsGo to dashboard