For the complete documentation index, see llms.txt. This page is also available as Markdown.

Delivery Modes

Discover how Web API delivers results: realtime responses, async jobs with polling or callbacks, cloud storage delivery, and batch requests.

The Web API provides three delivery modes for different workload requirements and execution volumes.

Delivery
Max items
Targets
Used for...

Realtime (Synchronous) POST /v1/scrape/{source}

1

All endpoints

Low-latency requests, testing

Async Single (Polling) POST /v1/async/scrape/{source}

1

All endpoints

High concurrency and volume

Async Batch (Bulk queue) POST /v1/async/scrape/batch/{source}

5,000

Select endpoints

Bulk ingestion

Most /scrape endpoints are offered as options for Realtime and Async result delivery, with the path deciding when and how you get the result.

POST /v1/scrape/...          # realtime: the result is the response
POST /v1/async/scrape/...    # async: create a job and retrieve the result separately

Realtime

POST /v1/scrape/{source}

Realtime delivery processes the scrape on the initial HTTP connection. The request blocks until rendering, access resolution, and parsing is complete, returning the content payload in the response body. Set a client timeout of at least 150 seconds.

curl -X POST https://webapi.oxylabs.io/v1/scrape/amazon/product \
  -H "Authorization: Bearer $OXYLABS_WEB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "B0CX23V2ZK",
    "domain": "com",
    "output": ["json"]
  }'

Some endpoints do not support realtime delivery (e.g. YouTube downloads, ChatGPT, Gemini, Perplexity). Confirm your target eligibility with Endpoint Discovery or check the API Reference.

Single job delivery (Async)

Asynchronous single-job delivery queues a scrape request and immediately returns an HTTP 202 Accepted status containing the job identifier.

When a job is accepted, the job ID is returned inside metadata.request_id.

The status of the submitted job can be referenced through the status results:

status: "pending"

The job is queued or executing. The results array remains empty ([]).

status: "done"

Job completed. The results array contains the parsed output.

status: "faulted"

Extraction failed. Inspect results[].metadata.status_code for details.

Output retrieval

Results are retrieved via polling, webhooks (callback URL), or direct cloud storage uploads.

Polling endpoint (GET /v1/async/scrape/{jobId})

Pass the numeric metadata.request_id to the polling endpoint.

Webhooks (callback_url)

Include callback_url in the initial request body. Once execution transitions to done or faulted, the API issues an HTTP POST payload containing the job results to your specified endpoint.

The URL is validated at submission time and malformed ones are rejected with error 400.

Cloud storage upload (storage)

storage writes the result to a bucket instead of the response body. Async paths only.

Field
Values

storage.type

s3, s3_gzip, s3_compatible, gcs, tos

storage.url

Destination for the result

Batch delivery (Async)

Batch delivery submits up to 5,000 scraping jobs in a single HTTP request. Rather than taking a single url or query string, the input field accepts an array of strings. All other fields in the payload are applied across every job in the batch.

Batch endpoints return an HTTP 202 Accepted status with an array of individual job statuses in data[] alongside an errors[] array listing rejected items (e.g., invalid ASIN formatting or invalid URL syntax). See the example below:

Output sample

Last updated

Was this helpful?