Customize with HTTP API
CloudBrowser allows users to programmatically open browser instances via an HTTP API. This service is designed to offer browsers with stealth mode options, support for custom proxies, and the ability to keep browsing sessions open based on the client’s needs.
Please note that to send calls to this api production.cloudbrowser.ai/api/v1/Browser/ it is necessary to use your api token in each call.
Available Endpoints
1. /Open
– Open a browser with advanced configurations
/Open
– Open a browser with advanced configurationsMethod: POST
Description: This endpoint allows you to open a browser with advanced configurations, including custom browser arguments, custom proxy settings, and more.
Parameters:
Args
(optional):string[]
– A list of custom browser arguments. Ifnull
, default arguments will be used.IgnoredDefaultArgs
(optional):string[]
– A list of default arguments to ignore. Ifnull
, default ignored arguments will be used.Headless
(optional):bool
– Indicates whether the browser should open in headless mode (true
) or with a graphical interface (false
). Default isfalse
.Stealth
(optional):bool
– Enables or disables stealth mode. Default istrue
.Browser
(optional):SupportedBrowser
– Specifies the browser to use. Available options are:0
– Chrome2
– Chromium3
– ChromeHeadlessShell If not specified,Chromium
is used by default.
KeepOpen
(optional):number
– Specifies the minutes of inactivity before the browser automatically closes. The default is 30 seconds.Proxy
(optional):BrowserOptionsProxy
– Custom proxy configuration. If not specified, the service will use an automatically assigned proxy.Label
(optional):string
– Specifies the instance name, useful for recognizing it in the list of open remote desktops.
Request Example:
Response:
HTTP response:
200
– Success: The browser was successfully opened.401
– AuthorizationError: Incorrect token.402
– NoSubscription: No active subscription.403
– NoUnits: All units have been consumed. This can be avoided by enabling additional units in the web settings.404
– BrowserLimit: Your subscription does not allow opening more browsers in parallel.0
– Unknown: Unexpected error.
2. /Close
– Close a browser
/Close
– Close a browserDescription: Allows to close a browser remotely without using Puppeteer.
Method: POST
Parameters:
address:
string
– The address of the browser you want to close.
Request Example:
3. /Get
– Get all active browsers
/Get
– Get all active browsersDescription: Returns a list of all currently open browsers.
Method: GET
Parameters: No parameters required.
Response:
sessions: Array of active sessions with the following fields:
startedOn: Date and time when the session was started.
label: Session label.
address: Browser address.
vncpass: Password of the remote desktop associated to the session.
4. /StartRemoteDesktop
– Start remote desktop
/StartRemoteDesktop
– Start remote desktopDescription: Start a remote desktop in the selected browser.
Method: POST
Parameters:
address:
string
– The address of the browser.
Request Example:
5. /StopRemoteDesktop
– Stop remote desktop
/StopRemoteDesktop
– Stop remote desktopDescription: Start a remote desktop in the selected browser.
Method: POST
Parameters:
address:
string
– The address of the browser.
Request Example:
Last updated