# All endpoints

> Every endpoint of the VirginProxy API on one page: method, path, permission, parameters, answer schema and the error codes it can return. Generated from the OpenAPI description.

Source: https://docs.virginproxy.com/endpoints/

All 71 endpoints in one place, generated from the [OpenAPI description](https://docs.virginproxy.com/openapi.json) – so nothing here can differ from it. Each shows the permission a key needs, its parameters, the shape of its answer and the error codes it can return.

The base URL is `https://api.virginproxy.com`; send your key as `Authorization: Bearer vp_live_…`. Permissions (requests read manage) are explained in [Key permissions](https://docs.virginproxy.com/security/#scopes).

## Overview

| Endpoint | What it does | Permission |
| --- | --- | --- |
| [POST `/v1/requests`](#op-createRequest) | Run one request | requests |
| [GET `/v1/raw`](#op-rawRequest) | The target's answer as it is | requests |
| [GET `/v1/screenshot`](#op-screenshot) | Screenshot as an image | requests |
| [POST `/v1/estimate`](#op-estimate) | What a request may cost, without running it | requests or read |
| [GET `/v1/pdf`](#op-pdf) | The page as a PDF document | requests |
| [POST `/v1/batch`](#op-createBatch) | A few requests in one call, answered together | requests |
| [POST `/v1/map`](#op-mapSite) | The addresses of a website | requests |
| [POST `/v1/search`](#op-search) | Search the web and get the results as JSON | requests |
| [POST `/v1/crawl`](#op-createCrawl) | Crawl a website in the background | requests |
| [GET `/v1/jobs`](#op-listJobs) | Your jobs, newest first | requests or read |
| [POST `/v1/jobs`](#op-createJob) | Many requests in the background | requests |
| [GET `/v1/jobs/{id}`](#op-getJob) | Progress of a job | requests or read |
| [DELETE `/v1/jobs/{id}`](#op-cancelJob) | Cancel a job | requests |
| [GET `/v1/jobs/{id}/results`](#op-getJobResults) | Results of a job | requests or read |
| [GET `/v1/jobs/{id}/stream`](#op-streamJobResults) | Finished items as they come (NDJSON) | requests or read |
| [GET `/v1/jobs/{id}/export`](#op-exportJobResults) | All results of a job as one download | requests or read |
| [POST `/v1/jobs/{id}/retry`](#op-retryJob) | Send the failed requests of a job again | requests |
| [GET `/v1/requests`](#op-listRequests) | Your recent requests | read |
| [GET `/v1/requests/{id}`](#op-getRequest) | One request record | read |
| [GET `/v1/requests/{id}/answer`](#op-getRequestAnswer) | The kept answer of a request | read |
| [GET `/v1/limits`](#op-getLimits) | What you may still do right now | requests or read |
| [PATCH `/v1/account/settings`](#op-updateAccountSettings) | Daily cap, credit alerts, alert webhook | manage |
| [GET `/v1/account`](#op-getAccount) | Plan, credits and limits | requests or read |
| [GET `/v1/usage`](#op-getUsage) | Usage per day (UTC) | read |
| [GET `/v1/usage/breakdown`](#op-getUsageBreakdown) | Usage per target domain, key or tag | read |
| [GET `/v1/destinations`](#op-listDestinations) | Your storage destinations | requests or read |
| [POST `/v1/destinations`](#op-createDestination) | Add your own storage (S3-compatible) | manage |
| [DELETE `/v1/destinations/{id}`](#op-deleteDestination) | Delete a storage destination | manage |
| [POST `/v1/destinations/{id}/test`](#op-testDestination) | Write a test file | manage |
| [GET `/v1/keys`](#op-listKeys) | Your API keys | manage |
| [POST `/v1/keys`](#op-createKey) | Create an API key | manage |
| [PATCH `/v1/keys/{id}`](#op-updateKey) | Change name, credit limit, daily limit or IP list of a key | manage |
| [DELETE `/v1/keys/{id}`](#op-revokeKey) | Revoke a key | manage |
| [POST `/v1/keys/{id}/roll`](#op-rollKey) | Roll a key: a new secret, the old one keeps working for a grace period | manage |
| [GET `/v1/webhooks`](#op-getWebhooks) | Webhook secret and recent deliveries | manage |
| [POST `/v1/webhooks/secret`](#op-rotateWebhookSecret) | Make a new webhook secret | manage |
| [GET `/v1/webhooks/deliveries`](#op-listWebhookDeliveries) | Webhook deliveries, filtered and page by page | manage |
| [GET `/v1/webhooks/deliveries/{id}`](#op-getWebhookDelivery) | One delivery with its attempts | manage |
| [POST `/v1/webhooks/test`](#op-testWebhook) | Send a signed test delivery now | manage |
| [POST `/v1/webhooks/deliveries/{id}/redeliver`](#op-redeliverWebhook) | Send a delivery again | manage |
| [GET `/v1/presets`](#op-listPresets) | Your presets | requests or read |
| [POST `/v1/presets`](#op-createPreset) | Save request options under a name | manage |
| [GET `/v1/presets/{name}`](#op-getPreset) | One preset | requests or read |
| [PATCH `/v1/presets/{name}`](#op-updatePreset) | Change a preset | manage |
| [DELETE `/v1/presets/{name}`](#op-deletePreset) | Delete a preset | manage |
| [GET `/v1/schedules`](#op-listSchedules) | Your schedules | requests or read |
| [POST `/v1/schedules`](#op-createSchedule) | Run a job or crawl again and again | manage |
| [GET `/v1/schedules/{id}`](#op-getSchedule) | One schedule | requests or read |
| [PATCH `/v1/schedules/{id}`](#op-updateSchedule) | Change, pause or resume a schedule | manage |
| [DELETE `/v1/schedules/{id}`](#op-deleteSchedule) | Delete a schedule | manage |
| [POST `/v1/schedules/preview`](#op-previewSchedule) | Check a rhythm and see its next runs | requests or read |
| [GET `/v1/schedules/{id}/reports`](#op-listScheduleReports) | What each run found (monitors) | requests or read |
| [POST `/v1/schedules/{id}/run`](#op-runSchedule) | Start a run now | manage |
| [GET `/.well-known/ai-catalog.json`](#op-aiCatalog) | AI catalog | No key needed |
| [GET `/mcp/server-card`](#op-mcpServerCard) | MCP server card | No key needed |
| [GET `/v1/docs`](#op-listMemberDocs) | The complete documentation for your AI | Any key |
| [GET `/v1/docs/{name}`](#op-getMemberDoc) | One file of the complete documentation | Any key |
| [POST `/mcp`](#op-mcp) | Model Context Protocol endpoint | Key or sign-in |
| [GET `/.well-known/oauth-authorization-server`](#op-oauthServerMetadata) | Authorization server metadata (RFC 8414) | No key needed |
| [GET `/.well-known/oauth-protected-resource/mcp`](#op-oauthResourceMetadata) | Protected resource metadata of /mcp (RFC 9728) | No key needed |
| [POST `/oauth/register`](#op-oauthRegister) | Register an MCP client (RFC 7591) | No key needed |
| [POST `/oauth/token`](#op-oauthToken) | Exchange a code or refresh token for tokens | No key needed |
| [POST `/oauth/revoke`](#op-oauthRevoke) | Revoke a token (RFC 7009) | No key needed |
| [GET `/.well-known/api-catalog`](#op-apiCatalog) | API catalog (RFC 9727) | No key needed |
| [GET `/.well-known/security.txt`](#op-securityTxt) | Security contact (RFC 9116) | No key needed |
| [GET `/v1/status`](#op-getStatus) | Service status | No key needed |
| [GET `/v1/errors`](#op-listErrors) | Every error code | No key needed |
| [GET `/healthz`](#op-health) | Up or down | No key needed |
| [GET `/openapi.json`](#op-openapiJson) | This description (JSON) | No key needed |
| [GET `/openapi.yaml`](#op-openapiYaml) | This description (YAML) | No key needed |
| [GET `/`](#op-root) | Service name and docs link | No key needed |

## Requests

Run requests.

### POST /v1/requests

Run one requestPermissionrequests

Fetches one URL through our network and returns the answer with our figures. Charged only when the target answered: 1 credit per started MB, +9 with `render`, +5 per new IP. Waits for the answer (up to about 90 seconds).

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `Idempotency-Key` | header | string | Optional. The same key with the same body within 24 hours returns the first (recorded) answer again, marked with `Idempotent-Replayed: true`, instead of running and charging a second time. A failure that was not charged is not kept: sending it again runs it again. |

**Request body application/json · RequestBody**

Every field is in the [parameter reference](https://docs.virginproxy.com/reference/#parameters).

object

**Answer 200 OK · RequestResponse**

- `id`stringrequiredOur id for this request, e.g. `req_s0F0gEspheQI7zpoNzwU`. Quote it when you contact support.
- `status`integerrequiredThe target's HTTP status.
- `final_url`stringrequiredThe URL that produced the answer, after redirects.
- `headers`objectrequiredThe target's response headers, names in lower case, each as one string. `set-cookie` is a list with one entry per cookie.
- `cookies`list of objectEvery cookie the target set, also on the way through redirects, already parsed: `name`, `value`, `domain`, `path`, `secure`, `http_only`, and when present `expires`, `max_age` and `same_site`.
- `redirects`list of objectThe redirects that were followed, in order, each as `{"url", "status"}`. Empty when there were none.
  - `url`string
  - `status`integer
- `body`stringrequiredThe response body. Text for textual content types, otherwise base64. With `render`, the page as HTML after its scripts ran.
- `body_encoding`stringrequired`"utf8"` or `"base64"`. Always check it before using `body`. `"utf8"` `"base64"`
- `truncated`boolean`true` when the body was cut at your plan's size limit (2 to 25 MB) or by `max_credits`.
- `browser`string | nullThe browser the request was sent as.
- `http_version`string | nullThe HTTP version the target answered with, for example `HTTP/2.0`.
- `attempts`integerHow many attempts it took: 1 without `retry`.
- `rendered`booleanOnly with `render`: `true`.
- `format`stringThe format that was applied: `raw` unless you asked for another one and the answer was HTML or a document. `"raw"` `"markdown"` `"text"` `"clean_html"`
- `tokens`integerOnly with `format` `markdown`, `text` or `clean_html`: about how many tokens the body is (estimated, about 4 characters per token in Latin script) – to plan what fits into an AI prompt.
- `document`objectOnly when the answer was a document (PDF, Word, Excel, PowerPoint, OpenDocument, CSV) and `format` converted it: `{"type", "pages", "truncated", "text"}`. `text` is `false` for a scanned PDF without a text layer.
  - `type`string `"pdf"` `"docx"` `"xlsx"` `"csv"` `"pptx"` `"odt"`
  - `pages`integer
  - `truncated`boolean
  - `text`boolean
- `strategy`stringOnly with `"render": "auto"`: `"http"` or `"browser"`, and every try with its status, the reason for the second one and its credits. `"http"` `"browser"`
- `strategy_attempts`list of objectOnly with `"render": "auto"`: `"http"` or `"browser"`, and every try with its status, the reason for the second one and its credits.
  - `strategy`string `"http"` `"browser"`
  - `status`integer | null
  - `error`string
  - `reason`string `"no_answer"` `"blocked_status"` `"challenge_page"` `"javascript_shell"` `"wait_for_missing"` `"nothing_extracted"`
  - `credits`integer
- `redacted`objectOnly with `redact`: how many of each kind were blacked out, e.g. `{"email": 2}`.
- `auto_extracted`object | nullOnly with `auto_extract`: `{"type", "data", "sources", "confidence"}`, or `null` when the page has no such record.
  - `type`string
  - `data`object
  - `sources`list of string
  - `confidence`number
- `trace`list of objectOnly with `render.trace`: one entry per step and the end, each `{"step", "action", "at_ms", "url", "screenshot", "console"}` (JPEG as base64).
  - `step`integer | null
  - `action`string
  - `at_ms`integer
  - `url`string
  - `screenshot`stringJPEG as base64.
  - `console`list of object
    - `level`string
    - `text`string
- `parsed`objectOnly with `parse`: the keys you asked for.
- `extracted`objectOnly with `extract`: your fields.
- `tag`stringOnly when you sent them: returned unchanged.
- `echo`anyOnly when you sent them: returned unchanged.
- `preset`stringOnly with `preset`: the preset that was applied.
- `cached`trueOnly for an answer from the cache: `true`, when it was fetched and until when it is kept. `id` is the request that fetched it; `cost.credits` is 0.
- `cached_at`stringOnly for an answer from the cache: `true`, when it was fetched and until when it is kept. `id` is the request that fetched it; `cost.credits` is 0.
- `cache_expires_at`stringOnly for an answer from the cache: `true`, when it was fetched and until when it is kept. `id` is the request that fetched it; `cost.credits` is 0.
- `change`objectOnly with `track_changes`: `{"status": "new"|"same"|"changed", "previous_request", "previous_at"}`, with `diff` also `{"added", "removed", "added_count", "removed_count", "truncated"}`.
  - `status`string `"new"` `"same"` `"changed"` `"unknown"`
  - `previous_request`string
  - `previous_at`string
  - `diff`object | null
    - `added`list of string
    - `removed`list of string
    - `added_count`integer
    - `removed_count`integer
    - `truncated`boolean
- `screenshot`string | nullOnly with `render`: the visible part of the page as a base64 PNG when you asked for `screenshot`, otherwise `null`.
- `duration_ms`integerrequiredTime from our network starting the request to the last byte, all attempts included.
- `exit`objectrequired
  - `ip`string | nullThe public IP the target saw.
  - `country`stringISO country code of the exit IP.
- `bytes`objectrequired
  - `up`integerBytes sent and received for the answer you got, including TLS and headers. That is why a 33-byte body shows about 4 kB. With `render`, everything the browser loaded for the page.
  - `down`integerBytes sent and received for the answer you got, including TLS and headers. That is why a 33-byte body shows about 4 kB. With `render`, everything the browser loaded for the page.
- `cost`objectrequired
  - `credits`integerCredits charged for this request.
  - `credits_used`integerYour total for the period after this request, and what your plan includes.
  - `credits_included`integerYour total for the period after this request, and what your plan includes.
- `screenshot_type`string | nullOnly with `render`: the image type of `screenshot` (image/png, image/jpeg or image/webp).
- `pdf`stringOnly with `render.pdf`: the page as a base64 PDF.
- `steps`list of objectOnly with `render.actions`: one entry per step, with its outcome (and `value` for `evaluate`).
- `captured`list of objectOnly with `render.capture`: matching background requests of the page with their bodies.
- `test`trueOnly with a test key (`vp_test_…`): a sample answer; nothing was fetched or charged. See [Test mode](https://docs.virginproxy.com/test-mode/).

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_url`](https://docs.virginproxy.com/errors/#e-invalid_url) [`invalid_method`](https://docs.virginproxy.com/errors/#e-invalid_method) [`invalid_headers`](https://docs.virginproxy.com/errors/#e-invalid_headers) [`invalid_params`](https://docs.virginproxy.com/errors/#e-invalid_params) [`invalid_browser`](https://docs.virginproxy.com/errors/#e-invalid_browser) [`invalid_locale`](https://docs.virginproxy.com/errors/#e-invalid_locale) [`invalid_cookies`](https://docs.virginproxy.com/errors/#e-invalid_cookies) [`body_too_large`](https://docs.virginproxy.com/errors/#e-body_too_large) [`invalid_session`](https://docs.virginproxy.com/errors/#e-invalid_session) [`invalid_retry`](https://docs.virginproxy.com/errors/#e-invalid_retry) [`invalid_render`](https://docs.virginproxy.com/errors/#e-invalid_render) [`invalid_format`](https://docs.virginproxy.com/errors/#e-invalid_format) [`invalid_parse`](https://docs.virginproxy.com/errors/#e-invalid_parse) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_extract`](https://docs.virginproxy.com/errors/#e-invalid_extract) [`invalid_tag`](https://docs.virginproxy.com/errors/#e-invalid_tag) [`invalid_options`](https://docs.virginproxy.com/errors/#e-invalid_options) [`invalid_timeout`](https://docs.virginproxy.com/errors/#e-invalid_timeout) [`invalid_idempotency_key`](https://docs.virginproxy.com/errors/#e-invalid_idempotency_key) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 402 [`credits_exhausted`](https://docs.virginproxy.com/errors/#e-credits_exhausted) [`key_limit_reached`](https://docs.virginproxy.com/errors/#e-key_limit_reached) [`daily_limit_reached`](https://docs.virginproxy.com/errors/#e-daily_limit_reached)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`email_not_verified`](https://docs.virginproxy.com/errors/#e-email_not_verified) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`target_not_allowed`](https://docs.virginproxy.com/errors/#e-target_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 409 [`idempotency_in_progress`](https://docs.virginproxy.com/errors/#e-idempotency_in_progress) [`too_many_schedules`](https://docs.virginproxy.com/errors/#e-too_many_schedules) [`too_many_destinations`](https://docs.virginproxy.com/errors/#e-too_many_destinations) [`preset_exists`](https://docs.virginproxy.com/errors/#e-preset_exists) [`too_many_presets`](https://docs.virginproxy.com/errors/#e-too_many_presets)
- 413 [`body_too_large`](https://docs.virginproxy.com/errors/#e-body_too_large-413)
- 422 [`idempotency_key_reused`](https://docs.virginproxy.com/errors/#e-idempotency_key_reused)
- 424 [`search_failed`](https://docs.virginproxy.com/errors/#e-search_failed) [`timeout`](https://docs.virginproxy.com/errors/#e-timeout) [`target_unreachable`](https://docs.virginproxy.com/errors/#e-target_unreachable) [`connection_failed`](https://docs.virginproxy.com/errors/#e-connection_failed) [`tls_error`](https://docs.virginproxy.com/errors/#e-tls_error) [`too_many_redirects`](https://docs.virginproxy.com/errors/#e-too_many_redirects) [`request_failed`](https://docs.virginproxy.com/errors/#e-request_failed)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited) [`concurrency_limited`](https://docs.virginproxy.com/errors/#e-concurrency_limited)
- 500 [`internal_error`](https://docs.virginproxy.com/errors/#e-internal_error)
- 503 [`busy`](https://docs.virginproxy.com/errors/#e-busy) [`render_unavailable`](https://docs.virginproxy.com/errors/#e-render_unavailable) [`rotation_failed`](https://docs.virginproxy.com/errors/#e-rotation_failed) [`executor_unavailable`](https://docs.virginproxy.com/errors/#e-executor_unavailable) [`maintenance`](https://docs.virginproxy.com/errors/#e-maintenance)

[How to use it](https://docs.virginproxy.com/requests/)

### GET /v1/raw

The target's answer as it isPermissionrequests

Like POST /v1/requests, but answers with the target's status, content type and body itself; our figures travel in `X-VP-*` headers. Headers for the target are sent as `X-VP-Header-<Name>`.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `url` required | query | string | Absolute http(s) URL. |
| `session` | query | string | Session name. |
| `fresh_ip` | query | string | New IP first (5 credits): true or false (also 1 or 0). |
| `ip_version` | query | string | IP version. One of `4`, `6`, `auto`. |
| `timeout_ms` | query | integer | Time limit of one attempt. |
| `browser` | query | string | Browser profile. One of `chrome`, `chrome_mac`, `chrome_android`, `edge`, `firefox`, `safari`, `safari_ios`, `none`. |
| `locale` | query | string | Visitor language. |
| `follow_redirects` | query | string | true or false (also 1 or 0) |
| `max_redirects` | query | integer | Redirects at most. 0 to 10. |
| `cookie_jar` | query | string | true or false (also 1 or 0) |
| `http_version` | query | string | HTTP version. One of `auto`, `1.1`. |
| `insecure` | query | string | true or false (also 1 or 0) |
| `format` | query | string | Convert an HTML answer. One of `raw`, `markdown`, `text`, `clean_html`. |
| `main_content` | query | string | true or false (also 1 or 0) |
| `tag` | query | string | Tag. |
| `max_credits` | query | integer | Cost cap. 1 to 1000. |
| `render` | query | string | Render in a browser: true or false (also 1 or 0). |
| `timezone` | query | string | With render: IANA time zone. |
| `wait_until` | query | string | With render. One of `load`, `domcontentloaded`, `networkidle`. |

**Answer 200 The target's answer (any status from 200 to 599 is passed on; 1xx and others arrive as 502 with `X-VP-Status`).**

`*/*`

- `X-VP-Request-Id`header
- `X-VP-Status`header
- `X-VP-Credits`header
- `X-VP-Bytes-Down`header
- `X-VP-Final-URL`header

Errors

- 400 [`invalid_url`](https://docs.virginproxy.com/errors/#e-invalid_url) [`invalid_method`](https://docs.virginproxy.com/errors/#e-invalid_method) [`invalid_headers`](https://docs.virginproxy.com/errors/#e-invalid_headers) [`invalid_params`](https://docs.virginproxy.com/errors/#e-invalid_params) [`invalid_browser`](https://docs.virginproxy.com/errors/#e-invalid_browser) [`invalid_locale`](https://docs.virginproxy.com/errors/#e-invalid_locale) [`invalid_cookies`](https://docs.virginproxy.com/errors/#e-invalid_cookies) [`body_too_large`](https://docs.virginproxy.com/errors/#e-body_too_large) [`invalid_session`](https://docs.virginproxy.com/errors/#e-invalid_session) [`invalid_retry`](https://docs.virginproxy.com/errors/#e-invalid_retry) [`invalid_render`](https://docs.virginproxy.com/errors/#e-invalid_render) [`invalid_format`](https://docs.virginproxy.com/errors/#e-invalid_format) [`invalid_parse`](https://docs.virginproxy.com/errors/#e-invalid_parse) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_extract`](https://docs.virginproxy.com/errors/#e-invalid_extract) [`invalid_tag`](https://docs.virginproxy.com/errors/#e-invalid_tag) [`invalid_options`](https://docs.virginproxy.com/errors/#e-invalid_options) [`invalid_timeout`](https://docs.virginproxy.com/errors/#e-invalid_timeout) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 402 [`credits_exhausted`](https://docs.virginproxy.com/errors/#e-credits_exhausted) [`key_limit_reached`](https://docs.virginproxy.com/errors/#e-key_limit_reached) [`daily_limit_reached`](https://docs.virginproxy.com/errors/#e-daily_limit_reached)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`email_not_verified`](https://docs.virginproxy.com/errors/#e-email_not_verified) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`target_not_allowed`](https://docs.virginproxy.com/errors/#e-target_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 413 [`body_too_large`](https://docs.virginproxy.com/errors/#e-body_too_large-413)
- 424 [`search_failed`](https://docs.virginproxy.com/errors/#e-search_failed) [`timeout`](https://docs.virginproxy.com/errors/#e-timeout) [`target_unreachable`](https://docs.virginproxy.com/errors/#e-target_unreachable) [`connection_failed`](https://docs.virginproxy.com/errors/#e-connection_failed) [`tls_error`](https://docs.virginproxy.com/errors/#e-tls_error) [`too_many_redirects`](https://docs.virginproxy.com/errors/#e-too_many_redirects) [`request_failed`](https://docs.virginproxy.com/errors/#e-request_failed)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited) [`concurrency_limited`](https://docs.virginproxy.com/errors/#e-concurrency_limited)
- 500 [`internal_error`](https://docs.virginproxy.com/errors/#e-internal_error)
- 503 [`busy`](https://docs.virginproxy.com/errors/#e-busy) [`render_unavailable`](https://docs.virginproxy.com/errors/#e-render_unavailable) [`rotation_failed`](https://docs.virginproxy.com/errors/#e-rotation_failed) [`executor_unavailable`](https://docs.virginproxy.com/errors/#e-executor_unavailable) [`maintenance`](https://docs.virginproxy.com/errors/#e-maintenance)

[How to use it](https://docs.virginproxy.com/raw/)

### GET /v1/screenshot

Screenshot as an imagePermissionrequests

Loads the page in a browser and answers with the picture itself (PNG, JPEG or WebP). Costs like a rendered request: 10 credits for up to 1 MB loaded, 1 more per further MB. Images and fonts are loaded (unlike `render` in POST /v1/requests). The target's status is in `X-VP-Status`. Unknown options are refused.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `url` required | query | string | Absolute http(s) URL. |
| `full_page` | query | string | The whole page: true or false (also 1 or 0). |
| `selector` | query | string | CSS selector of one element instead. |
| `format` | query | string | Image type. One of `png`, `jpeg`, `webp`. Default `"png"`. |
| `quality` | query | integer | JPEG/WebP quality (default 80). 1 to 100. |
| `width` | query | integer | Viewport width in CSS pixels (default 1366 when height or scale is given, otherwise the browser's own size). 240 to 3840. |
| `height` | query | integer | Viewport height. 240 to 4320. |
| `scale` | query | number | Pixel density (default 1 when width or height is given). 0.5 to 4. |
| `wait_until` | query | string | When the page counts as loaded. One of `load`, `domcontentloaded`, `networkidle`. |
| `wait_for` | query | string | CSS selector to wait for. |
| `wait_ms` | query | integer | Extra wait at the end. 0 to 15000. |
| `scroll` | query | integer | Scroll to the bottom this many times first. 0 to 20. |
| `browser` | query | string | Browser profile (default chrome, a desktop browser). One of `chrome`, `chrome_mac`, `chrome_android`, `edge`, `firefox`, `safari`, `safari_ios`, `none`. |
| `locale` | query | string | Visitor language. |
| `timezone` | query | string | IANA time zone. |
| `color_scheme` | query | string | prefers-color-scheme. One of `light`, `dark`. |
| `block` | query | string | Comma-separated resource types not to load: image, media, font, stylesheet (default none). |
| `session` | query | string | Session name. |
| `fresh_ip` | query | string | true or false (also 1 or 0) |
| `max_credits` | query | integer | Cost cap. 10 to 1000. |
| `tag` | query | string | Tag. |

**Answer 200 The image.**

`image/png`, `image/jpeg`, `image/webp`

- `X-VP-Request-Id`header
- `X-VP-Credits`header
- `X-VP-Status`header
- `X-VP-Final-URL`header

Errors

- 400 [`invalid_url`](https://docs.virginproxy.com/errors/#e-invalid_url) [`invalid_method`](https://docs.virginproxy.com/errors/#e-invalid_method) [`invalid_headers`](https://docs.virginproxy.com/errors/#e-invalid_headers) [`invalid_params`](https://docs.virginproxy.com/errors/#e-invalid_params) [`invalid_browser`](https://docs.virginproxy.com/errors/#e-invalid_browser) [`invalid_locale`](https://docs.virginproxy.com/errors/#e-invalid_locale) [`invalid_cookies`](https://docs.virginproxy.com/errors/#e-invalid_cookies) [`body_too_large`](https://docs.virginproxy.com/errors/#e-body_too_large) [`invalid_session`](https://docs.virginproxy.com/errors/#e-invalid_session) [`invalid_retry`](https://docs.virginproxy.com/errors/#e-invalid_retry) [`invalid_render`](https://docs.virginproxy.com/errors/#e-invalid_render) [`invalid_format`](https://docs.virginproxy.com/errors/#e-invalid_format) [`invalid_parse`](https://docs.virginproxy.com/errors/#e-invalid_parse) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_extract`](https://docs.virginproxy.com/errors/#e-invalid_extract) [`invalid_tag`](https://docs.virginproxy.com/errors/#e-invalid_tag) [`invalid_options`](https://docs.virginproxy.com/errors/#e-invalid_options) [`invalid_timeout`](https://docs.virginproxy.com/errors/#e-invalid_timeout) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 402 [`credits_exhausted`](https://docs.virginproxy.com/errors/#e-credits_exhausted) [`key_limit_reached`](https://docs.virginproxy.com/errors/#e-key_limit_reached) [`daily_limit_reached`](https://docs.virginproxy.com/errors/#e-daily_limit_reached)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`email_not_verified`](https://docs.virginproxy.com/errors/#e-email_not_verified) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`target_not_allowed`](https://docs.virginproxy.com/errors/#e-target_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 413 [`body_too_large`](https://docs.virginproxy.com/errors/#e-body_too_large-413)
- 422 [`screenshot_failed`](https://docs.virginproxy.com/errors/#e-screenshot_failed)
- 424 [`search_failed`](https://docs.virginproxy.com/errors/#e-search_failed) [`timeout`](https://docs.virginproxy.com/errors/#e-timeout) [`target_unreachable`](https://docs.virginproxy.com/errors/#e-target_unreachable) [`connection_failed`](https://docs.virginproxy.com/errors/#e-connection_failed) [`tls_error`](https://docs.virginproxy.com/errors/#e-tls_error) [`too_many_redirects`](https://docs.virginproxy.com/errors/#e-too_many_redirects) [`request_failed`](https://docs.virginproxy.com/errors/#e-request_failed)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited) [`concurrency_limited`](https://docs.virginproxy.com/errors/#e-concurrency_limited)
- 500 [`internal_error`](https://docs.virginproxy.com/errors/#e-internal_error)
- 503 [`busy`](https://docs.virginproxy.com/errors/#e-busy) [`render_unavailable`](https://docs.virginproxy.com/errors/#e-render_unavailable) [`rotation_failed`](https://docs.virginproxy.com/errors/#e-rotation_failed) [`executor_unavailable`](https://docs.virginproxy.com/errors/#e-executor_unavailable) [`maintenance`](https://docs.virginproxy.com/errors/#e-maintenance)

[How to use it](https://docs.virginproxy.com/screenshot/)

### POST /v1/estimate

What a request may cost, without running itPermissionrequests or read

Checks a request body exactly like POST /v1/requests (or a job body with `requests`) and returns the least and the most it can cost with your plan. Runs nothing and charges nothing. Up to 120 per minute.

**Request body application/json**

- `url`stringrequiredAbsolute `http` or `https` URL, up to 8,000 characters. Credentials inside the URL are rejected.
- `method`string`GET`, `POST`, `PUT`, `PATCH`, `DELETE`, `HEAD` or `OPTIONS`. With `render` only `GET`. `"GET"` `"POST"` `"PUT"` `"PATCH"` `"DELETE"` `"HEAD"` `"OPTIONS"`
- `params`objectQuery parameters added to the URL. Values are strings, numbers, booleans or lists of them. At most 500 values.
- `browser`stringWhich browser the request looks like: `chrome`, `chrome_mac`, `chrome_android`, `edge`, `firefox`, `safari`, `safari_ios` or `none`. With `render` the default is `chrome_android`. `"chrome"` `"chrome_mac"` `"chrome_android"` `"edge"` `"firefox"` `"safari"` `"safari_ios"` `"none"`
- `locale`stringLanguage of the visitor. Sets `Accept-Language`, and the browser language when rendering.
- `headers`objectHeaders for the target, at most 100. They replace the browser's headers of the same name; an empty value leaves that header out.
- `cookies`object | list of object`{"name": "value"}` or a list of `{"name", "value", "domain"?, "path"?}`. At most 200.
- `cookie_jar`booleanOnly with `session`: remember cookies the site sets for the next requests of the session.
- `json`anyBody sent as JSON. Sets `Content-Type: application/json` unless you send your own.
- `form`objectBody sent as an HTML form (`application/x-www-form-urlencoded`).
- `body`stringBody sent exactly as given, up to 5 MB. Set your own `Content-Type`.
- `body_encoding`string`"base64"` when `body` is base64-encoded binary data. `"utf8"` `"base64"`
- `session`stringA name of your choice. Requests with the same name leave through the same IP for up to 10 minutes and share their cookies.
- `fresh_ip`booleanGet a new IP address before the request. 5 extra credits. Not with `session`.
- `ip_version`string`"4"`, `"6"` or `"auto"`. `"4"` `"6"` `"auto"`
- `follow_redirects`booleanFollow redirects. `false` returns the redirect response itself.
- `max_redirects`integer0 to 10. More redirects end with `too_many_redirects`.
- `timeout_ms`integerHow long one attempt may take, at least 1000, at most your plan's timeout (30 to 120 seconds).
- `retry`objectTry again before answering when the target refuses or fails. `{}` uses all defaults.
  - `times`integerHow many more attempts at most: 0 to 3.
  - `on`list of integer | stringStatuses 300–599 and the errors `timeout`, `connection_failed`, `target_unreachable`, `tls_error`, `text_match`, `selector_missing`. At most 20.
  - `fresh_ip`booleanA new IP before each further attempt (5 credits each).
  - `if_text`list of anyUp to 10 texts (each up to 200 characters, case ignored). An answer whose body contains one of them is tried again.
  - `if_missing`stringA CSS selector. An HTML answer in which it finds nothing is tried again.
- `render`boolean | object | "auto"Load the page in a real browser and return it after its scripts ran. 9 extra credits. `"auto"`: first without a browser, with it only when the page needs it – the browser part is charged only then.
- `render_options`objectOnly with `"render": "auto"`: the browser settings for the second try (the options of `render`, without screenshot, PDF, steps, capture).
- `format`string`raw`, `markdown`, `text` or `clean_html`. Converts an HTML answer before it is returned. `"raw"` `"markdown"` `"text"` `"clean_html"`
- `main_content`booleanKeep only the main content of the page (without navigation, header, footer, sidebars and forms) before converting.
- `format_options`objectWith `format`: `include_selector` (keep only this part), `exclude_selector` (leave this out), `images` and `links` (`false` drops them), `max_pages` (documents, 1–500, default 100).
- `redact`list of string | trueBlack out personal data in the text you get: `email`, `phone`, `iban`, `card`, `ip`; `true` for all. Counted in `redacted`.
- `auto_extract`stringRead a standard record without selectors: `product`, `article`, `job`, `review_list`, `recipe`, `event`, `organization`. Result in `auto_extracted`. `"product"` `"article"` `"job"` `"review_list"` `"recipe"` `"event"` `"organization"`
- `parse`list of string | trueStandard records `product`, `article`, `organization`, `breadcrumbs` come from the page's structured data. Read out `metadata`, `links`, `images`, `headings`, `emails`, `phones`, `tables`, `json_ld`; `true` for all. Result in `parsed`.
- `extract`objectUp to 50 named fields read from the answer with CSS, XPath or JSON paths. Result in `extracted`.
- `http_version`string`"auto"` or `"1.1"`. Only without `render`. `"auto"` `"1.1"`
- `insecure`booleanAccept invalid TLS certificates of the target.
- `max_credits`integer1 to 1,000. The request never costs more; the answer is cut to fit.
- `tag`string1 to 64 characters `A–Z a–z 0–9 _ . : / -`. Stored with the request, returned in the answer, filterable.
- `echo`anyUp to 2 KB of your own data, returned unchanged as `echo`. Useful to match results to your records.
- `cache`true | objectKeep the answer and give it again to the same request within `max_age_s` (60 to 604,800 seconds; `true` = one hour): free, at once, marked `"cached": true`. Off unless you send it.
- `track_changes`true | objectCompare with your last request of the same page: `change.status` is `new`, `same` or `changed`. `{"on": "extracted"}` compares what was read, `{"diff": true}` names the changed lines.
- `preset`stringUse the options saved under this name (`POST /v1/presets`); options you send win.

**Answer 200 OK · Estimate**

- `credits`object
  - `min`integerWhen the target answers with up to 1 MB.
  - `max`integerThe most the request may cost (size limit, browser traffic, retries with a new IP).
- `parts`object
- `factor`numberCredit factor of the target (1 for most).
- `max_response_bytes`integer
- `requests`integerOnly for a job body.
- `items`list of object
- `credits_remaining`integer
- `fits`booleanWhether the worst case fits into the credits left (otherwise the request runs with a cost cap of what is left).
- `charged`false

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_url`](https://docs.virginproxy.com/errors/#e-invalid_url) [`invalid_method`](https://docs.virginproxy.com/errors/#e-invalid_method) [`invalid_headers`](https://docs.virginproxy.com/errors/#e-invalid_headers) [`invalid_params`](https://docs.virginproxy.com/errors/#e-invalid_params) [`invalid_browser`](https://docs.virginproxy.com/errors/#e-invalid_browser) [`invalid_locale`](https://docs.virginproxy.com/errors/#e-invalid_locale) [`invalid_cookies`](https://docs.virginproxy.com/errors/#e-invalid_cookies) [`body_too_large`](https://docs.virginproxy.com/errors/#e-body_too_large) [`invalid_session`](https://docs.virginproxy.com/errors/#e-invalid_session) [`invalid_retry`](https://docs.virginproxy.com/errors/#e-invalid_retry) [`invalid_render`](https://docs.virginproxy.com/errors/#e-invalid_render) [`invalid_format`](https://docs.virginproxy.com/errors/#e-invalid_format) [`invalid_parse`](https://docs.virginproxy.com/errors/#e-invalid_parse) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_extract`](https://docs.virginproxy.com/errors/#e-invalid_extract) [`invalid_tag`](https://docs.virginproxy.com/errors/#e-invalid_tag) [`invalid_options`](https://docs.virginproxy.com/errors/#e-invalid_options) [`invalid_timeout`](https://docs.virginproxy.com/errors/#e-invalid_timeout) [`invalid_job`](https://docs.virginproxy.com/errors/#e-invalid_job) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`target_not_allowed`](https://docs.virginproxy.com/errors/#e-target_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited)

[How to use it](https://docs.virginproxy.com/billing/#estimate-api)

### GET /v1/pdf

The page as a PDF documentPermissionrequests

Loads the page in a browser and answers with a PDF of it. Costs like a rendered request: 10 credits for up to 1 MB loaded, 1 more per further MB. Images and fonts are loaded. The target's status is in `X-VP-Status`. Unknown options are refused.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `url` required | query | string | Absolute http(s) URL. |
| `wait_until` | query | string | When the page counts as loaded. One of `load`, `domcontentloaded`, `networkidle`. |
| `wait_for` | query | string | CSS selector to wait for. |
| `wait_ms` | query | integer | Extra wait at the end. 0 to 15000. |
| `scroll` | query | integer | Scroll to the bottom this many times first (loads lazy content). 0 to 20. |
| `browser` | query | string | Browser profile (default chrome, a desktop browser). One of `chrome`, `chrome_mac`, `chrome_android`, `edge`, `firefox`, `safari`, `safari_ios`, `none`. |
| `locale` | query | string | Visitor language. |
| `timezone` | query | string | IANA time zone. |
| `color_scheme` | query | string | prefers-color-scheme. One of `light`, `dark`. |
| `block` | query | string | Comma-separated resource types not to load: image, media, font, stylesheet (default none). |
| `session` | query | string | Session name. |
| `fresh_ip` | query | string | true or false (also 1 or 0) |
| `max_credits` | query | integer | Cost cap. 10 to 1000. |
| `tag` | query | string | Tag. |

**Answer 200 The PDF.**

`application/pdf`

- `X-VP-Request-Id`header
- `X-VP-Credits`header
- `X-VP-Status`header
- `X-VP-Final-URL`header

Errors

- 400 [`invalid_url`](https://docs.virginproxy.com/errors/#e-invalid_url) [`invalid_method`](https://docs.virginproxy.com/errors/#e-invalid_method) [`invalid_headers`](https://docs.virginproxy.com/errors/#e-invalid_headers) [`invalid_params`](https://docs.virginproxy.com/errors/#e-invalid_params) [`invalid_browser`](https://docs.virginproxy.com/errors/#e-invalid_browser) [`invalid_locale`](https://docs.virginproxy.com/errors/#e-invalid_locale) [`invalid_cookies`](https://docs.virginproxy.com/errors/#e-invalid_cookies) [`body_too_large`](https://docs.virginproxy.com/errors/#e-body_too_large) [`invalid_session`](https://docs.virginproxy.com/errors/#e-invalid_session) [`invalid_retry`](https://docs.virginproxy.com/errors/#e-invalid_retry) [`invalid_render`](https://docs.virginproxy.com/errors/#e-invalid_render) [`invalid_format`](https://docs.virginproxy.com/errors/#e-invalid_format) [`invalid_parse`](https://docs.virginproxy.com/errors/#e-invalid_parse) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_extract`](https://docs.virginproxy.com/errors/#e-invalid_extract) [`invalid_tag`](https://docs.virginproxy.com/errors/#e-invalid_tag) [`invalid_options`](https://docs.virginproxy.com/errors/#e-invalid_options) [`invalid_timeout`](https://docs.virginproxy.com/errors/#e-invalid_timeout) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 402 [`credits_exhausted`](https://docs.virginproxy.com/errors/#e-credits_exhausted) [`key_limit_reached`](https://docs.virginproxy.com/errors/#e-key_limit_reached) [`daily_limit_reached`](https://docs.virginproxy.com/errors/#e-daily_limit_reached)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`email_not_verified`](https://docs.virginproxy.com/errors/#e-email_not_verified) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`target_not_allowed`](https://docs.virginproxy.com/errors/#e-target_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 413 [`body_too_large`](https://docs.virginproxy.com/errors/#e-body_too_large-413)
- 422 [`pdf_failed`](https://docs.virginproxy.com/errors/#e-pdf_failed)
- 424 [`search_failed`](https://docs.virginproxy.com/errors/#e-search_failed) [`timeout`](https://docs.virginproxy.com/errors/#e-timeout) [`target_unreachable`](https://docs.virginproxy.com/errors/#e-target_unreachable) [`connection_failed`](https://docs.virginproxy.com/errors/#e-connection_failed) [`tls_error`](https://docs.virginproxy.com/errors/#e-tls_error) [`too_many_redirects`](https://docs.virginproxy.com/errors/#e-too_many_redirects) [`request_failed`](https://docs.virginproxy.com/errors/#e-request_failed)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited) [`concurrency_limited`](https://docs.virginproxy.com/errors/#e-concurrency_limited)
- 500 [`internal_error`](https://docs.virginproxy.com/errors/#e-internal_error)
- 503 [`busy`](https://docs.virginproxy.com/errors/#e-busy) [`render_unavailable`](https://docs.virginproxy.com/errors/#e-render_unavailable) [`rotation_failed`](https://docs.virginproxy.com/errors/#e-rotation_failed) [`executor_unavailable`](https://docs.virginproxy.com/errors/#e-executor_unavailable) [`maintenance`](https://docs.virginproxy.com/errors/#e-maintenance)

[How to use it](https://docs.virginproxy.com/screenshot/#pdf)

### POST /v1/batch

A few requests in one call, answered togetherPermissionrequests

1 to your plan's batch limit (free 3, starter 10, growth 20, scale 25) requests, run at the same time up to your plan's parallel limit and answered together within about 85 seconds. Each request is an ordinary request (same checks, charges and request log); one that fails does not stop the others. Send `requests` (full request bodies) or `urls` with the options for every URL in `request`. A request that could not start in time, or would exceed the batch's `max_credits`, is skipped and not charged (`batch_item_skipped`). No Idempotency-Key: for more requests, more time or kept results use POST /v1/jobs.

**Request body application/json · BatchRequest**

- `requests`list of objectRequest bodies, as for POST /v1/requests. Either this or `urls`.[every field in the parameter reference](https://docs.virginproxy.com/reference/#parameters)
- `urls`list of stringAddresses; each is sent with the options in `request`. Either this or `requests`.
- `request`objectWith `urls`: the options for every URL, as for POST /v1/requests without `url`.
- `max_credits`integerBound for all requests of the batch together. A request that would exceed what is left is skipped (not charged).
- `tag`stringTag for requests without their own.

**Answer 200 OK · BatchResponse**

- `requests`integer
- `succeeded`integer
- `failed`integer
- `skipped`integer
- `items`list of objectOne entry per request, in the order sent.
  - `index`integer
  - `status`string `"succeeded"` `"failed"` `"skipped"`
  - `response`object[the answer of POST /v1/requests](https://docs.virginproxy.com/endpoints/#op-createRequest)
  - `request_id`string | nullFor a failed request that was run.
  - `error`object
    - `code`string
    - `message`string
    - `charged`boolean
    - `credits`integer
- `cost`object
  - `credits`integerAll requests of the batch together.
  - `credits_used`integer
  - `credits_included`integer
- `duration_ms`integer
- `tag`string
- `test`true

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_url`](https://docs.virginproxy.com/errors/#e-invalid_url) [`invalid_method`](https://docs.virginproxy.com/errors/#e-invalid_method) [`invalid_headers`](https://docs.virginproxy.com/errors/#e-invalid_headers) [`invalid_params`](https://docs.virginproxy.com/errors/#e-invalid_params) [`invalid_browser`](https://docs.virginproxy.com/errors/#e-invalid_browser) [`invalid_locale`](https://docs.virginproxy.com/errors/#e-invalid_locale) [`invalid_cookies`](https://docs.virginproxy.com/errors/#e-invalid_cookies) [`body_too_large`](https://docs.virginproxy.com/errors/#e-body_too_large) [`invalid_session`](https://docs.virginproxy.com/errors/#e-invalid_session) [`invalid_retry`](https://docs.virginproxy.com/errors/#e-invalid_retry) [`invalid_render`](https://docs.virginproxy.com/errors/#e-invalid_render) [`invalid_format`](https://docs.virginproxy.com/errors/#e-invalid_format) [`invalid_parse`](https://docs.virginproxy.com/errors/#e-invalid_parse) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_extract`](https://docs.virginproxy.com/errors/#e-invalid_extract) [`invalid_tag`](https://docs.virginproxy.com/errors/#e-invalid_tag) [`invalid_options`](https://docs.virginproxy.com/errors/#e-invalid_options) [`invalid_timeout`](https://docs.virginproxy.com/errors/#e-invalid_timeout) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`invalid_batch`](https://docs.virginproxy.com/errors/#e-invalid_batch) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 402 [`credits_exhausted`](https://docs.virginproxy.com/errors/#e-credits_exhausted) [`key_limit_reached`](https://docs.virginproxy.com/errors/#e-key_limit_reached) [`daily_limit_reached`](https://docs.virginproxy.com/errors/#e-daily_limit_reached)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`email_not_verified`](https://docs.virginproxy.com/errors/#e-email_not_verified) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`target_not_allowed`](https://docs.virginproxy.com/errors/#e-target_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 413 [`body_too_large`](https://docs.virginproxy.com/errors/#e-body_too_large-413)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited) [`concurrency_limited`](https://docs.virginproxy.com/errors/#e-concurrency_limited)
- 503 [`busy`](https://docs.virginproxy.com/errors/#e-busy) [`render_unavailable`](https://docs.virginproxy.com/errors/#e-render_unavailable) [`rotation_failed`](https://docs.virginproxy.com/errors/#e-rotation_failed) [`executor_unavailable`](https://docs.virginproxy.com/errors/#e-executor_unavailable) [`maintenance`](https://docs.virginproxy.com/errors/#e-maintenance)

[How to use it](https://docs.virginproxy.com/jobs/#batch)

## Discovery

Find the addresses of a site.

### POST /v1/map

The addresses of a websitePermissionrequests

Reads the page's links and the site's sitemaps (from robots.txt, otherwise /sitemap.xml; sitemap indexes and .gz files included) and returns the addresses of the same site, each once. Every page and file read is an ordinary request in your log: usually 1 credit each; at most the page, robots.txt and 5 sitemap files of up to 10 credits each. `max_credits` bounds the whole call.

**Request body application/json · MapRequest**

- `url`stringrequiredA page of the site, usually its home page.
- `sitemap`stringAlso read the sitemaps, skip them, or read only them. `"include"` `"skip"` `"only"`
- `include_subdomains`boolean
- `search`stringKeep only addresses (or link texts) containing this text, case ignored.
- `limit`integer
- `render`booleanLoad the page in a browser first (10 credits or more).
- `robots`string`respect` leaves out addresses robots.txt disallows, `report` marks them with `disallowed: true`. `"ignore"` `"respect"` `"report"`
- `browser`string `"chrome"` `"chrome_mac"` `"chrome_android"` `"edge"` `"firefox"` `"safari"` `"safari_ios"` `"none"`
- `locale`string
- `session`string
- `max_credits`integerBound for all reads of this call together.
- `tag`string

**Answer 200 OK · MapResponse**

- `url`string
- `host`stringThe host after redirects.
- `links`list of object
  - `url`string
  - `text`stringLink text (page links only).
  - `source`string `"page"` `"sitemap"`
  - `disallowed`trueWith `robots: report`: robots.txt disallows it.
- `robots`objectOnly with `robots`.
  - `mode`string
  - `read`boolean
  - `stopped`string
- `total`integerAddresses found (after search), before limit.
- `truncated`boolean
- `sitemaps`object
  - `read`integer
  - `stopped`stringWhy reading sitemaps stopped early, if it did.
- `requests`list of objectEvery read of this call; each is in your request log.
  - `id`string
  - `url`string
  - `status`integer | null
  - `error`string
  - `credits`integer
- `cost`object
  - `credits`integerSum of all reads.
  - `credits_used`integer | null
  - `credits_included`integer
- `tag`string

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_url`](https://docs.virginproxy.com/errors/#e-invalid_url) [`invalid_method`](https://docs.virginproxy.com/errors/#e-invalid_method) [`invalid_headers`](https://docs.virginproxy.com/errors/#e-invalid_headers) [`invalid_params`](https://docs.virginproxy.com/errors/#e-invalid_params) [`invalid_browser`](https://docs.virginproxy.com/errors/#e-invalid_browser) [`invalid_locale`](https://docs.virginproxy.com/errors/#e-invalid_locale) [`invalid_cookies`](https://docs.virginproxy.com/errors/#e-invalid_cookies) [`body_too_large`](https://docs.virginproxy.com/errors/#e-body_too_large) [`invalid_session`](https://docs.virginproxy.com/errors/#e-invalid_session) [`invalid_retry`](https://docs.virginproxy.com/errors/#e-invalid_retry) [`invalid_render`](https://docs.virginproxy.com/errors/#e-invalid_render) [`invalid_format`](https://docs.virginproxy.com/errors/#e-invalid_format) [`invalid_parse`](https://docs.virginproxy.com/errors/#e-invalid_parse) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_extract`](https://docs.virginproxy.com/errors/#e-invalid_extract) [`invalid_tag`](https://docs.virginproxy.com/errors/#e-invalid_tag) [`invalid_options`](https://docs.virginproxy.com/errors/#e-invalid_options) [`invalid_timeout`](https://docs.virginproxy.com/errors/#e-invalid_timeout) [`invalid_map`](https://docs.virginproxy.com/errors/#e-invalid_map) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 402 [`credits_exhausted`](https://docs.virginproxy.com/errors/#e-credits_exhausted) [`key_limit_reached`](https://docs.virginproxy.com/errors/#e-key_limit_reached) [`daily_limit_reached`](https://docs.virginproxy.com/errors/#e-daily_limit_reached)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`email_not_verified`](https://docs.virginproxy.com/errors/#e-email_not_verified) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`target_not_allowed`](https://docs.virginproxy.com/errors/#e-target_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 413 [`body_too_large`](https://docs.virginproxy.com/errors/#e-body_too_large-413)
- 424 [`search_failed`](https://docs.virginproxy.com/errors/#e-search_failed) [`timeout`](https://docs.virginproxy.com/errors/#e-timeout) [`target_unreachable`](https://docs.virginproxy.com/errors/#e-target_unreachable) [`connection_failed`](https://docs.virginproxy.com/errors/#e-connection_failed) [`tls_error`](https://docs.virginproxy.com/errors/#e-tls_error) [`too_many_redirects`](https://docs.virginproxy.com/errors/#e-too_many_redirects) [`request_failed`](https://docs.virginproxy.com/errors/#e-request_failed)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited) [`concurrency_limited`](https://docs.virginproxy.com/errors/#e-concurrency_limited)
- 500 [`internal_error`](https://docs.virginproxy.com/errors/#e-internal_error)
- 503 [`busy`](https://docs.virginproxy.com/errors/#e-busy) [`render_unavailable`](https://docs.virginproxy.com/errors/#e-render_unavailable) [`rotation_failed`](https://docs.virginproxy.com/errors/#e-rotation_failed) [`executor_unavailable`](https://docs.virginproxy.com/errors/#e-executor_unavailable) [`maintenance`](https://docs.virginproxy.com/errors/#e-maintenance)

[How to use it](https://docs.virginproxy.com/map/)

### POST /v1/search

Search the web and get the results as JSONPermissionrequests

Searches DuckDuckGo and returns the results (position, title, address, snippet), and where the engine shows them ads, related searches and questions. `include_domains` and `exclude_domains` filter the results; `scrape` also fetches every result page with the options you give (for example Markdown of the main content). Each result page of the engine and each fetched result is an ordinary request in your log (usually 1 credit each); up to 5 result pages are read to reach `limit`. `max_credits` bounds the whole call.

**Request body application/json · SearchRequest**

- `query`stringrequiredThe search text; operators of the engine (quotes, site:, -word) work.
- `engine`string `"duckduckgo"`
- `limit`integer
- `language`stringLanguage of the results, e.g. `en`, `de` or `pt-BR`.
- `country`stringThe country the results are for (a search setting of the engine, not the address the request comes from).
- `time_range`stringOnly results from this period. `"day"` `"week"` `"month"` `"year"`
- `include_domains`list of string
- `exclude_domains`list of string
- `scrape`boolean | object`true`: fetch every result as Markdown of its main content; an object: with these options.
- `max_credits`integerBound for the whole call, fetched results included.
- `tag`string

**Answer 200 OK · SearchResponse**

- `query`string
- `engine`string `"duckduckgo"`
- `results`list of object
  - `position`integer
  - `title`string
  - `url`string
  - `display_url`stringThe address as the engine shows it, when it does.
  - `snippet`string
  - `date`string
  - `page`objectOnly with `scrape`: the fetched page (`body`, `body_encoding`, `format`, `tokens`, `status`, `final_url`, `extracted`, `parsed`, `auto_extracted`, `credits`), or `error` with its code.
- `ads`list of object
- `related`list of string
- `questions`list of string
- `credits`integerSum of all requests of this call.
- `requests`list of stringIds of every request of this call; each is in your request log.
- `tag`string
- `test`true

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 402 See the errors page.
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 413 See the errors page.
- 424 [`search_failed`](https://docs.virginproxy.com/errors/#e-search_failed) [`timeout`](https://docs.virginproxy.com/errors/#e-timeout) [`target_unreachable`](https://docs.virginproxy.com/errors/#e-target_unreachable) [`connection_failed`](https://docs.virginproxy.com/errors/#e-connection_failed) [`tls_error`](https://docs.virginproxy.com/errors/#e-tls_error) [`too_many_redirects`](https://docs.virginproxy.com/errors/#e-too_many_redirects) [`request_failed`](https://docs.virginproxy.com/errors/#e-request_failed)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited)
- 500 [`internal_error`](https://docs.virginproxy.com/errors/#e-internal_error)
- 503 [`maintenance`](https://docs.virginproxy.com/errors/#e-maintenance)

## Jobs

Many requests and crawls in the background.

### POST /v1/crawl

Crawl a website in the backgroundPermissionrequests

Starts a job that reads the start page and follows links of the same site, breadth first, up to `max_depth` links away and `max_pages` pages (your plan's crawl limit: 10, 100, 500, 1000). Each page is an ordinary request with the options in `request`. Progress, results (24 hours), cancel and webhooks work as for every job.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `Idempotency-Key` | header | string | The same key within 24 hours returns the same crawl instead of starting a second one. |

**Request body application/json · CrawlRequest**

- `url`stringrequiredThe start page.
- `max_pages`integerPages at most; up to your plan's crawl limit (free 10, starter 100, growth 500, scale 1000). Default 100 or the plan limit if lower.
- `only_changed`booleanOnly pages that changed since they were last read (best in a schedule): unchanged pages are left out of results, exports, the stream, deliveries and item webhooks. Each page is still read and charged.
- `delivery`objectAs for jobs: write the results into your own storage when the crawl ends.
- `max_depth`integerLinks away from the start page (0 = only the start page).
- `include_paths`list of stringFollow only paths matching one of these patterns (`*` = any characters except `/`, `` = anything), e.g. `/blog/`.
- `exclude_paths`list of stringNever follow paths matching one of these patterns.
- `include_subdomains`booleanAlso follow links to subdomains of the start host.
- `ignore_query`booleanTreat addresses that differ only in the query string as the same page.
- `request`objectOptions for every page, as for POST /v1/requests, without url, method and body. Links are read for the crawl in any case; they are in `parsed.links` only if you ask for them.
- `webhook`object`{"url", "events"}`: where to send the results.
  - `url`stringA public `https://` address.
  - `events`list of string`item` (each finished request), `item.succeeded`, `item.failed`, `item.changed` (only pages that changed, with `track_changes`) and/or `done` (the whole job).
  - `include_body`boolean`false`: item events carry the figures and `id`, not the page – fetch it from the results.
  - `metadata`objectUp to 1 KB of your own data, sent back in every webhook call of the job.
- `tag`string
- `max_credits`integerCost cap of the whole crawl: once it has used that many credits, pages not started end as `job_budget_reached`.
- `robots`string`respect`: pages the site's robots.txt disallows are not read (reading robots.txt costs 1 credit). `"ignore"` `"respect"`

**Answer 200 Replayed: the crawl started earlier with the same Idempotency-Key. · Job**

- `id`string
- `status`string `"queued"` `"running"` `"done"` `"canceled"` `"expired"`
- `total`integerRequests in the job (a crawl grows as it finds pages).
- `succeeded`integer
- `failed`integer
- `canceled`integer
- `pending`integer
- `credits`integer
- `tag`string | null
- `webhook`object | null
  - `url`string
  - `events`list of string
  - `include_body`false
  - `metadata`object
- `budget`objectOnly with `max_credits`: the cap, what was used and what is left.
  - `max_credits`integer
  - `spent`integer
  - `left`integer
- `created_at`string
- `started_at`string | null
- `finished_at`string | null
- `expires_at`string | nullResults are deleted 24 hours after the end.
- `last_progress_at`string | null
- `kind`stringOnly for crawls. `"crawl"`
- `delivery`objectOnly with `delivery`: where the results go and how it went.
  - `destination`string
  - `format`string `"ndjson"` `"json"` `"csv"`
  - `path`string
  - `status`string `"pending"` `"delivered"` `"failed"`
  - `key`string
  - `bytes`integer
  - `parts`integerResults above 90 MB are written as numbered parts.
  - `keys`list of string
  - `error`string
- `crawl`objectOnly for crawls: the settings.
  - `url`string
  - `max_pages`integer
  - `max_depth`integer
  - `include_paths`list of string
  - `exclude_paths`list of string
  - `include_subdomains`boolean
  - `ignore_query`boolean

**Answer 202 The crawl was accepted. · Job**

- `id`string
- `status`string `"queued"` `"running"` `"done"` `"canceled"` `"expired"`
- `total`integerRequests in the job (a crawl grows as it finds pages).
- `succeeded`integer
- `failed`integer
- `canceled`integer
- `pending`integer
- `credits`integer
- `tag`string | null
- `webhook`object | null
  - `url`string
  - `events`list of string
  - `include_body`false
  - `metadata`object
- `budget`objectOnly with `max_credits`: the cap, what was used and what is left.
  - `max_credits`integer
  - `spent`integer
  - `left`integer
- `created_at`string
- `started_at`string | null
- `finished_at`string | null
- `expires_at`string | nullResults are deleted 24 hours after the end.
- `last_progress_at`string | null
- `kind`stringOnly for crawls. `"crawl"`
- `delivery`objectOnly with `delivery`: where the results go and how it went.
  - `destination`string
  - `format`string `"ndjson"` `"json"` `"csv"`
  - `path`string
  - `status`string `"pending"` `"delivered"` `"failed"`
  - `key`string
  - `bytes`integer
  - `parts`integerResults above 90 MB are written as numbered parts.
  - `keys`list of string
  - `error`string
- `crawl`objectOnly for crawls: the settings.
  - `url`string
  - `max_pages`integer
  - `max_depth`integer
  - `include_paths`list of string
  - `exclude_paths`list of string
  - `include_subdomains`boolean
  - `ignore_query`boolean

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_tag`](https://docs.virginproxy.com/errors/#e-invalid_tag) [`invalid_idempotency_key`](https://docs.virginproxy.com/errors/#e-invalid_idempotency_key) [`invalid_crawl`](https://docs.virginproxy.com/errors/#e-invalid_crawl) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`invalid_webhook`](https://docs.virginproxy.com/errors/#e-invalid_webhook) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited) [`too_many_jobs`](https://docs.virginproxy.com/errors/#e-too_many_jobs)

[How to use it](https://docs.virginproxy.com/crawl/)

### GET /v1/jobs

Your jobs, newest firstPermissionrequests or read

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `limit` | query | integer | Jobs per page. Default `20`. 1 to 100. |
| `before` | query | string | Continue after this job id. |

**Answer 200 OK**

- `items`list of object
  - `id`string
  - `status`string `"queued"` `"running"` `"done"` `"canceled"` `"expired"`
  - `total`integerRequests in the job (a crawl grows as it finds pages).
  - `succeeded`integer
  - `failed`integer
  - `canceled`integer
  - `pending`integer
  - `credits`integer
  - `tag`string | null
  - `webhook`object | null
    - `url`string
    - `events`list of string
    - `include_body`false
    - `metadata`object
  - `budget`objectOnly with `max_credits`: the cap, what was used and what is left.
    - `max_credits`integer
    - `spent`integer
    - `left`integer
  - `created_at`string
  - `started_at`string | null
  - `finished_at`string | null
  - `expires_at`string | nullResults are deleted 24 hours after the end.
  - `last_progress_at`string | null
  - `kind`stringOnly for crawls. `"crawl"`
  - `delivery`objectOnly with `delivery`: where the results go and how it went.
    - `destination`string
    - `format`string `"ndjson"` `"json"` `"csv"`
    - `path`string
    - `status`string `"pending"` `"delivered"` `"failed"`
    - `key`string
    - `bytes`integer
    - `parts`integerResults above 90 MB are written as numbered parts.
    - `keys`list of string
    - `error`string
  - `crawl`objectOnly for crawls: the settings.
    - `url`string
    - `max_pages`integer
    - `max_depth`integer
    - `include_paths`list of string
    - `exclude_paths`list of string
    - `include_subdomains`boolean
    - `ignore_query`boolean
- `next`string | null

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)

[How to use it](https://docs.virginproxy.com/jobs/#list)

### POST /v1/jobs

Many requests in the backgroundPermissionrequests

1 to your plan's limit (10, 1,000, 10,000, 50,000) requests per job, at most 20 open jobs. Results are kept 24 hours after the job ended. A long list can be sent as NDJSON (`Content-Type: application/x-ndjson`, up to 32 MB): one request per line, and an optional first line `{"job": {…}}` with the job's own options (webhook, tag, max_credits, delivery).

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `Idempotency-Key` | header | string | The same key within 24 hours returns the same job instead of creating a second one. |

**Request body application/json · JobRequest**

- `requests`list of objectThe requests of the job: 1 to your plan's limit (10, 100, 500 or 1,000). Each is a request body as for `POST /v1/requests`.[every field in the parameter reference](https://docs.virginproxy.com/reference/#parameters)
- `request`objectA single request instead of `requests`.[every field in the parameter reference](https://docs.virginproxy.com/reference/#parameters)
- `urls`list of anyAddresses instead of `requests`; each is sent with the options in `defaults`.
- `defaults`objectWith `urls`: the options for every address (as for `POST /v1/requests`, without `url`).
- `max_credits`integerCost cap of the whole job: once it used that many credits, requests not started end as `job_budget_reached`.
- `webhook`object`{"url", "events"}`: where to send the results.
  - `url`stringA public `https://` address.
  - `events`list of string`item` (each finished request), `item.succeeded`, `item.failed`, `item.changed` (only pages that changed, with `track_changes`) and/or `done` (the whole job).
  - `include_body`boolean`false`: item events carry the figures and `id`, not the page – fetch it from the results.
  - `metadata`objectUp to 1 KB of your own data, sent back in every webhook call of the job.
- `delivery`objectWrite the results into your own storage when the job ends: `{"destination": "dst_…", "format": "ndjson"|"json"|"csv", "path": "{date}/{job_id}.ndjson"}`.
- `tag`stringTag for the job; requests without their own tag get it.

**Answer 200 Replayed: the job created earlier with the same Idempotency-Key. · Job**

- `id`string
- `status`string `"queued"` `"running"` `"done"` `"canceled"` `"expired"`
- `total`integerRequests in the job (a crawl grows as it finds pages).
- `succeeded`integer
- `failed`integer
- `canceled`integer
- `pending`integer
- `credits`integer
- `tag`string | null
- `webhook`object | null
  - `url`string
  - `events`list of string
  - `include_body`false
  - `metadata`object
- `budget`objectOnly with `max_credits`: the cap, what was used and what is left.
  - `max_credits`integer
  - `spent`integer
  - `left`integer
- `created_at`string
- `started_at`string | null
- `finished_at`string | null
- `expires_at`string | nullResults are deleted 24 hours after the end.
- `last_progress_at`string | null
- `kind`stringOnly for crawls. `"crawl"`
- `delivery`objectOnly with `delivery`: where the results go and how it went.
  - `destination`string
  - `format`string `"ndjson"` `"json"` `"csv"`
  - `path`string
  - `status`string `"pending"` `"delivered"` `"failed"`
  - `key`string
  - `bytes`integer
  - `parts`integerResults above 90 MB are written as numbered parts.
  - `keys`list of string
  - `error`string
- `crawl`objectOnly for crawls: the settings.
  - `url`string
  - `max_pages`integer
  - `max_depth`integer
  - `include_paths`list of string
  - `exclude_paths`list of string
  - `include_subdomains`boolean
  - `ignore_query`boolean

**Answer 202 The job was accepted. · Job**

- `id`string
- `status`string `"queued"` `"running"` `"done"` `"canceled"` `"expired"`
- `total`integerRequests in the job (a crawl grows as it finds pages).
- `succeeded`integer
- `failed`integer
- `canceled`integer
- `pending`integer
- `credits`integer
- `tag`string | null
- `webhook`object | null
  - `url`string
  - `events`list of string
  - `include_body`false
  - `metadata`object
- `budget`objectOnly with `max_credits`: the cap, what was used and what is left.
  - `max_credits`integer
  - `spent`integer
  - `left`integer
- `created_at`string
- `started_at`string | null
- `finished_at`string | null
- `expires_at`string | nullResults are deleted 24 hours after the end.
- `last_progress_at`string | null
- `kind`stringOnly for crawls. `"crawl"`
- `delivery`objectOnly with `delivery`: where the results go and how it went.
  - `destination`string
  - `format`string `"ndjson"` `"json"` `"csv"`
  - `path`string
  - `status`string `"pending"` `"delivered"` `"failed"`
  - `key`string
  - `bytes`integer
  - `parts`integerResults above 90 MB are written as numbered parts.
  - `keys`list of string
  - `error`string
- `crawl`objectOnly for crawls: the settings.
  - `url`string
  - `max_pages`integer
  - `max_depth`integer
  - `include_paths`list of string
  - `exclude_paths`list of string
  - `include_subdomains`boolean
  - `ignore_query`boolean

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_url`](https://docs.virginproxy.com/errors/#e-invalid_url) [`invalid_method`](https://docs.virginproxy.com/errors/#e-invalid_method) [`invalid_headers`](https://docs.virginproxy.com/errors/#e-invalid_headers) [`invalid_params`](https://docs.virginproxy.com/errors/#e-invalid_params) [`invalid_browser`](https://docs.virginproxy.com/errors/#e-invalid_browser) [`invalid_locale`](https://docs.virginproxy.com/errors/#e-invalid_locale) [`invalid_cookies`](https://docs.virginproxy.com/errors/#e-invalid_cookies) [`body_too_large`](https://docs.virginproxy.com/errors/#e-body_too_large) [`invalid_session`](https://docs.virginproxy.com/errors/#e-invalid_session) [`invalid_retry`](https://docs.virginproxy.com/errors/#e-invalid_retry) [`invalid_render`](https://docs.virginproxy.com/errors/#e-invalid_render) [`invalid_format`](https://docs.virginproxy.com/errors/#e-invalid_format) [`invalid_parse`](https://docs.virginproxy.com/errors/#e-invalid_parse) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_extract`](https://docs.virginproxy.com/errors/#e-invalid_extract) [`invalid_tag`](https://docs.virginproxy.com/errors/#e-invalid_tag) [`invalid_options`](https://docs.virginproxy.com/errors/#e-invalid_options) [`invalid_timeout`](https://docs.virginproxy.com/errors/#e-invalid_timeout) [`invalid_idempotency_key`](https://docs.virginproxy.com/errors/#e-invalid_idempotency_key) [`invalid_job`](https://docs.virginproxy.com/errors/#e-invalid_job) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`invalid_webhook`](https://docs.virginproxy.com/errors/#e-invalid_webhook) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited) [`too_many_jobs`](https://docs.virginproxy.com/errors/#e-too_many_jobs)

[How to use it](https://docs.virginproxy.com/jobs/#create)

### GET /v1/jobs/{id}

Progress of a jobPermissionrequests or read

With `?wait=1…30` the answer waits until the job moves on (an item finishes, the status changes) or the seconds pass – instead of polling every second. Up to 5 waiting calls per account.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The job id. |
| `wait` | query | integer | Wait up to this many seconds for a change. 1 to 30. |

**Answer 200 OK · Job**

- `id`string
- `status`string `"queued"` `"running"` `"done"` `"canceled"` `"expired"`
- `total`integerRequests in the job (a crawl grows as it finds pages).
- `succeeded`integer
- `failed`integer
- `canceled`integer
- `pending`integer
- `credits`integer
- `tag`string | null
- `webhook`object | null
  - `url`string
  - `events`list of string
  - `include_body`false
  - `metadata`object
- `budget`objectOnly with `max_credits`: the cap, what was used and what is left.
  - `max_credits`integer
  - `spent`integer
  - `left`integer
- `created_at`string
- `started_at`string | null
- `finished_at`string | null
- `expires_at`string | nullResults are deleted 24 hours after the end.
- `last_progress_at`string | null
- `kind`stringOnly for crawls. `"crawl"`
- `delivery`objectOnly with `delivery`: where the results go and how it went.
  - `destination`string
  - `format`string `"ndjson"` `"json"` `"csv"`
  - `path`string
  - `status`string `"pending"` `"delivered"` `"failed"`
  - `key`string
  - `bytes`integer
  - `parts`integerResults above 90 MB are written as numbered parts.
  - `keys`list of string
  - `error`string
- `crawl`objectOnly for crawls: the settings.
  - `url`string
  - `max_pages`integer
  - `max_depth`integer
  - `include_paths`list of string
  - `exclude_paths`list of string
  - `include_subdomains`boolean
  - `ignore_query`boolean

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`job_expired`](https://docs.virginproxy.com/errors/#e-job_expired) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)

[How to use it](https://docs.virginproxy.com/jobs/#status)

### DELETE /v1/jobs/{id}

Cancel a jobPermissionrequests

Requests that have not started are canceled (not charged); running ones finish.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The job id. |

**Answer 200 OK · Job**

- `id`string
- `status`string `"queued"` `"running"` `"done"` `"canceled"` `"expired"`
- `total`integerRequests in the job (a crawl grows as it finds pages).
- `succeeded`integer
- `failed`integer
- `canceled`integer
- `pending`integer
- `credits`integer
- `tag`string | null
- `webhook`object | null
  - `url`string
  - `events`list of string
  - `include_body`false
  - `metadata`object
- `budget`objectOnly with `max_credits`: the cap, what was used and what is left.
  - `max_credits`integer
  - `spent`integer
  - `left`integer
- `created_at`string
- `started_at`string | null
- `finished_at`string | null
- `expires_at`string | nullResults are deleted 24 hours after the end.
- `last_progress_at`string | null
- `kind`stringOnly for crawls. `"crawl"`
- `delivery`objectOnly with `delivery`: where the results go and how it went.
  - `destination`string
  - `format`string `"ndjson"` `"json"` `"csv"`
  - `path`string
  - `status`string `"pending"` `"delivered"` `"failed"`
  - `key`string
  - `bytes`integer
  - `parts`integerResults above 90 MB are written as numbered parts.
  - `keys`list of string
  - `error`string
- `crawl`objectOnly for crawls: the settings.
  - `url`string
  - `max_pages`integer
  - `max_depth`integer
  - `include_paths`list of string
  - `exclude_paths`list of string
  - `include_subdomains`boolean
  - `ignore_query`boolean

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`job_expired`](https://docs.virginproxy.com/errors/#e-job_expired) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)

[How to use it](https://docs.virginproxy.com/jobs/#cancel)

### GET /v1/jobs/{id}/results

Results of a jobPermissionrequests or read

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The job id. |
| `offset` | query | integer | First index. Default `0`. 0 to …. |
| `limit` | query | integer | Items per page. Default `100`. 1 to 100. |
| `status` | query | string | Only items with this status. One of `queued`, `running`, `succeeded`, `failed`, `canceled`. |

**Answer 200 OK · JobResults**

- `job`object
  - `id`string
  - `status`string `"queued"` `"running"` `"done"` `"canceled"` `"expired"`
  - `total`integerRequests in the job (a crawl grows as it finds pages).
  - `succeeded`integer
  - `failed`integer
  - `canceled`integer
  - `pending`integer
  - `credits`integer
  - `tag`string | null
  - `webhook`object | null
    - `url`string
    - `events`list of string
    - `include_body`false
    - `metadata`object
  - `budget`objectOnly with `max_credits`: the cap, what was used and what is left.
    - `max_credits`integer
    - `spent`integer
    - `left`integer
  - `created_at`string
  - `started_at`string | null
  - `finished_at`string | null
  - `expires_at`string | nullResults are deleted 24 hours after the end.
  - `last_progress_at`string | null
  - `kind`stringOnly for crawls. `"crawl"`
  - `delivery`objectOnly with `delivery`: where the results go and how it went.
    - `destination`string
    - `format`string `"ndjson"` `"json"` `"csv"`
    - `path`string
    - `status`string `"pending"` `"delivered"` `"failed"`
    - `key`string
    - `bytes`integer
    - `parts`integerResults above 90 MB are written as numbered parts.
    - `keys`list of string
    - `error`string
  - `crawl`objectOnly for crawls: the settings.
    - `url`string
    - `max_pages`integer
    - `max_depth`integer
    - `include_paths`list of string
    - `exclude_paths`list of string
    - `include_subdomains`boolean
    - `ignore_query`boolean
- `items`list of object
  - `index`integer
  - `status`string
  - `url`string | null
  - `depth`integerOnly for crawls: links away from the start page.
  - `request_id`string | null
  - `credits`integer
  - `finished_at`string | null
  - `response`object[the answer of POST /v1/requests](https://docs.virginproxy.com/endpoints/#op-createRequest)
  - `error`object
    - `code`string
    - `message`string
- `next_offset`integer | null

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`job_expired`](https://docs.virginproxy.com/errors/#e-job_expired) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)

[How to use it](https://docs.virginproxy.com/jobs/#results)

### GET /v1/jobs/{id}/stream

Finished items as they come (NDJSON)Permissionrequests or read

Keeps the connection open and sends one line per finished item while the job runs – `{"type": "item", "index", "status", "response" | "error", …}` – starting with `{"type": "start", "job"}` and ending with `{"type": "end", "job"}`. A `{"type": "ping"}` line comes every 25 seconds without news. After 15 minutes a `{"type": "reconnect", "after"}` line ends the call: call again with `?after=` that value. Crawls with `only_changed` leave out unchanged pages.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The job id. |
| `after` | query | integer | Only items after this index (from a `reconnect` line or your last item). |
| `include_body` | query | string | Include page bodies, screenshots and PDFs (default true). One of `true`, `false`, `1`, `0`. |

**Answer 200 The stream.**

`application/x-ndjson`

Errors

- 400 [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`job_expired`](https://docs.virginproxy.com/errors/#e-job_expired) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)

### GET /v1/jobs/{id}/export

All results of a job as one downloadPermissionrequests or read

The results streamed as NDJSON (one item per line, as in GET /v1/jobs/{id}/results), CSV (one row per item; `extracted` and `parsed` as JSON text) or JSON (`{"job": …, "items": [ … ]}`). Works while the job runs (what has finished so far) and up to 24 hours after it ended.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The job id. |
| `format` | query | string | File format. One of `ndjson`, `csv`, `json`. Default `"ndjson"`. |
| `status` | query | string | Only items with this status. One of `queued`, `running`, `succeeded`, `failed`, `canceled`. |
| `include_body` | query | string | Include page bodies, screenshots and PDFs (default true for ndjson and json, false for csv). One of `true`, `false`, `1`, `0`. |

**Answer 200 The file (Content-Disposition: attachment). · JobResults**

- `job`object
  - `id`string
  - `status`string `"queued"` `"running"` `"done"` `"canceled"` `"expired"`
  - `total`integerRequests in the job (a crawl grows as it finds pages).
  - `succeeded`integer
  - `failed`integer
  - `canceled`integer
  - `pending`integer
  - `credits`integer
  - `tag`string | null
  - `webhook`object | null
    - `url`string
    - `events`list of string
    - `include_body`false
    - `metadata`object
  - `budget`objectOnly with `max_credits`: the cap, what was used and what is left.
    - `max_credits`integer
    - `spent`integer
    - `left`integer
  - `created_at`string
  - `started_at`string | null
  - `finished_at`string | null
  - `expires_at`string | nullResults are deleted 24 hours after the end.
  - `last_progress_at`string | null
  - `kind`stringOnly for crawls. `"crawl"`
  - `delivery`objectOnly with `delivery`: where the results go and how it went.
    - `destination`string
    - `format`string `"ndjson"` `"json"` `"csv"`
    - `path`string
    - `status`string `"pending"` `"delivered"` `"failed"`
    - `key`string
    - `bytes`integer
    - `parts`integerResults above 90 MB are written as numbered parts.
    - `keys`list of string
    - `error`string
  - `crawl`objectOnly for crawls: the settings.
    - `url`string
    - `max_pages`integer
    - `max_depth`integer
    - `include_paths`list of string
    - `exclude_paths`list of string
    - `include_subdomains`boolean
    - `ignore_query`boolean
- `items`list of object
  - `index`integer
  - `status`string
  - `url`string | null
  - `depth`integerOnly for crawls: links away from the start page.
  - `request_id`string | null
  - `credits`integer
  - `finished_at`string | null
  - `response`object[the answer of POST /v1/requests](https://docs.virginproxy.com/endpoints/#op-createRequest)
  - `error`object
    - `code`string
    - `message`string
- `next_offset`integer | null

Also as `application/x-ndjson`, `text/csv`.

Errors

- 400 [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`job_expired`](https://docs.virginproxy.com/errors/#e-job_expired) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)

[How to use it](https://docs.virginproxy.com/jobs/#export)

### POST /v1/jobs/{id}/retry

Send the failed requests of a job againPermissionrequests

Creates a new job from the failed requests of this one, exactly as they were sent, with the same webhook and tag. Requests that succeeded are not sent again.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The job id. |

**Answer 202 The new job was accepted. · Job**

- `id`string
- `status`string `"queued"` `"running"` `"done"` `"canceled"` `"expired"`
- `total`integerRequests in the job (a crawl grows as it finds pages).
- `succeeded`integer
- `failed`integer
- `canceled`integer
- `pending`integer
- `credits`integer
- `tag`string | null
- `webhook`object | null
  - `url`string
  - `events`list of string
  - `include_body`false
  - `metadata`object
- `budget`objectOnly with `max_credits`: the cap, what was used and what is left.
  - `max_credits`integer
  - `spent`integer
  - `left`integer
- `created_at`string
- `started_at`string | null
- `finished_at`string | null
- `expires_at`string | nullResults are deleted 24 hours after the end.
- `last_progress_at`string | null
- `kind`stringOnly for crawls. `"crawl"`
- `delivery`objectOnly with `delivery`: where the results go and how it went.
  - `destination`string
  - `format`string `"ndjson"` `"json"` `"csv"`
  - `path`string
  - `status`string `"pending"` `"delivered"` `"failed"`
  - `key`string
  - `bytes`integer
  - `parts`integerResults above 90 MB are written as numbered parts.
  - `keys`list of string
  - `error`string
- `crawl`objectOnly for crawls: the settings.
  - `url`string
  - `max_pages`integer
  - `max_depth`integer
  - `include_paths`list of string
  - `exclude_paths`list of string
  - `include_subdomains`boolean
  - `ignore_query`boolean

Errors

- 400 [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`job_expired`](https://docs.virginproxy.com/errors/#e-job_expired) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)
- 409 [`nothing_to_retry`](https://docs.virginproxy.com/errors/#e-nothing_to_retry) [`too_many_schedules`](https://docs.virginproxy.com/errors/#e-too_many_schedules) [`too_many_destinations`](https://docs.virginproxy.com/errors/#e-too_many_destinations) [`preset_exists`](https://docs.virginproxy.com/errors/#e-preset_exists) [`too_many_presets`](https://docs.virginproxy.com/errors/#e-too_many_presets)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited) [`too_many_jobs`](https://docs.virginproxy.com/errors/#e-too_many_jobs)

[How to use it](https://docs.virginproxy.com/jobs/#retry)

## Account

Credits, limits and your request log.

### GET /v1/requests

Your recent requestsPermissionread

Newest first, 1 to 100 per page; `next` continues the list as `before`.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `limit` | query | integer | Records per page. Default `50`. 1 to 100. |
| `result` | query | string | Only answers below 400, only answers of 400 and above, or only requests without an answer. One of `ok`, `http_error`, `failed`. |
| `since` | query | string | Only this recent. One of `24h`, `7d`, `30d`, `90d`. |
| `tag` | query | string | Only requests with this tag. |
| `before` | query | string | Continue after this request id (`next` of the previous page). |
| `host` | query | string | Only targets whose host contains this text. |
| `kind` | query | string | Only requests of this kind (page, render, screenshot, pdf, batch, job, crawl, map, mcp). One of `page`, `render`, `screenshot`, `pdf`, `batch`, `job`, `crawl`, `map`, `mcp`, `search`. |
| `key` | query | string | Only requests of this key (its id). |
| `from` | query | string | From this time on (ISO 8601). |
| `to` | query | string | Before this time (ISO 8601). |
| `status_class` | query | string | Only answers of the target with a status in this class. One of `2xx`, `3xx`, `4xx`, `5xx`. |
| `status` | query | integer | Only answers with exactly this status. 100 to 599. |
| `error` | query | string | Only failed requests with this error code (e.g. timeout). |
| `min_ms` | query | integer | Only requests that took at least this long. 0 to …. |
| `fresh_ip` | query | boolean | Only requests with (true) or without (false) a new IP. |
| `charged` | query | boolean | Only charged (true) or free (false) requests. |

**Answer 200 OK**

- `items`list of object
  - `id`string
  - `created_at`string
  - `method`string
  - `target_host`string
  - `ok`booleanfalse when the target never answered.
  - `status`integer | null
  - `error`string | null
  - `exit`object
    - `ip`string | null
    - `country`string
  - `bytes`object
    - `up`integer
    - `down`integer
  - `duration_ms`integer | null
  - `cost`object
    - `credits`integer
    - `parts`objectOf the credits: the browser part, the new-IP part and the AI part.
  - `fresh_ip`boolean
  - `tag`string | null
  - `kind`string | null `"page"` `"render"` `"screenshot"` `"pdf"` `"batch"` `"job"` `"crawl"` `"map"` `"mcp"` `"search"` `null`
  - `key_id`string | nullThe key that sent it.
- `next`string | null

Errors

- 400 [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_tag`](https://docs.virginproxy.com/errors/#e-invalid_tag) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)

[How to use it](https://docs.virginproxy.com/account/#list)

### GET /v1/requests/{id}

One request recordPermissionread

Figures of one of your requests (not its content).

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The request id. |

**Answer 200 OK · RequestRecord**

- `id`string
- `created_at`string
- `method`string
- `target_host`string
- `ok`booleanfalse when the target never answered.
- `status`integer | null
- `error`string | null
- `exit`object
  - `ip`string | null
  - `country`string
- `bytes`object
  - `up`integer
  - `down`integer
- `duration_ms`integer | null
- `cost`object
  - `credits`integer
  - `parts`objectOf the credits: the browser part, the new-IP part and the AI part.
    - `render`integer
    - `fresh_ip`integer
    - `ai`integer
- `fresh_ip`boolean
- `tag`string | null
- `kind`string | null `"page"` `"render"` `"screenshot"` `"pdf"` `"batch"` `"job"` `"crawl"` `"map"` `"mcp"` `"search"` `null`
- `key_id`string | nullThe key that sent it.

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)

[How to use it](https://docs.virginproxy.com/account/#request)

### GET /v1/requests/{id}/answer

The kept answer of a requestPermissionread

The answer itself, when it is kept: requests sent with an `Idempotency-Key` (24 hours) and answers in the cache (`cache`, up to their age). Free; nothing runs again. Otherwise 404 `answer_not_kept`.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The request id. |

**Answer 200 OK**

- `request_id`string
- `http_status`integer
- `created_at`string
- `expires_at`string
- `answer`object[the answer of POST /v1/requests](https://docs.virginproxy.com/endpoints/#op-createRequest)

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)

[How to use it](https://docs.virginproxy.com/automation/#answers)

### GET /v1/limits

What you may still do right nowPermissionrequests or read

Parallel requests and the rate of your plan with their current use, the daily credit cap and the calling key's limits – for clients that pace themselves instead of running into 429 or 402. Free.

**Answer 200 OK · Limits**

- `concurrency`object
  - `limit`integer
  - `in_use`integer
  - `peak_today`integer
- `rate`object
  - `limit`integerRequests per second.
  - `now`number
  - `avg_5s`number
  - `peak_today`number
- `daily_cap`object | nullOnly with a daily cap set.
  - `cap`integer
  - `used`integer
  - `left`integer
  - `resets_at`string
- `key`object | null
  - `id`string
  - `credit_limit`integer | null
  - `daily_limit`integer | null
  - `daily_used`integer
  - `daily_left`integer | null
- `test_mode`true

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)

[How to use it](https://docs.virginproxy.com/automation/#limits)

### PATCH /v1/account/settings

Daily cap, credit alerts, alert webhookPermissionmanage

Needs a key with the `manage` scope and without its own credit limit. Every change is in the audit log.

**Request body application/json · AccountSettings**

- `daily_cap`integer | nullCredits per UTC day for the whole account, or null for none.
- `alert_thresholds`list of integer | nullPercentages of the credits at which you are told (null: 80 and 100).
- `alert_hook_url`string | nullAn https address of yours for account alerts, or null.
- `alert_hook_slack`booleanSend alerts in Slack's message format.

**Answer 200 OK · AccountSettings**

- `daily_cap`integer | nullCredits per UTC day for the whole account, or null for none.
- `alert_thresholds`list of integer | nullPercentages of the credits at which you are told (null: 80 and 100).
- `alert_hook_url`string | nullAn https address of yours for account alerts, or null.
- `alert_hook_slack`booleanSend alerts in Slack's message format.

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited)

[How to use it](https://docs.virginproxy.com/automation/#limits)

### GET /v1/account

Plan, credits and limitsPermissionrequests or read

**Answer 200 OK · Account**

- `id`string
- `plan`string `"free"` `"starter"` `"growth"` `"scale"`
- `status`string
- `credits`object
  - `included`integer
  - `used`integer
  - `extra`integer
  - `remaining`integer
- `period_start`string | null
- `period_end`string | null
- `limits`object
  - `concurrency`integer
  - `requests_per_second`integer
  - `max_response_bytes`integer
  - `timeout_ms`integer
  - `priority`integer
  - `requests_per_job`integer
  - `requests_per_batch`integer
- `test_mode`trueOnly when called with a test key.

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)

[How to use it](https://docs.virginproxy.com/account/#account)

### GET /v1/usage

Usage per day (UTC)Permissionread

Days without requests are left out of `data`.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `days` | query | integer | Days back, today included. Default `30`. 1 to 90. |
| `tag` | query | string | Only requests with this tag. |

**Answer 200 OK · Usage**

- `days`integer
- `from`string
- `to`string
- `tag`string
- `data`list of object
  - `day`string
  - `requests`integer
  - `successful`integer
  - `credits`integer
  - `bytes_down`integer
  - `bytes_up`integer

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)

[How to use it](https://docs.virginproxy.com/account/#usage)

### GET /v1/usage/breakdown

Usage per target domain, key or tagPermissionread

With a time series per row. Up to 30 per minute.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `by` | query | string | Group by. One of `host`, `key`, `tag`. Default `"host"`. |
| `since` | query | string | Period. One of `24h`, `7d`, `30d`, `90d`. Default `"7d"`. |
| `sort` | query | string | Order. One of `requests`, `credits`, `failed`, `avg_ms`. Default `"requests"`. |
| `limit` | query | integer | Rows. Default `20`. 1 to 100. |
| `tag` | query | string | Only this tag. |
| `key` | query | string | Only this key (its id). |

**Answer 200 OK**

by, since, sort, bucket (hour or day), buckets, total and items with their series.

Errors

- 400 [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_tag`](https://docs.virginproxy.com/errors/#e-invalid_tag) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited)

[How to use it](https://docs.virginproxy.com/account/#breakdown)

## Keys and webhooks

Manage API keys and webhook settings from your own tools.

### GET /v1/destinations

Your storage destinationsPermissionrequests or read

**Answer 200 OK**

- `items`list of object
  - `id`string
  - `name`string
  - `type`"s3"
  - `endpoint`string | null
  - `region`string
  - `bucket`string
  - `prefix`string
  - `access_key_id`string
  - `path_style`boolean | null
  - `created_at`string
  - `last_test`object | null
    - `at`string
    - `ok`boolean
    - `error`string
- `limit`integer

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)

### POST /v1/destinations

Add your own storage (S3-compatible)Permissionmanage

A bucket of AWS S3 or any S3-compatible service (Cloudflare R2, Google Cloud Storage in interoperability mode, MinIO, Wasabi, Backblaze B2 …) that jobs, crawls and schedules can write their results to (`delivery`). The secret key is stored encrypted and never shown again. Give the key write access (PutObject) to the bucket or prefix only. Needs the `manage` scope; at most 10.

**Request body application/json · DestinationBody**

- `name`stringrequired
- `type`"s3"
- `endpoint`string | nullThe https address of the service; leave out for AWS S3.
- `region`stringCloudflare R2: `auto`.
- `bucket`stringrequired
- `prefix`stringA folder in the bucket, e.g. `virginproxy/`.
- `access_key_id`stringrequired
- `secret_access_key`stringrequired
- `path_style`booleanAddress the bucket as <endpoint>/<bucket> (default for services other than AWS) or as <bucket>.<endpoint>.

**Answer 201 Created. · Destination**

- `id`string
- `name`string
- `type`"s3"
- `endpoint`string | null
- `region`string
- `bucket`string
- `prefix`string
- `access_key_id`string
- `path_style`boolean | null
- `created_at`string
- `last_test`object | null
  - `at`string
  - `ok`boolean
  - `error`string

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 409 [`too_many_schedules`](https://docs.virginproxy.com/errors/#e-too_many_schedules) [`too_many_destinations`](https://docs.virginproxy.com/errors/#e-too_many_destinations) [`preset_exists`](https://docs.virginproxy.com/errors/#e-preset_exists) [`too_many_presets`](https://docs.virginproxy.com/errors/#e-too_many_presets)

### DELETE /v1/destinations/{id}

Delete a storage destinationPermissionmanage

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The destination id. |

**Answer 200 OK**

- `deleted`true
- `id`string

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)

### POST /v1/destinations/{id}/test

Write a test filePermissionmanage

Writes `virginproxy-test.txt` into the bucket (inside the prefix) and says whether it worked, with the storage service's own error when not. The file stays there.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The destination id. |

**Answer 200 OK**

- `ok`boolean
- `key`string
- `error`string

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)

### GET /v1/keys

Your API keysPermissionmanage

Every key that is not revoked, with its usage. Needs a live key without its own credit limit and with the manage permission. The full keys are never shown again, only their prefix.

**Answer 200 OK**

- `items`list of object
  - `id`string
  - `name`string
  - `prefix`stringThe visible start of the key, e.g. vp_live_Ab3d.
  - `mode`string `"live"` `"test"`
  - `ip_allowlist`list of string
  - `credit_limit`integer | null
  - `daily_limit`integer | nullCredits this key may use per UTC day; null = no daily limit.
  - `last_used_at`string | null
  - `created_at`string
  - `current`booleanThis is the key of the call.
  - `scopes`list of stringWhat the key may do: requests (send requests, jobs, crawls), read (account, usage, request log), manage (keys and webhooks). Keys without stored scopes have all three.
  - `expires_at`string | nullAfter this time the key no longer works (401). Set by you, or by a roll (the end of its grace period).
  - `rolled_to`string | nullThe id of the key that replaced this one in a roll.
  - `usage`object
    - `period_credits`integerCredits in the current period (what counts against credit_limit).
    - `requests_30d`integer
    - `credits_30d`integer
- `max_keys`integer
- `period_start`string | null

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited)

[How to use it](https://docs.virginproxy.com/security/#keys-api)

### POST /v1/keys

Create an API keyPermissionmanage

Creates a live or test key, optionally with a credit limit and an IP list. The full key is in this answer only. At most 20 keys per account. Needs a live key without its own credit limit and with the manage permission.

**Request body application/json · KeyCreate**

- `name`stringrequired
- `mode`stringtest: sample answers, never charged (see Test mode). `"live"` `"test"`
- `credit_limit`integer | nullCredits this key may use per period.
- `daily_limit`integer | nullCredits this key may use per UTC day (daily_limit_reached past it).
- `ip_allowlist`list of string | nullOnly these addresses may use the key.
- `scopes`list of string | nullPermissions of the new key; never more than the calling key has. Default: the calling key's own.
- `expires_at`string | nullOptional expiry date, at least 5 minutes and at most 366 days ahead.

**Answer 201 The key was created. · KeyCreated**

- `id`string
- `name`string
- `prefix`string
- `mode`string
- `key`stringThe full key. Shown only here.
- `credit_limit`integer | null
- `daily_limit`integer | null
- `ip_allowlist`list of string
- `scopes`list of stringWhat the key may do: requests (send requests, jobs, crawls), read (account, usage, request log), manage (keys and webhooks). Keys without stored scopes have all three.
- `expires_at`string | null
- `created_at`string
- `note`string

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_scopes`](https://docs.virginproxy.com/errors/#e-invalid_scopes) [`invalid_expiry`](https://docs.virginproxy.com/errors/#e-invalid_expiry) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset) [`invalid_name`](https://docs.virginproxy.com/errors/#e-invalid_name) [`invalid_ip_list`](https://docs.virginproxy.com/errors/#e-invalid_ip_list) [`invalid_limit`](https://docs.virginproxy.com/errors/#e-invalid_limit)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 409 [`too_many_schedules`](https://docs.virginproxy.com/errors/#e-too_many_schedules) [`too_many_destinations`](https://docs.virginproxy.com/errors/#e-too_many_destinations) [`too_many_keys`](https://docs.virginproxy.com/errors/#e-too_many_keys) [`preset_exists`](https://docs.virginproxy.com/errors/#e-preset_exists) [`too_many_presets`](https://docs.virginproxy.com/errors/#e-too_many_presets)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited)

[How to use it](https://docs.virginproxy.com/security/#keys-api)

### PATCH /v1/keys/{id}

Change name, credit limit, daily limit or IP list of a keyPermissionmanage

An IP list that would lock out the key you are calling with is refused (`own_key`).

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The key id (from GET /v1/keys). |

**Request body application/json · KeyUpdate**

- `name`string
- `credit_limit`integer | null
- `daily_limit`integer | null
- `ip_allowlist`list of string | null
- `scopes`list of string | nullOnly within the calling key's own permissions.
- `expires_at`string | nullnull removes the expiry date.

**Answer 200 OK · Key**

- `id`string
- `name`string
- `prefix`stringThe visible start of the key, e.g. vp_live_Ab3d.
- `mode`string `"live"` `"test"`
- `ip_allowlist`list of string
- `credit_limit`integer | null
- `daily_limit`integer | nullCredits this key may use per UTC day; null = no daily limit.
- `last_used_at`string | null
- `created_at`string
- `current`booleanThis is the key of the call.
- `scopes`list of stringWhat the key may do: requests (send requests, jobs, crawls), read (account, usage, request log), manage (keys and webhooks). Keys without stored scopes have all three.
- `expires_at`string | nullAfter this time the key no longer works (401). Set by you, or by a roll (the end of its grace period).
- `rolled_to`string | nullThe id of the key that replaced this one in a roll.
- `usage`object
  - `period_credits`integerCredits in the current period (what counts against credit_limit).
  - `requests_30d`integer
  - `credits_30d`integer

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_scopes`](https://docs.virginproxy.com/errors/#e-invalid_scopes) [`invalid_expiry`](https://docs.virginproxy.com/errors/#e-invalid_expiry) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset) [`invalid_name`](https://docs.virginproxy.com/errors/#e-invalid_name) [`invalid_ip_list`](https://docs.virginproxy.com/errors/#e-invalid_ip_list) [`invalid_limit`](https://docs.virginproxy.com/errors/#e-invalid_limit) [`nothing_to_change`](https://docs.virginproxy.com/errors/#e-nothing_to_change)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)
- 409 [`too_many_schedules`](https://docs.virginproxy.com/errors/#e-too_many_schedules) [`too_many_destinations`](https://docs.virginproxy.com/errors/#e-too_many_destinations) [`own_key`](https://docs.virginproxy.com/errors/#e-own_key) [`preset_exists`](https://docs.virginproxy.com/errors/#e-preset_exists) [`too_many_presets`](https://docs.virginproxy.com/errors/#e-too_many_presets)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited)

[How to use it](https://docs.virginproxy.com/security/#keys-api)

### DELETE /v1/keys/{id}

Revoke a keyPermissionmanage

The key stops working at once. Revoking the key you are calling with needs `?confirm=revoke_current_key`.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The key id. |
| `confirm` | query | string | Only to revoke the key of this call. One of `revoke_current_key`. |

**Answer 200 OK**

- `id`string
- `revoked`true
- `current`boolean

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)
- 409 [`too_many_schedules`](https://docs.virginproxy.com/errors/#e-too_many_schedules) [`too_many_destinations`](https://docs.virginproxy.com/errors/#e-too_many_destinations) [`own_key`](https://docs.virginproxy.com/errors/#e-own_key) [`preset_exists`](https://docs.virginproxy.com/errors/#e-preset_exists) [`too_many_presets`](https://docs.virginproxy.com/errors/#e-too_many_presets)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited)

[How to use it](https://docs.virginproxy.com/security/#keys-api)

### POST /v1/keys/{id}/roll

Roll a key: a new secret, the old one keeps working for a grace periodPermissionmanage

Creates a new key with the same name, mode, limits, IP list and permissions; the old key keeps working for `grace` (1h, 24h, 7d; default 24h) and then gives 401. The full new key is in this answer only. The new key's credit limits count from zero. Never for a key with more permissions than the calling one.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The key to roll. |

**Request body application/json**

- `grace`string `"1h"` `"24h"` `"7d"`

**Answer 201 The new key was created.**

any

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_grace`](https://docs.virginproxy.com/errors/#e-invalid_grace) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)
- 409 [`too_many_schedules`](https://docs.virginproxy.com/errors/#e-too_many_schedules) [`too_many_destinations`](https://docs.virginproxy.com/errors/#e-too_many_destinations) [`cannot_roll`](https://docs.virginproxy.com/errors/#e-cannot_roll) [`too_many_keys`](https://docs.virginproxy.com/errors/#e-too_many_keys) [`preset_exists`](https://docs.virginproxy.com/errors/#e-preset_exists) [`too_many_presets`](https://docs.virginproxy.com/errors/#e-too_many_presets)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited)

[How to use it](https://docs.virginproxy.com/security/#rotate-keys)

### GET /v1/webhooks

Webhook secret and recent deliveriesPermissionmanage

The secret that signs your webhooks and the latest deliveries with their outcome (kept 7 days; their content 72 hours after the last attempt, for redelivery). Needs a live key without its own credit limit and with the manage permission.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `limit` | query | integer | Deliveries. Default `50`. 1 to 100. |

**Answer 200 OK**

- `secret`stringwhsec_…
- `previous_until`string | nullWhile a rotation's grace period runs: until when deliveries also carry a signature with the previous secret.
- `deliveries`list of object
  - `id`string
  - `job_id`string | nullnull for an alert of the account webhook (event alert.…).
  - `event`stringjob.item, job.done, or alert.… for the account webhook for alerts.
  - `index`integer | null
  - `url`string
  - `status`string `"pending"` `"delivered"` `"failed"`
  - `attempts`integer
  - `next_attempt_at`string | null
  - `last_code`integer | null
  - `last_error`string | null
  - `last_attempt_at`string | null
  - `created_at`string
  - `delivered_at`string | null
  - `redeliverable`booleanCan be sent again (finished, and its last attempt less than 72 hours ago).
  - `redelivered_at`string | nullWhen it was last sent again on request.

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited)

[How to use it](https://docs.virginproxy.com/webhooks/#api)

### POST /v1/webhooks/secret

Make a new webhook secretPermissionmanage

Makes a new secret. Without `grace` (or with `now`) the old one stops verifying at once. With a grace period, deliveries carry two signatures until it ends – `X-VP-Signature: t=…,v1=<new>,v1=<previous>` – so receivers can switch to the new secret in their own time: accept a call when any v1 matches.

**Request body application/json**

- `grace`string `"now"` `"1h"` `"24h"` `"7d"`

**Answer 200 OK**

- `secret`string
- `previous_until`string | null
- `note`string

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_grace`](https://docs.virginproxy.com/errors/#e-invalid_grace) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited)

[How to use it](https://docs.virginproxy.com/webhooks/#rotate)

### GET /v1/webhooks/deliveries

Webhook deliveries, filtered and page by pagePermissionmanage

Newest first, from the last 7 days. Continue with `before` = the `next` of the previous page.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `status` | query | string | Only this state. One of `pending`, `delivered`, `failed`. |
| `event` | query | string | job.item, job.done, alert (every alert) or one alert.… event. |
| `job` | query | string | Only deliveries of this job. |
| `before` | query | string | Continue after this delivery. |
| `limit` | query | integer | Deliveries per page. Default `50`. 1 to 100. |

**Answer 200 OK**

- `items`list of object
  - `id`string
  - `job_id`string | nullnull for an alert of the account webhook (event alert.…).
  - `event`stringjob.item, job.done, or alert.… for the account webhook for alerts.
  - `index`integer | null
  - `url`string
  - `status`string `"pending"` `"delivered"` `"failed"`
  - `attempts`integer
  - `next_attempt_at`string | null
  - `last_code`integer | null
  - `last_error`string | null
  - `last_attempt_at`string | null
  - `created_at`string
  - `delivered_at`string | null
  - `redeliverable`booleanCan be sent again (finished, and its last attempt less than 72 hours ago).
  - `redelivered_at`string | nullWhen it was last sent again on request.
- `next`string | null
- `keep_hours`integer

Errors

- 400 [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset) [`invalid_limit`](https://docs.virginproxy.com/errors/#e-invalid_limit)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited)

[How to use it](https://docs.virginproxy.com/webhooks/#delivery-log)

### GET /v1/webhooks/deliveries/{id}

One delivery with its attemptsPermissionmanage

The delivery, its body while it is kept (72 hours after the last attempt; cut at 20 KB here) and every attempt: time, duration, status or error, the headers we sent and the start of your server's answer (at most 2048 bytes).

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The delivery id. |

**Answer 200 OK**

any

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited)

[How to use it](https://docs.virginproxy.com/webhooks/#delivery-log)

### POST /v1/webhooks/test

Send a signed test delivery nowPermissionmanage

Sends one signed sample event (webhook.test, job.done, job.item) to your URL and answers with the outcome. Nothing is stored or retried; the body carries `"test": true`. Up to 10 per minute.

**Request body application/json**

- `url`stringrequiredA public https:// address of yours.
- `event`string `"webhook.test"` `"job.done"` `"job.item"`

**Answer 200 OK**

- `id`string
- `event`string
- `url`string
- `delivered`booleanYour endpoint answered with 2xx.
- `status_code`integer | null
- `error`string
- `duration_ms`integer

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited)

[How to use it](https://docs.virginproxy.com/webhooks/#api)

### POST /v1/webhooks/deliveries/{id}/redeliver

Send a delivery againPermissionmanage

Puts a finished delivery (delivered or given up) back in the queue: the same id and body, signed with the current secret, with a fresh retry schedule. Possible for 72 hours after its last attempt. Another account's delivery is "not found". Up to 20 per minute.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The delivery id (from GET /v1/webhooks). |

**Answer 200 The delivery is queued again (status pending). · WebhookDelivery**

- `id`string
- `job_id`string | nullnull for an alert of the account webhook (event alert.…).
- `event`stringjob.item, job.done, or alert.… for the account webhook for alerts.
- `index`integer | null
- `url`string
- `status`string `"pending"` `"delivered"` `"failed"`
- `attempts`integer
- `next_attempt_at`string | null
- `last_code`integer | null
- `last_error`string | null
- `last_attempt_at`string | null
- `created_at`string
- `delivered_at`string | null
- `redeliverable`booleanCan be sent again (finished, and its last attempt less than 72 hours ago).
- `redelivered_at`string | nullWhen it was last sent again on request.

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)
- 409 [`too_many_schedules`](https://docs.virginproxy.com/errors/#e-too_many_schedules) [`too_many_destinations`](https://docs.virginproxy.com/errors/#e-too_many_destinations) [`preset_exists`](https://docs.virginproxy.com/errors/#e-preset_exists) [`too_many_presets`](https://docs.virginproxy.com/errors/#e-too_many_presets) [`delivery_pending`](https://docs.virginproxy.com/errors/#e-delivery_pending)
- 410 [`delivery_expired`](https://docs.virginproxy.com/errors/#e-delivery_expired)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited)

[How to use it](https://docs.virginproxy.com/webhooks/#redeliver)

## Presets and schedules

Saved request options, and jobs or crawls that run again every interval with a cost cap.

### GET /v1/presets

Your presetsPermissionrequests or read

**Answer 200 OK**

- `items`list of object
  - `name`string
  - `description`string | null
  - `request`object
  - `created_at`string
  - `updated_at`string
- `max_presets`integer

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)

[How to use it](https://docs.virginproxy.com/automation/#presets)

### POST /v1/presets

Save request options under a namePermissionmanage

Use it with `"preset": "name"` in a request, a job (or its items), a crawl's `request` or a batch; options sent with the request win. Up to 100 per account. Needs the `manage` scope.

**Request body application/json · PresetBody**

- `name`string
- `description`string | null
- `request`objectRequest options as for POST /v1/requests, without `url` (checked when saved).

**Answer 201 Created. · Preset**

- `name`string
- `description`string | null
- `request`object
- `created_at`string
- `updated_at`string

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 409 [`too_many_schedules`](https://docs.virginproxy.com/errors/#e-too_many_schedules) [`too_many_destinations`](https://docs.virginproxy.com/errors/#e-too_many_destinations) [`preset_exists`](https://docs.virginproxy.com/errors/#e-preset_exists) [`too_many_presets`](https://docs.virginproxy.com/errors/#e-too_many_presets)

[How to use it](https://docs.virginproxy.com/automation/#presets)

### GET /v1/presets/{name}

One presetPermissionrequests or read

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `name` required | path | string |  |

**Answer 200 OK · Preset**

- `name`string
- `description`string | null
- `request`object
- `created_at`string
- `updated_at`string

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)

[How to use it](https://docs.virginproxy.com/automation/#presets)

### PATCH /v1/presets/{name}

Change a presetPermissionmanage

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `name` required | path | string |  |

**Request body application/json · PresetBody**

- `name`string
- `description`string | null
- `request`objectRequest options as for POST /v1/requests, without `url` (checked when saved).

**Answer 200 OK · Preset**

- `name`string
- `description`string | null
- `request`object
- `created_at`string
- `updated_at`string

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)
- 409 [`too_many_schedules`](https://docs.virginproxy.com/errors/#e-too_many_schedules) [`too_many_destinations`](https://docs.virginproxy.com/errors/#e-too_many_destinations) [`preset_exists`](https://docs.virginproxy.com/errors/#e-preset_exists) [`too_many_presets`](https://docs.virginproxy.com/errors/#e-too_many_presets)

[How to use it](https://docs.virginproxy.com/automation/#presets)

### DELETE /v1/presets/{name}

Delete a presetPermissionmanage

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `name` required | path | string |  |

**Answer 200 OK**

- `deleted`true
- `name`string

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)

[How to use it](https://docs.virginproxy.com/automation/#presets)

### GET /v1/schedules

Your schedulesPermissionrequests or read

**Answer 200 OK**

- `items`list of object
  - `id`string
  - `name`string | null
  - `every`string
  - `rhythm`stringThe rhythm in words, also for the fixed codes.
  - `time_zone`stringOnly for wall-clock rhythms: the zone they run in.
  - `notify`object
    - `email`boolean
    - `webhook`boolean
  - `track`string | null
  - `goal`stringOnly when set.
  - `next_runs`list of stringThe next three runs (empty when paused).
  - `kind`string `"job"` `"crawl"`
  - `job`object
  - `crawl`object
  - `max_credits`integer
  - `status`string `"active"` `"paused"`
  - `paused_reason`string | null `"by_you"` `"credits_exhausted"` `"daily_limit_reached"` `"key_limit_reached"` `"key_revoked"` `"account_suspended"` `"email_not_verified"` `null`
  - `next_run_at`string | null
  - `last_run_at`string | null
  - `last_job`string | null
  - `runs`integer
  - `created_at`string
- `limits`object

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)

[How to use it](https://docs.virginproxy.com/automation/#schedules)

### POST /v1/schedules

Run a job or crawl again and againPermissionmanage

Starts the job or crawl every interval (5m, 15m, 30m, 1h, 6h, 12h, 1d, 7d), each run with its own cost cap `max_credits` (required). Runs never overlap. The schedule pauses itself when credits or the daily cap are used up, its key is revoked or the account is suspended. Per plan: free 1, starter 5, growth 20, scale 50 schedules. Needs the `manage` scope.

**Request body application/json · ScheduleBody**

- `name`string | null
- `every`stringA fixed interval (5m, 15m, 30m, 1h, 6h, 12h, 1d, 7d) or a rhythm in words in your account's time zone: `every 30 minutes`, `hourly`, `every 6 hours`, `daily at 08:00`, `weekdays at 09:30`, `weekly on monday at 07:00`, `every 2 days`. At least every 5 minutes, and not more often than your plan allows.
- `notify`object | nullWith `track`: when a run finds new, removed or changed pages. E-mail at most once per hour and schedule.
  - `email`boolean
  - `webhook`booleanTo your alert webhook as `alert.monitor_changed`.
- `track`string | null`pages`: compare every run with the last one (a monitor); see `/v1/schedules/{id}/reports`. `"pages"` `null`
- `goal`string | nullWith `track`: which changes matter, in words ("a price drops"). Only when the service has AI features switched on; then only changes that matter are reported.
- `max_credits`integerThe most one run may cost (required when creating).
- `job`objectAs for POST /v1/jobs (without max_credits). Either this or crawl.
- `crawl`objectAs for POST /v1/crawl (without max_credits).
- `start_at`stringThe first run (default: now).
- `status`string `"active"` `"paused"`

**Answer 201 Created. · Schedule**

- `id`string
- `name`string | null
- `every`string
- `rhythm`stringThe rhythm in words, also for the fixed codes.
- `time_zone`stringOnly for wall-clock rhythms: the zone they run in.
- `notify`object
  - `email`boolean
  - `webhook`boolean
- `track`string | null
- `goal`stringOnly when set.
- `next_runs`list of stringThe next three runs (empty when paused).
- `kind`string `"job"` `"crawl"`
- `job`object
- `crawl`object
- `max_credits`integer
- `status`string `"active"` `"paused"`
- `paused_reason`string | null `"by_you"` `"credits_exhausted"` `"daily_limit_reached"` `"key_limit_reached"` `"key_revoked"` `"account_suspended"` `"email_not_verified"` `null`
- `next_run_at`string | null
- `last_run_at`string | null
- `last_job`string | null
- `runs`integer
- `created_at`string

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 409 [`too_many_schedules`](https://docs.virginproxy.com/errors/#e-too_many_schedules) [`too_many_destinations`](https://docs.virginproxy.com/errors/#e-too_many_destinations) [`preset_exists`](https://docs.virginproxy.com/errors/#e-preset_exists) [`too_many_presets`](https://docs.virginproxy.com/errors/#e-too_many_presets)

[How to use it](https://docs.virginproxy.com/automation/#schedules)

### GET /v1/schedules/{id}

One schedulePermissionrequests or read

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The schedule id. |

**Answer 200 OK · Schedule**

- `id`string
- `name`string | null
- `every`string
- `rhythm`stringThe rhythm in words, also for the fixed codes.
- `time_zone`stringOnly for wall-clock rhythms: the zone they run in.
- `notify`object
  - `email`boolean
  - `webhook`boolean
- `track`string | null
- `goal`stringOnly when set.
- `next_runs`list of stringThe next three runs (empty when paused).
- `kind`string `"job"` `"crawl"`
- `job`object
- `crawl`object
- `max_credits`integer
- `status`string `"active"` `"paused"`
- `paused_reason`string | null `"by_you"` `"credits_exhausted"` `"daily_limit_reached"` `"key_limit_reached"` `"key_revoked"` `"account_suspended"` `"email_not_verified"` `null`
- `next_run_at`string | null
- `last_run_at`string | null
- `last_job`string | null
- `runs`integer
- `created_at`string

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)

[How to use it](https://docs.virginproxy.com/automation/#schedules)

### PATCH /v1/schedules/{id}

Change, pause or resume a schedulePermissionmanage

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The schedule id. |

**Request body application/json · ScheduleBody**

- `name`string | null
- `every`stringA fixed interval (5m, 15m, 30m, 1h, 6h, 12h, 1d, 7d) or a rhythm in words in your account's time zone: `every 30 minutes`, `hourly`, `every 6 hours`, `daily at 08:00`, `weekdays at 09:30`, `weekly on monday at 07:00`, `every 2 days`. At least every 5 minutes, and not more often than your plan allows.
- `notify`object | nullWith `track`: when a run finds new, removed or changed pages. E-mail at most once per hour and schedule.
  - `email`boolean
  - `webhook`booleanTo your alert webhook as `alert.monitor_changed`.
- `track`string | null`pages`: compare every run with the last one (a monitor); see `/v1/schedules/{id}/reports`. `"pages"` `null`
- `goal`string | nullWith `track`: which changes matter, in words ("a price drops"). Only when the service has AI features switched on; then only changes that matter are reported.
- `max_credits`integerThe most one run may cost (required when creating).
- `job`objectAs for POST /v1/jobs (without max_credits). Either this or crawl.
- `crawl`objectAs for POST /v1/crawl (without max_credits).
- `start_at`stringThe first run (default: now).
- `status`string `"active"` `"paused"`

**Answer 200 OK · Schedule**

- `id`string
- `name`string | null
- `every`string
- `rhythm`stringThe rhythm in words, also for the fixed codes.
- `time_zone`stringOnly for wall-clock rhythms: the zone they run in.
- `notify`object
  - `email`boolean
  - `webhook`boolean
- `track`string | null
- `goal`stringOnly when set.
- `next_runs`list of stringThe next three runs (empty when paused).
- `kind`string `"job"` `"crawl"`
- `job`object
- `crawl`object
- `max_credits`integer
- `status`string `"active"` `"paused"`
- `paused_reason`string | null `"by_you"` `"credits_exhausted"` `"daily_limit_reached"` `"key_limit_reached"` `"key_revoked"` `"account_suspended"` `"email_not_verified"` `null`
- `next_run_at`string | null
- `last_run_at`string | null
- `last_job`string | null
- `runs`integer
- `created_at`string

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)

[How to use it](https://docs.virginproxy.com/automation/#schedules)

### DELETE /v1/schedules/{id}

Delete a schedulePermissionmanage

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The schedule id. |

**Answer 200 OK**

- `deleted`true
- `id`string

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)

[How to use it](https://docs.virginproxy.com/automation/#schedules)

### POST /v1/schedules/preview

Check a rhythm and see its next runsPermissionrequests or read

Saves nothing. `every` as for a schedule: a fixed code or a rhythm in words; the answer says it back the way it is stored, whether your plan allows it, and the next three runs in your account's time zone.

**Request body application/json**

- `every`stringrequired

**Answer 200 OK**

- `every`string
- `allowed`boolean
- `shortest_every`string
- `time_zone`string
- `next_runs`list of string

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)

### GET /v1/schedules/{id}/reports

What each run found (monitors)Permissionrequests or read

Only for schedules with `track: "pages"`: one report per finished run, newest first (the last 100 are kept) – pages new since the run before, removed, changed (each list up to 200 addresses; the counts are complete).

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The schedule id. |
| `limit` | query | integer | Default `20`. 1 to 50. |

**Answer 200 OK**

- `items`list of object
  - `judgement`objectOnly for monitors with a goal: whether the change mattered, and why.
    - `meaningful`boolean
    - `reason`string
  - `job`string
  - `at`string
  - `first_run`booleanThe first run only records the pages; nothing is reported as new.
  - `pages`integer
  - `counts`object
    - `added`integer
    - `removed`integer
    - `changed`integer
  - `added`list of string
  - `removed`list of string
  - `changed`list of string

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)

### POST /v1/schedules/{id}/run

Start a run nowPermissionmanage

Also for a paused schedule; the next regular run stays as planned.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `id` required | path | string | The schedule id. |

**Answer 202 Started.**

- `schedule`object
  - `id`string
  - `name`string | null
  - `every`string
  - `rhythm`stringThe rhythm in words, also for the fixed codes.
  - `time_zone`stringOnly for wall-clock rhythms: the zone they run in.
  - `notify`object
    - `email`boolean
    - `webhook`boolean
  - `track`string | null
  - `goal`stringOnly when set.
  - `next_runs`list of stringThe next three runs (empty when paused).
  - `kind`string `"job"` `"crawl"`
  - `job`object
  - `crawl`object
  - `max_credits`integer
  - `status`string `"active"` `"paused"`
  - `paused_reason`string | null `"by_you"` `"credits_exhausted"` `"daily_limit_reached"` `"key_limit_reached"` `"key_revoked"` `"account_suspended"` `"email_not_verified"` `null`
  - `next_run_at`string | null
  - `last_run_at`string | null
  - `last_job`string | null
  - `runs`integer
  - `created_at`string
- `job`object
  - `id`string
  - `status`string `"queued"` `"running"` `"done"` `"canceled"` `"expired"`
  - `total`integerRequests in the job (a crawl grows as it finds pages).
  - `succeeded`integer
  - `failed`integer
  - `canceled`integer
  - `pending`integer
  - `credits`integer
  - `tag`string | null
  - `webhook`object | null
    - `url`string
    - `events`list of string
    - `include_body`false
    - `metadata`object
  - `budget`objectOnly with `max_credits`: the cap, what was used and what is left.
    - `max_credits`integer
    - `spent`integer
    - `left`integer
  - `created_at`string
  - `started_at`string | null
  - `finished_at`string | null
  - `expires_at`string | nullResults are deleted 24 hours after the end.
  - `last_progress_at`string | null
  - `kind`stringOnly for crawls. `"crawl"`
  - `delivery`objectOnly with `delivery`: where the results go and how it went.
    - `destination`string
    - `format`string `"ndjson"` `"json"` `"csv"`
    - `path`string
    - `status`string `"pending"` `"delivered"` `"failed"`
    - `key`string
    - `bytes`integer
    - `parts`integerResults above 90 MB are written as numbered parts.
    - `keys`list of string
    - `error`string
  - `crawl`objectOnly for crawls: the settings.
    - `url`string
    - `max_pages`integer
    - `max_depth`integer
    - `include_paths`list of string
    - `exclude_paths`list of string
    - `include_subdomains`boolean
    - `ignore_query`boolean

Errors

- 400 [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 402 See the errors page.
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`key_management_not_allowed`](https://docs.virginproxy.com/errors/#e-key_management_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`not_found`](https://docs.virginproxy.com/errors/#e-not_found) [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited)

[How to use it](https://docs.virginproxy.com/automation/#schedules)

## AI agents

Use VirginProxy from AI clients.

### GET /.well-known/ai-catalog.json

AI catalogPermissionNo key needed

No key needed. Points to the MCP server card.

**Answer 200 OK**

`application/ai-catalog+json`

### GET /mcp/server-card

MCP server cardPermissionNo key needed

No key needed. How to connect to the MCP server: address, transport, authentication, protocol versions.

**Answer 200 OK**

`application/mcp-server-card+json`

[How to use it](https://docs.virginproxy.com/ai-agents/#protocol)

### GET /v1/docs

The complete documentation for your AIPermissionAny key

Lists the files of the complete documentation (member guides included) for your AI assistant or agent: Markdown, OpenAPI, error list, tool definitions. Any key of the account works, test keys too; free and not in the request log; up to 60 files per minute. The key goes in the header only, never in the address.

**Answer 200 OK**

- `description`string
- `files`list of object
  - `name`string
  - `url`string
  - `type`string
  - `title`string
  - `available`boolean
- `mcp`object

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited)

### GET /v1/docs/{name}

One file of the complete documentationPermissionAny key

One file of the complete documentation (see GET /v1/docs). `llms-full.txt` is the whole documentation as one Markdown text, member guides included.

| Parameter | In | Type | Meaning |
| --- | --- | --- | --- |
| `name` required | path | string | A file name from GET /v1/docs (10 files). |

**Answer 200 The file.**

object

Also as `text/markdown`, `application/yaml`.

Errors

- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 [`account_suspended`](https://docs.virginproxy.com/errors/#e-account_suspended) [`ip_not_allowed`](https://docs.virginproxy.com/errors/#e-ip_not_allowed) [`insufficient_scope`](https://docs.virginproxy.com/errors/#e-insufficient_scope)
- 404 [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)
- 429 [`rate_limited`](https://docs.virginproxy.com/errors/#e-rate_limited)
- 503 [`maintenance`](https://docs.virginproxy.com/errors/#e-maintenance)

### POST /mcp

Model Context Protocol endpointPermissionKey or sign-in

For AI clients (MCP, Streamable HTTP transport, no sessions, JSON answers). Send JSON-RPC 2.0 messages with your API key as Bearer token. Protocol versions: 2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05 (2026-07-28 without handshake: version in `params._meta` and the MCP-Protocol-Version, Mcp-Method and Mcp-Name headers; earlier ones with initialize). Methods: server/discover, initialize, ping, tools/list, tools/call, resources/list, resources/templates/list, resources/read, prompts/list, prompts/get. Tools: scrape, batch_scrape, screenshot, pdf, search, map, crawl, export_job, retry_job, get_job, list_jobs, cancel_job, estimate, account, usage, list_requests, limits, get_answer, list_presets, get_request. Each tool call is an ordinary API call (same limits, same charges, same request log). GET and DELETE answer 405.

**Request body application/json**

- `jsonrpc`"2.0"required
- `id`string | integer
- `method`stringrequired
- `params`object

**Answer 200 OK**

JSON-RPC response (or a list of them for a batch).

**Answer 202 Only notifications were sent: nothing to answer.**

No body.

Errors

- 400 [`invalid_body`](https://docs.virginproxy.com/errors/#e-invalid_body) [`invalid_format_options`](https://docs.virginproxy.com/errors/#e-invalid_format_options) [`invalid_redact`](https://docs.virginproxy.com/errors/#e-invalid_redact) [`invalid_auto_extract`](https://docs.virginproxy.com/errors/#e-invalid_auto_extract) [`invalid_render_auto`](https://docs.virginproxy.com/errors/#e-invalid_render_auto) [`invalid_query`](https://docs.virginproxy.com/errors/#e-invalid_query) [`invalid_delivery`](https://docs.virginproxy.com/errors/#e-invalid_delivery) [`job_budget_reached`](https://docs.virginproxy.com/errors/#e-job_budget_reached) [`invalid_schedule`](https://docs.virginproxy.com/errors/#e-invalid_schedule) [`invalid_destination`](https://docs.virginproxy.com/errors/#e-invalid_destination) [`invalid_value`](https://docs.virginproxy.com/errors/#e-invalid_value) [`invalid_preset`](https://docs.virginproxy.com/errors/#e-invalid_preset)
- 401 [`invalid_api_key`](https://docs.virginproxy.com/errors/#e-invalid_api_key)
- 403 See the errors page.
- 404 Protocol 2026-07-28: the method is not supported (JSON-RPC error -32601).
- 503 [`maintenance`](https://docs.virginproxy.com/errors/#e-maintenance)

[How to use it](https://docs.virginproxy.com/ai-agents/#mcp)

## OAuth

Sign-in for MCP clients that connect with OAuth: register, approve on the dashboard, get tokens for /mcp.

### GET /.well-known/oauth-authorization-server

Authorization server metadata (RFC 8414)PermissionNo key needed

No key needed. Endpoints and capabilities of the OAuth sign-in for MCP clients.

**Answer 200 OK**

object

[How to use it](https://docs.virginproxy.com/ai-agents/#oauth-clients)

### GET /.well-known/oauth-protected-resource/mcp

Protected resource metadata of /mcp (RFC 9728)PermissionNo key needed

No key needed. Which authorization server issues tokens for the MCP endpoint. A 401 from /mcp points here in its WWW-Authenticate header.

**Answer 200 OK**

object

[How to use it](https://docs.virginproxy.com/ai-agents/#oauth-clients)

### POST /oauth/register

Register an MCP client (RFC 7591)PermissionNo key needed

No key needed; up to 20 registrations per hour from one address. Redirect URIs: https, http on localhost / 127.0.0.1 / [::1] (any port), or an app's own scheme; no fragments, at most 2000 characters. Clients that are never authorised are deleted after 24 hours.

**Request body application/json**

- `redirect_uris`list of stringrequired
- `client_name`stringShown on the consent screen.
- `client_uri`string
- `logo_uri`stringStored, not shown.
- `token_endpoint_auth_method`string `"none"` `"client_secret_post"` `"client_secret_basic"`
- `grant_types`list of string
- `response_types`list of "code"
- `scope`string

**Answer 201 Registered.**

- `client_id`stringrequired
- `client_id_issued_at`integerrequired
- `client_secret`stringOnly with client_secret_post / client_secret_basic. Shown once.
- `client_secret_expires_at`0
- `redirect_uris`list of stringrequired
- `client_name`string
- `token_endpoint_auth_method`string
- `grant_types`list of string
- `response_types`list of string
- `scope`"mcp"

Errors

- 400 invalid_redirect_uri or invalid_client_metadata.
- 429 rate_limited.

[How to use it](https://docs.virginproxy.com/ai-agents/#oauth-clients)

### POST /oauth/token

Exchange a code or refresh token for tokensPermissionNo key needed

grant_type=authorization_code (with PKCE S256: code, redirect_uri, code_verifier, client_id) or grant_type=refresh_token (rotating). Access tokens are valid 60 minutes and work only on https://api.virginproxy.com/mcp. A code works once; using it again revokes the tokens issued from it. The answer has Cache-Control: no-store.

**Request body application/x-www-form-urlencoded**

- `grant_type`stringrequired `"authorization_code"` `"refresh_token"`
- `code`string
- `redirect_uri`string
- `code_verifier`string
- `refresh_token`string
- `resource`"https://api.virginproxy.com/mcp"
- `scope`"mcp"
- `client_id`stringYour client_id (or send it with the secret as HTTP Basic).
- `client_secret`stringOnly for clients registered with client_secret_post.

**Answer 200 Tokens.**

- `access_token`stringrequiredSend as "Authorization: Bearer …" to https://api.virginproxy.com/mcp – the only endpoint that accepts it.
- `token_type`"Bearer"required
- `expires_in`3600requiredSeconds.
- `refresh_token`stringrequiredValid 30 days from its issue; replaced by a new one on every use. Using a replaced one again ends the connection's sign-in.
- `scope`"mcp"required

Errors

- 400 invalid_request, invalid_grant, unsupported_grant_type, invalid_scope or invalid_target.
- 401 invalid_client.
- 429 rate_limited.

[How to use it](https://docs.virginproxy.com/ai-agents/#oauth-clients)

### POST /oauth/revoke

Revoke a token (RFC 7009)PermissionNo key needed

Always 200, whether or not the token existed. Revoking a refresh token ends the whole sign-in it belongs to; the connection itself stays on the Keys page until you revoke it there.

**Request body application/x-www-form-urlencoded**

- `token`stringrequired
- `token_type_hint`string `"access_token"` `"refresh_token"`
- `client_id`stringYour client_id (or send it with the secret as HTTP Basic).
- `client_secret`stringOnly for clients registered with client_secret_post.

**Answer 200 Done (also for an unknown token).**

object

Errors

- 401 invalid_client: a registered secret was missing or wrong.

[How to use it](https://docs.virginproxy.com/ai-agents/#oauth-clients)

## Service

Status and machine-readable descriptions.

### GET /.well-known/api-catalog

API catalog (RFC 9727)PermissionNo key needed

No key needed. Where this API's description, documentation and status are, as a linkset.

**Answer 200 OK**

`application/linkset+json`

### GET /.well-known/security.txt

Security contact (RFC 9116)PermissionNo key needed

**Answer 200 OK**

`text/plain`

### GET /v1/status

Service statusPermissionNo key needed

No key needed. `ok`, `maintenance` (paused, nothing is charged) or `disturbed`.

**Answer 200 OK**

- `status`string `"ok"` `"maintenance"` `"disturbed"`
- `api_version`string
- `time`string
- `docs`string

[How to use it](https://docs.virginproxy.com/status/)

### GET /v1/errors

Every error codePermissionNo key needed

No key needed. The same list as on the errors page, as JSON.

**Answer 200 OK · ErrorList**

- `description`string
- `docs`string
- `errors`list of object
  - `code`string
  - `http`integer
  - `group`string
  - `group_title`string
  - `retry`string `"wait"` `"yes"` `"no"`
  - `description`string

Errors

- 404 [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)

[How to use it](https://docs.virginproxy.com/errors/)

### GET /healthz

Up or downPermissionNo key needed

**Answer 200 OK**

- `ok`true

Errors

- 503 Down.

[How to use it](https://docs.virginproxy.com/account/#health)

### GET /openapi.json

This description (JSON)PermissionNo key needed

**Answer 200 OK**

object

Errors

- 404 [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)

[How to use it](https://docs.virginproxy.com/ai-agents/#openapi)

### GET /openapi.yaml

This description (YAML)PermissionNo key needed

**Answer 200 OK**

`application/yaml`

Errors

- 404 [`answer_not_kept`](https://docs.virginproxy.com/errors/#e-answer_not_kept) [`preset_not_found`](https://docs.virginproxy.com/errors/#e-preset_not_found)

[How to use it](https://docs.virginproxy.com/ai-agents/#openapi)

### GET /

Service name and docs linkPermissionNo key needed

**Answer 200 OK**

- `service`string
- `version`string
- `docs`string

> **Note:** The error codes under each endpoint are the ones it can return in practice; the full list with what to do is on the [errors page](https://docs.virginproxy.com/errors/). Every authenticated call can also answer `invalid_api_key` (401), `rate_limited` (429) and `maintenance` (503).
