Batch Operate
Execute batch operations in parallel while automatically managing browser sessions and windows.
Parameters
An array of URLs to process in parallel.
+ Show 2 properties
The URL to process.
Additional context data to be passed with the URL.
The operation function to execute for each URL.
+ Show 2 objects
The input provided to the operation function.
+ Show 4 properties
The ID of the browser session.
The ID of the browser window.
The URL that can be used to view the browser window in real-time.
The URL being processed, including any context data.
The response returned by the operation function.
+ Show 3 properties
Contains the relevant data returned by the operation, which will ultimately be returned in the results array.
If set to true, the batch operator will stop processing remaining URLs.
If set, additional URLs will be processed as part of the same batch operation.
Configuration options for the batch operation.
+ Show 4 properties
Maximum number of concurrent browser sessions. Defaults to 30.
Maximum number of windows per session. Defaults to 1 (recommended).
Configuration for browser sessions.
Callback function for handling errors.
+ Show 5 properties
The error that occurred.
The URLs that were being processed when the error occurred.
The ID of the session where the error occurred (if available).
The ID of the window where the error occurred (if available).
The live view URL of the window where the error occurred (if available).
Returns
An array containing the results from each operation, in the order that the operations were executed. Note that the order of the input URLs does not necessarily match the order of the results.