Cloud Browser Guide
Nstdata Cloud Browser is a managed browser service. Browse and interact with websites directly from the dashboard, or connect Playwright or Puppeteer to automate sign-in, navigation, form entry, and data extraction without deploying your own browser environment.
The service includes proxy location selection, browser environment settings, and automatic CAPTCHA handling, along with live page diagnostics and session recording and replay to help you run and troubleshoot your workflows.
Start by creating a session. A session associates a running browser with its proxy, browser configuration, and usage records, and has a unique Session ID. You can open multiple pages in the browser and combine manual interaction with automation in the same session—for example, sign in manually, then connect a script to that session and select the signed-in page to continue.
| Feature | Purpose | When to use it |
|---|---|---|
| Proxy location | Select a proxy exit country and check regional website access | Select before launch |
| Browser environment | Configure operating system, language, timezone, resolution, and User-Agent | Configure before launch; regional settings can follow the proxy IP |
| Live View | View and operate the cloud browser, or watch an automation script run | While the session is running |
| CDP automation connection | Control the same browser with Playwright or Puppeteer | While the session is running |
| Automatic CAPTCHA | Handle supported page CAPTCHAs automatically to reduce manual intervention | Enable before launch; processing takes place during the session |
| Live DevTools | Inspect a selected page's HTML, Console messages, and network requests | While the session is running; recording is not required |
| Recording and replay | Review page interactions and recorded diagnostics | Enable before launch; review once the recording archive is ready |
| Session history and usage | Find sessions, review configuration, runtime, proxy traffic, and CAPTCHA successes, and access page records and replay | After creation; usage updates as data becomes available |
For dashboard use, follow the first-use steps below. For API-key integration with Playwright or Puppeteer, go directly to Connect an Automation Script.
Before You Begin
Sign in to the Nstdata dashboard (opens in a new tab) and open Cloud Browser → Playground. Select the personal or team workspace you want to use and check its available balance.
Check current workspace concurrency in Subscribe. At the limit, stop idle sessions and wait for release, or upgrade the plan before launching another.
The playground's Estimated Cost covers browser runtime. Proxy traffic and CAPTCHA usage are charged separately. The estimate does not represent the final charge.
Create Your First Session
This example takes you through creating a session, opening a public web page, and ending the session.
- Keep Default Configuration. Review the generated Session Name, or change it to a name you can recognize later.
- Select an available Proxy Country, Resource Class, and Session Duration, such as 5 minutes. Leave recording and Automatic CAPTCHA off.
- Click Launch Browser. Wait for the browser to appear in Browser Preview; the tools area shows Running, and the CDP and Refresh Preview actions become available.
- Click the address bar inside the remote browser and enter
https://example.com/. Confirm that the page loads and its tab title is Example Domain. Navigate and interact with the page as you would in a local browser. - When finished, click Stop Browser and wait for the session to end. Open Session History to find its record.
Closing the dashboard or disconnecting a script does not stop the session. Use Stop Browser, or let the configured duration end it automatically. Reconnecting does not extend that duration.
Returning to Playground does not automatically restore the previous session in the preview. To continue an existing session, open Session History, select the session that is still running, and use its Live View.
Understand Session Status
A launch response, a ready browser, and a successfully loaded website are separate results. Use the session state to decide what to do next.
| Session state | Meaning | Next action |
|---|---|---|
creating | The service is preparing the browser | Wait for this session; do not launch another copy of the task |
unknown | The browser's current state cannot yet be confirmed | Retry the status check or find the original session in history; a timeout is not proof of failure |
ready | The browser is ready for Live View and CDP | Connect, then separately check that the intended website loaded |
stopping | A stop was requested; completion is not yet confirmed | Wait for a final state before treating the browser as ended |
ended | The session has ended | Review available history/recording; create a new session to run another task |
failed | The session failed | Read the error and failure phase; distinguish failure before readiness from failure after running |
A preview connection error is not a session state. Reconnecting to a ready browser continues the current task; launching another session creates another browser. An ended session cannot be resumed, and replay cannot restore its login state or execute the original script.
For HTTP integrations, generate one UUID v4 requestId per intended launch. If the response is lost, retry the same request body with the same requestId to resolve that launch. Changed configuration needs a new requestId. Reusing an ID with different parameters returns CLOUD_BROWSER_IDEMPOTENCY_CONFLICT; generating a new ID after every timeout can create duplicate sessions.
Session duration limits browser lifetime; credential expiry limits access; recording duration limits collection; retention limits access to saved data. These clocks are independent. Use the returned session expiresAt when available, and wait for the service to confirm the end instead of treating a local countdown as confirmation.
Configure a Session
Session settings determine where the browser connects from, which browser environment it uses, when it ends automatically, and whether activity is recorded. Set them before launch; they cannot be changed while the session runs.
Name, Runtime Resources, and Duration
Session Name identifies a task in the playground and session history. The dashboard accepts 1–30 characters; the API accepts 1–100. For example, use JP-checkout-check to identify a checkout-flow check from Japan.
Resource Class selects the browser's CPU and memory configuration. Use the values returned by GET /api/v1/cloud-browser/sessions/options in resourceClasses: display label and submit value, for example 1c1g. Do not submit a class absent from the options. Proxy country and screen resolution are configured separately.
Session Duration is the browser's runtime limit: the session ends automatically when it expires. It is not a page-load timeout or an automation-script timeout.
| Duration setting | Values and behavior |
|---|---|
| Default | API: options.defaults.ttlSeconds; dashboard: the current form |
| Presets | Current options/form values, such as 5, 15, 30, or 60 minutes |
| Custom | Use the range shown in the form, determined by the current workspace's entitlements and service limits. Enter minutes; decimals are accepted when they convert to whole seconds, such as 1.5 for 90 seconds |
Custom duration follows current service limits and workspace entitlements. The dashboard uses duration limits returned by the service; if plan entitlements or service limits change, the range displayed by the form takes precedence. For example, a script that finishes in 30 seconds does not automatically end a 15-minute session. Use Stop Browser when you no longer need it.
Proxy Exit and Browser Region
Proxy Country selects the requested location of the proxy used for web traffic. Available countries come from options.proxyCountries, for example the United States, Japan, or Singapore. When offered, Automatic (ANY) lets the service select an exit without specifying a country. Selecting a country does not guarantee a fixed exit IP.
In Advanced Settings, Operating System and Language & Timezone are separate controls. Proxy location and browser region are also separate: choosing a Japanese proxy does not explicitly set Japanese as the language or Tokyo as the timezone.
Operating System sets the browser platform information visible to websites. Choose from the platforms currently returned by the service, such as Windows, macOS, or Linux. The form prefers Windows when available, otherwise an available platform. Chrome and OS versions use service defaults; the form does not offer an independent Chrome-version selector. This setting is independent of the proxy country and language/timezone mode.
| Language & Timezone mode | Behavior | Use case |
|---|---|---|
| Follow IP (default) | At startup, matches browser language and timezone to the detected proxy exit using available GeoIP data; does not change the operating system | Align language and timezone with the actual exit |
| Custom | Set language and timezone separately; either can remain on Follow IP | Keep a fixed language or timezone |
Selecting Custom reveals these settings:
- Browser Language: Follow IP, common suggestions such as
en-US,zh-CN, andja-JP, or Custom for a language tag such asde-DE. Languages outside the suggestions depend onoptions.languages.allowCustom. - Timezone: Follow IP or a searchable timezone returned by the service, such as
America/New_YorkorAsia/Tokyo. Use a timezone name, not a bare UTC offset.
The dashboard currently has a single-language input. The API accepts 1–8 ordered BCP 47 tags of 2–35 characters in fingerprint.languages, for example:
{ "fingerprint": { "localeMode": "custom", "languages": ["zh-CN", "zh", "en-US", "en"] } }The backend trims whitespace, converts underscores to hyphens, canonicalizes tags, and deduplicates in order. The first item is primary; an omitted locale uses it, and an explicit locale must match it. Manual languages use custom; omit them for followIp/default. API default uses catalog defaults and differs from Follow IP. Languages and IANA timezones must satisfy current options. Invalid or out-of-range values return 400.
For example, use Japan + Follow IP to check access from Japan. To test a sign-in flow with a US exit and fixed regional settings, use United States + Custom + en-US + America/New_York. Browser language sets the language preference visible to websites; it does not guarantee that a website will display that language.
Follow IP aligns settings at startup, not continuously as a proxy IP rotates during a session. If exit detection is temporarily unavailable, the configured proxy and original fingerprint settings are retained. For location-sensitive tasks, check the actual exit and location on the target website or a trusted IP-check page.
Resolution and User-Agent
Resolution Fingerprint offers recommended sizes such as 1280 × 720, 1440 × 900, and 1920 × 1080, plus Custom width and height. The form starts with 1440 × 900 when it is within service limits. Custom dimensions must be whole pixels within the ranges shown beside the fields; for example, 600 × 666 does not have to match a recommended aspect ratio. Values above the maximum are capped while editing; values below the minimum are adjusted when leaving the field.
The setting controls the reported screen, virtual desktop, and initial browser window at DPR 1. It does not set Live View zoom. Browser toolbars affect the content area, so a page viewport may be smaller than the selected screen.
Custom User-Agent is off by default. When enabled, enter a non-empty value of up to 512 printable ASCII characters. The service accepts custom strings without requiring a match with the selected OS or Chrome major version. Changing this string does not change the browser engine or guarantee consistency with other fingerprint values. Choose a value appropriate to your website test.
Verify the Configuration Used
The form loads available platforms, resource classes, timezones, screen bounds, duration limits, and recording support from the service. If options fail to load, retry loading them before launching. Account limits and runtime capabilities can reduce the displayed choices.
Read GET /api/v1/cloud-browser/sessions/options: session defines duration bounds; resolutions defines screen bounds; languages defines suggestions and custom support; features reports availability; defaults supplies effective defaults. Display label and submit value.
Omitted parameters use service defaults. Invalid, disabled, or out-of-range explicit values return 400, possibly with a field. The API accepts allowed integer seconds or an integer string; new requests are not silently truncated or clamped. Inspect warnings and effectiveConfiguration after creation.
effectiveConfiguration describes saved/effective configuration; a snapshot on a failed launch does not prove a browser ran. GET /api/v1/cloud-browser/sessions/{sessionId}/configuration separates requested configuration, resolved configuration, and available provider observations. Fields absent from observations remain unknown. To inspect the page-visible environment, use the page from the automation examples below:
console.log(await page.evaluate(() => ({
userAgent: navigator.userAgent,
language: navigator.language,
languages: navigator.languages,
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
screen: { width: screen.width, height: screen.height },
viewport: { width: innerWidth, height: innerHeight },
})));This verifies page-visible values, not proxy health or target-site acceptance.
The dashboard uses Proxy Country. HTTP callers may instead supply a custom proxyUrl using http://, https://, or socks5://, without a query or fragment. proxyCountry and proxyUrl are mutually exclusive: choosing a country asks the service to allocate a proxy, whereas a custom URL supplies your own proxy endpoint. Keep any proxy credentials private.
How Scenario Templates Work
A scenario template is a starting configuration, not an automated task. It fills in duration and recording settings; you still launch the browser and interact with the website or run your script.
| Template | Preset duration | Session Recording | Typical use |
|---|---|---|---|
| Default Configuration | Current form default | Off | General browsing or an existing automation script |
| Page Access Check | 5 minutes | Off | Check whether a page opens and the proxy exit meets your requirements |
| Login Validation | Current form default | On | Sign in manually or through a script, retaining interaction records for investigation |
| Interaction Debugging | 30 minutes | On | Reproduce click, form, or navigation problems and review diagnostic data |
Template durations are kept within service limits, and recording is enabled only when supported. Switching templates resets other settings but preserves Session Name: the form selects an available resource class and prefers ANY, Windows, and 1440 × 900 where available, otherwise adjusts to available options. Language & Timezone returns to Follow IP; Hide Input Content is on; Automatic CAPTCHA and Custom User-Agent are off. Choose the template first, then customize the proxy and advanced settings.
Configuration Example: Investigate a Post-login Redirect
- Select Login Validation and name the session
US-login-redirect. - Choose the United States proxy, using an available resource class and duration, such as 15 minutes.
- If the task requires fixed English and New York timezone settings, set Language & Timezone to Custom, then select
en-USandAmerica/New_York. Otherwise, keep Follow IP. - Keep Session Recording and Hide Input Content on. Input masking affects replay, not normal typing in the browser.
- After launch, open DevTools and select the sign-in page before signing in or connecting a script, so you can observe new Console messages and requests.
- Reproduce the issue, stop the session, and open its details from Session History. Wait for the page records and replay to load, then select a Replay Page or click a page observation to compare the interactions with recorded Console/Network entries.
This lets you investigate the post-login redirect through the actual interactions, page errors, and network requests.
Use Live View
Browser Preview is the interactive view of your running browser. Keyboard and mouse actions inside it operate that browser.
| Action | Result |
|---|---|
| ↗ external-link icon (Live URL) | Opens the same browser view in another tab |
| Refresh Preview | Reconnects the preview to the same session |
| Enter Fullscreen | Enlarges the preview for interaction |
| Stop Browser | Ends the session; wait for the end to be confirmed |
The preview's upper-right tools area contains runtime status, DevTools, and fullscreen controls. If the controls are collapsed, use Expand Tools to reveal them.
Live URL contains short-lived access credentials. Keep the complete link private. If it expires or the view disconnects, check that the session is still running and reopen it from the dashboard. Once the session ends, use an available recording instead of the live view.
Connect an Automation Script
Create a session with an API key and connect to cloud Chromium through CDP (Chrome DevTools Protocol). The examples create a session, wait for readiness, obtain connection credentials, visit a page, and stop the session.
Run an Example
Use Node.js 22.12 or later. Copy a personal API key from Settings → Account (opens in a new tab), or a team member key from Members (opens in a new tab).
Create .env alongside the example script. Run the installation and execution commands below from that directory:
NSTDATA_API_KEY=<your-api-key>Member keys automatically select their bound team. A personal key can set optional NSTDATA_TEAM_ID to select a team the user has joined; accounts migrated to team mode must use a team member key. No local browser installation or launch is required.
Playwright
npm install playwright-core@1.64.1Save as cloud-browser-playwright.mjs:
import { randomUUID } from 'node:crypto';
import { setTimeout as delay } from 'node:timers/promises';
import { chromium } from 'playwright-core';
const apiKey = process.env.NSTDATA_API_KEY;
if (!apiKey) throw new Error('NSTDATA_API_KEY is required');
const baseUrl = 'https://api.nstdata.io/api/v1/cloud-browser';
async function api(method, path, body) {
const response = await fetch(`${baseUrl}${path}`, {
method,
headers: {
'x-api-key': apiKey,
'Content-Type': 'application/json',
...(process.env.NSTDATA_TEAM_ID ? { 'x-team-id': process.env.NSTDATA_TEAM_ID } : {}),
},
body: body === undefined ? undefined : JSON.stringify(body),
signal: AbortSignal.timeout(path === '/sessions' && method === 'POST' ? 150_000 : 30_000),
redirect: 'error',
});
const result = await response.json();
if (!response.ok || result.err || result.success === false) {
throw new Error(`${method} ${path}: HTTP ${response.status}: ${result.msg ?? result.code}`);
}
return result.data;
}
async function waitFor(sessionId, states) {
const deadline = Date.now() + 90_000;
while (Date.now() < deadline) {
const session = await api('GET', `/sessions/${sessionId}`);
if (states.includes(session.state)) return;
if (['ended', 'failed'].includes(session.state)) throw new Error(`Session ${session.state}`);
await delay(1000);
}
throw new Error(`Session ${sessionId}: status timeout`);
}
const request = {
requestId: randomUUID(),
name: 'example',
recording: false,
captchaSolver: { enabled: false },
};
console.log('requestId:', request.requestId);
const { sessionId } = await api('POST', '/sessions', request);
if (!sessionId) throw new Error('Missing sessionId');
console.log('sessionId:', sessionId);
let browser;
try {
await waitFor(sessionId, ['ready']);
const { cdpUrl, headerName, accessToken, expiresAt, sessionId: credentialSessionId } =
await api('POST', `/sessions/${sessionId}/automation-credentials`);
if (credentialSessionId !== sessionId || !accessToken || !(Date.parse(expiresAt) > Date.now())) {
throw new Error('Invalid or expired CDP credentials');
}
if (new URL(cdpUrl).protocol !== 'wss:') throw new Error('Expected a secure CDP URL');
const headers = {
[headerName]: headerName.toLowerCase() === 'authorization' ? `Bearer ${accessToken}` : accessToken,
};
browser = await chromium.connectOverCDP(cdpUrl, { headers });
const page = await browser.contexts()[0].newPage();
await page.goto('https://example.com/', { waitUntil: 'domcontentloaded' });
console.log(await page.title());
} finally {
try {
await browser?.close();
} finally {
await api('DELETE', `/sessions/${sessionId}`);
await waitFor(sessionId, ['ended', 'failed']);
console.log('Session stopped');
}
}node --env-file=.env cloud-browser-playwright.mjsPuppeteer
npm install puppeteer-core@25.16.0Save as cloud-browser-puppeteer.mjs:
import { randomUUID } from 'node:crypto';
import { setTimeout as delay } from 'node:timers/promises';
import puppeteer from 'puppeteer-core';
const apiKey = process.env.NSTDATA_API_KEY;
if (!apiKey) throw new Error('NSTDATA_API_KEY is required');
const baseUrl = 'https://api.nstdata.io/api/v1/cloud-browser';
async function api(method, path, body) {
const response = await fetch(`${baseUrl}${path}`, {
method,
headers: {
'x-api-key': apiKey,
'Content-Type': 'application/json',
...(process.env.NSTDATA_TEAM_ID ? { 'x-team-id': process.env.NSTDATA_TEAM_ID } : {}),
},
body: body === undefined ? undefined : JSON.stringify(body),
signal: AbortSignal.timeout(path === '/sessions' && method === 'POST' ? 150_000 : 30_000),
redirect: 'error',
});
const result = await response.json();
if (!response.ok || result.err || result.success === false) {
throw new Error(`${method} ${path}: HTTP ${response.status}: ${result.msg ?? result.code}`);
}
return result.data;
}
async function waitFor(sessionId, states) {
const deadline = Date.now() + 90_000;
while (Date.now() < deadline) {
const session = await api('GET', `/sessions/${sessionId}`);
if (states.includes(session.state)) return;
if (['ended', 'failed'].includes(session.state)) throw new Error(`Session ${session.state}`);
await delay(1000);
}
throw new Error(`Session ${sessionId}: status timeout`);
}
const request = {
requestId: randomUUID(),
name: 'example',
recording: false,
captchaSolver: { enabled: false },
};
console.log('requestId:', request.requestId);
const { sessionId } = await api('POST', '/sessions', request);
if (!sessionId) throw new Error('Missing sessionId');
console.log('sessionId:', sessionId);
let browser;
try {
await waitFor(sessionId, ['ready']);
const { cdpUrl, headerName, accessToken, expiresAt, sessionId: credentialSessionId } =
await api('POST', `/sessions/${sessionId}/automation-credentials`);
if (credentialSessionId !== sessionId || !accessToken || !(Date.parse(expiresAt) > Date.now())) {
throw new Error('Invalid or expired CDP credentials');
}
if (new URL(cdpUrl).protocol !== 'wss:') throw new Error('Expected a secure CDP URL');
const headers = {
[headerName]: headerName.toLowerCase() === 'authorization' ? `Bearer ${accessToken}` : accessToken,
};
browser = await puppeteer.connect({ browserWSEndpoint: cdpUrl, headers, defaultViewport: null });
const page = await browser.newPage();
await page.goto('https://example.com/', { waitUntil: 'domcontentloaded' });
console.log(await page.title());
} finally {
try {
await browser?.disconnect();
} finally {
await api('DELETE', `/sessions/${sessionId}`);
await waitFor(sessionId, ['ended', 'failed']);
console.log('Session stopped');
}
}node --env-file=.env cloud-browser-puppeteer.mjsA successful run prints Example Domain and then Session stopped, confirming that the session ended. Recording and automatic CAPTCHA are disabled; other omitted parameters use service defaults. Sessions are metered. The script attempts to stop the browser after task success or failure.
Add creation parameters to request and put page tasks in the try block containing page.goto. Keep the stop logic in finally; it also runs after connection failure. After forced process termination, check and stop the session in Session History.
The examples create a page. To continue an existing sign-in flow, connect to the original session using the sessionId saved by your application and select its page by URL. Use the original Playwright browser context; a new context does not share its cookies. The Live View or DevTools selection does not select your script's target page.
API Authentication and Connection Lifetime
| Endpoints | Authentication |
|---|---|
| Creation, listing, status, stopping, options, estimates, individual and batch session costs | API key (x-api-key), or dashboard login authentication |
automation-credentials | API key (x-api-key) |
| Renaming, Live View credentials, configuration details, aggregate statistics | Dashboard login authentication |
POST /api/v1/cloud-browser/sessions/{sessionId}/automation-credentials returns data.cdpUrl, headerName, accessToken, and expiresAt. cdpUrl is the CDP WebSocket address. Use Bearer <accessToken> when headerName is Authorization; use the raw token for other header names. The example constructs connection parameters from the response.
Send the business key in x-api-key and use one credential per request. Compatible alternatives include Authorization and x-api-token; see the API reference (opens in a new tab). Keep keys and short-lived CDP tokens out of URLs. Team member keys always use their bound team; x-team-id cannot switch them to another team. The dashboard's CDP button copies an object with prepared headers, whose shape differs from the raw HTTP response.
Connection credentials have their own expiresAt; refreshing them does not extend session lifetime. After a disconnect, confirm that the original session is still ready, obtain fresh credentials, reconnect, and select the page again. Reconnecting does not resume script execution; check website results before repeating a submission. Playwright uses browser.close() to disconnect an attached client; Puppeteer uses browser.disconnect(). Ending the cloud session still requires the stop endpoint.
Inspect a Running Page
Live DevTools helps investigate a page while the session runs. You do not need to enable recording to use it.
- In the preview's upper-right tools area, click DevTools. Use Expand Tools first if necessary.
- Wait for Connected, then use Page to select the page you want to inspect.
- Select a panel and generate page activity in Live View or your automation script:
| Panel | Information available | Typical use |
|---|---|---|
| Elements | Click Refresh to retrieve the page's current read-only HTML snapshot | Check whether a target element exists and inspect its attributes and DOM structure |
| Console | Newly received message levels, message text, and JavaScript exceptions | Investigate page-script errors or diagnostic output that your automation writes inside the page |
| Network | Request method, status or failure reason, and URL; expand a row for MIME type and available sanitized request/response headers | Check failed sign-in requests, redirects, and resource loads |
Live View controls the browser window; Page selects what DevTools inspects. Selecting a diagnostic target does not select the page in your script.
Use the docking controls to place DevTools at the bottom or right of the preview. Search the Console or Network entries by text, filter Console messages by level, or filter Network requests by type. Use Clear to clear the displayed Console/Network rows, or Reconnect if the connection is lost. Select the page again after switching tabs when needed.
To check the Console connection, open DevTools and select the page, then execute await page.evaluate(() => console.info("Cloud Browser console check")) inside your page-task block. Page logs appear in the remote Console; script console.log writes to the local terminal. Navigation produces requests for Network inspection.
The panels show recent activity for the selected page, not an unlimited history. Events missed before connection or during a disconnect may be unavailable. Elements is read-only, and Network does not include complete request/response bodies or HAR export.
Record and Replay a Session
Enable Recording and Choose Input Privacy
Session Recording saves page interactions and available Console/Network diagnostics for review and troubleshooting once the recording archive is ready. Unlike Live View, replay reconstructs earlier page changes from saved data without operating the current browser.
Enable recording before launch when you need a record of the task. Leave it off for ordinary browsing or when live inspection is sufficient.
Keep Hide Input Content on to mask ordinary form inputs. Turn it off only if those values are needed in the replay. Passwords remain masked in either mode. This setting does not hide other page text or information printed by the website, so avoid recording secrets and unnecessary personal data.
Recording must be enabled before launch; it cannot reconstruct earlier activity from an unrecorded session. If launch fails because recording is not configured or available, follow the error message and contact support. If the task does not need a recording, turn recording off before trying again.
The recording limit comes from options.features.recording.maxDurationSeconds. At the recording limit, the service stops collection and archives the data already captured. The browser can continue running, with Live View, CDP, and Automatic CAPTCHA still available; browser runtime charges continue. The recording limit and Session Duration apply independently.
There is no separate user control to stop recording while keeping the browser running. Stop Browser ends the browser as well as collection; closing only the preview does neither.
Open and Navigate a Replay
- When you finish the task, you can click Stop Browser and wait for the recording to be archived. If the recording is already archived, you do not need to stop a browser that is still running.
- Open Cloud Browser → Session History and click the session name. Page Observations and Session Replay load automatically in the details page when recording data is available.
- When several recorded documents are available, use Replay Page to choose one. You can also click a URL entry in Page Observations to select its document and locate the corresponding moment. Each document has its own timeline; navigating the same tab can create several documents. There is no synchronized timeline across tabs.
- Click Play. Drag the timeline to move to a different position. Seeking during playback continues playback; seeking while paused keeps it paused. Playback stops at the end.
- Click the speed control to cycle through 1×, 1.5×, 2×, and 4×. Open DevTools when you need to compare the replay with its diagnostics.
Inspect a Replay
Replay DevTools shows saved data for the selected page and playback position. It does not connect to or operate a running browser.
| Panel | What you can inspect |
|---|---|
| Elements | The read-only DOM reconstructed at the current replay position; use Refresh to read it again |
| Console | Recorded messages and exceptions associated with the selected page and playback position |
| Network | Recorded requests and available diagnostic metadata associated with the selected page and playback position |
Dock DevTools at the bottom or right of the replay. Use text search, Console level filters, or Network type filters to narrow the displayed entries. Entries whose page or time association cannot be determined remain marked as unknown.
Replay reconstructs page interactions from recorded data rather than playing an MP4 video. Page scripts and external resources are not loaded, so images, fonts, or canvas content can differ from the original. Elements reflects the reconstructed page, not the live website.
Recording Availability and Replay Windows
If a recording is still being collected or archived, follow the message in the details page and wait before refreshing. If loading fails, use Refresh to retry. Sessions that were not recorded, or failed to start without generating a recording, have no replay; expired or deleted recordings cannot be loaded again from the details page.
Retention is separate from recording duration. Access is limited by both the recording's expiry and the workspace's current recording-retention entitlement, counted from session creation, not from browser shutdown or archive completion. Reopening a replay does not restart retention; changes to workspace entitlements can affect access to older recordings.
A ready recording is archived and available for reading; partial means archived but incomplete. Neither state guarantees that every page has a usable snapshot. Recording availability is separate from the browser session state.
If the page warns that a recording is incomplete, you can inspect available data, but a page without a usable snapshot may have diagnostics only. Missing events cannot be recovered. Follow the warnings about missing snapshots or incomplete diagnostics, and select another page when available.
Large recordings may show Replay window. Select the relevant page document and time range; playback and diagnostics cover only the selected window. If a window fails to load, refresh to retry or select another available window. Older recordings without a time-window index may offer limited data.
Use online replay for everyday review. When window-based replay offers Download current window (JSON), it exports only the currently loaded window. The JSON is recording data, not the complete recording or a video that can be opened in a standard video player.
Automatic CAPTCHA
Automatic CAPTCHA detects and handles supported challenges as the browser visits websites. It works with manual interaction in Live View and automation scripts. The feature is off by default; you do not need to install an extension or supply a third-party solver API Key.
Enable and Use
- Turn on Automatic CAPTCHA before creating the session. If you use a scenario template, select the template first, then enable this option.
- Launch the browser, visit the website, and perform the sign-in, search, or form-entry steps.
- When a recognizable, supported challenge appears, the service attempts to solve it and apply the result. Watch the page notice or read the status below to distinguish processing from application or native verification.
- Observe the website in Live View, or have your script wait for the website's success state, such as a signed-in page or submission result, before continuing.
Your script still performs the website's required clicks, submissions, and result checks. Completing a CAPTCHA does not complete the entire workflow.
If enabling Automatic CAPTCHA causes launch to fail because the service is not enabled or configured, follow the error message and contact support. Turn the option off before retrying if the task can proceed without automatic CAPTCHA handling.
Tell Whether a CAPTCHA Has Passed
Live View shows a notice in the target page while a challenge is processed. A returned/applied/solved notice disappears after a few seconds; disappearing does not mean the task failed. For scripts, read the top-level target page, rather than a CAPTCHA iframe:
const status = await page.evaluate(() => {
const raw = document.documentElement.getAttribute('data-nst-captcha-status');
return raw ? JSON.parse(raw) : null;
});
console.log(status);Use the connected page from the Playwright or Puppeteer example, after navigating to your target website. The JSON snapshot has schemaVersion: 1, state, activeCount, and widgets. When a task is present, it also has an id, captchaType, updatedAt (Unix milliseconds), and sometimes errorCode. Each widgets entry has its own id, widgetId, type, state, update time, and optional error code. These IDs identify page feedback, not paid-task IDs for an HTTP result lookup.
| State | What is known | What your script should do |
|---|---|---|
No attribute / null | No feedback has been read from this document | Check the selected page, session enablement, and whether feedback has loaded; do not infer success or failure |
idle | No current task feedback is retained | Trigger the intended website flow if needed; this does not prove the solver is configured or that no challenge exists |
solving | A recognized challenge is being processed | Wait; avoid repeated refreshes or submissions |
returned | An answer returned; application is not yet confirmed | Continue waiting for this task; a returned token is not a pass |
applied | The result was applied to the page's verification flow | Perform the required website action and check its result; some challenge types do not report solved |
solved | The native CAPTCHA widget reported success | Continue the website workflow and verify its business result |
error | Automatic processing or result application failed | Read errorCode; use manual verification where possible or investigate before retrying |
paused | Automatic solving paused because of insufficient balance | Check the balance of the session's workspace |
unavailable | Automatic solving is currently unavailable | Check configuration/access and retry later or use native verification |
An enabled session setting does not prove the extension loaded or that a task succeeded. Feedback is short-lived: completed entries are removed, navigation clears page feedback, and multiple widgets can be present. The top-level state favors active work, so inspect widgets and the relevant task ID instead of treating one aggregate state as proof that every challenge passed. Page feedback contains no solver answer or access credential; it is a diagnostic signal, not a trusted server-side verification result.
Wait for a Specific In-progress Challenge
After reading status above, this Playwright fragment selects one in-progress task and waits for the same ID. If multiple tasks are active, choose the relevant entry using its widgetId/type instead. Run it while the challenge is processing, without navigating away:
const widget = status?.widgets?.find(item => ['solving', 'returned'].includes(item.state));
if (!widget) throw new Error('No in-progress task. Inspect the current snapshot and website result.');
const resultHandle = await page.waitForFunction(id => {
const raw = document.documentElement.getAttribute('data-nst-captcha-status');
if (!raw) return false;
const snapshot = JSON.parse(raw);
const current = snapshot.widgets?.find(item => item.id === id);
return current && ['applied', 'solved', 'error', 'paused', 'unavailable'].includes(current.state)
? current : false;
}, widget.id, { polling: 500, timeout: 300000 });
const result = await resultHandle.jsonValue();
await resultHandle.dispose();
console.log(result);
if (!['applied', 'solved'].includes(result.state)) {
throw new Error(result.errorCode || `CAPTCHA state: ${result.state}`);
}The example polls every 500 milliseconds instead of relying on animation-frame callbacks. The five-minute timeout is a caller wait budget, not a promise of solve time. A timeout or a disappeared ID means no terminal result was observed; inspect the current page rather than automatically submitting again. Even on applied/solved, check the target site's result, such as a successful sign-in redirect or form response. Do not wait exclusively for solved: text entry and token application can finish at applied. See Playwright waitForFunction (opens in a new tab) for the wait API.
Observe status changes as events
The page emits nst:captcha-status; event.detail is a JSON string, not an object. Install this observer on the current page and before future navigations:
const observeCaptcha = () => {
if (window.top !== window) return;
window.addEventListener('nst:captcha-status', event => {
const snapshot = JSON.parse(event.detail);
console.info('CAPTCHA status', snapshot.state, snapshot.activeCount, snapshot.widgets);
});
};
await page.addInitScript(observeCaptcha);
await page.evaluate(observeCaptcha);This Playwright observer prints in the remote page Console. Open live DevTools before reproducing the challenge to see it. Read the snapshot as well: a listener does not replay earlier events. A new tab needs its own observer. Playwright addInitScript (opens in a new tab) installs the listener for subsequent navigations.
Troubleshoot the Result
If feedback stays at returned, the answer has not been confirmed as applied. CAPTCHA_RESULT_NOT_APPLIED means application was not acknowledged; CAPTCHA_TASK_TIMEOUT means no completion was observed in time. Capture the state, relevant task/widget ID, update time, and error code before leaving the page. A task that succeeded on the solver side can still fail application or be rejected by the website.
There is currently no customer HTTP endpoint for a durable per-widget page-verification result. Session detail exposes enablement and available aggregate successes; these do not replace page feedback or target-site checks. Do not call extension-internal routes or supply your own runtime configuration to obtain status.
Coverage and Usage
Challenge families include reCAPTCHA v2, reCAPTCHA v3, text CAPTCHA, AWS CAPTCHA, and Cloudflare Turnstile. Actual handling depends on the types enabled by the service and the website's verification method. Text CAPTCHA requires a recognizable relationship between the challenge image and its input field; complex or custom forms may not be matched automatically.
CAPTCHA usage is charged separately from browser runtime and proxy traffic. Session History shows available CAPTCHA Successes; see the usage figures below for what this count means. If processing fails, check your balance, whether the feature is enabled, and the website's message. Avoid repeatedly refreshing or submitting while investigating, since this can trigger additional challenges.
Session History and Usage
Find a Session
Open Cloud Browser → Session History in the personal or team workspace where the session was created. Search by name, Session ID, or a URL saved with the session or its recording, and use the status filter to narrow the list. URL search does not imply that every visited URL was recorded.
The overview shows active sessions, completed records, total proxy traffic, and total CAPTCHA successes. The list shows each session's name, source, status, proxy country, duration, available proxy traffic, CAPTCHA successes, and creation time. An indicator identifies sessions with an available replay. Click a session name to open its details.
Review Session Details
The details page shows available configuration information, such as resource class, configured duration, resolution, operating system/region, and User-Agent, alongside session duration, proxy traffic, and CAPTCHA successes. Configuration or usage values that have not been returned may appear as placeholders.
For a running session, use Live View to continue working with the same browser. The session actions let you copy fresh CDP credentials or stop the browser. Returning to an empty Playground does not mean the previous session has ended; locate it here before starting another one.
When an available recording is ready, Page Observations and Session Replay load automatically. Missing page indexes are built automatically as part of loading. Page observations show recorded URLs and their time offsets; click an entry to locate the corresponding page and moment in the replay. These records depend on available recording data and may not include every page visit or tab switch. If loading fails, follow the message and use Refresh to retry.
For a session without a usable recording, the details page explains why replay is unavailable. Use the recording and replay guide to review available pages and diagnostics.
Read Usage Figures
| Figure | What it means |
|---|---|
| Duration | The session's recorded runtime; distinguish it from the configured duration limit |
| Proxy Traffic | Available traffic usage attributed to the session |
| CAPTCHA Successes | Solver tasks reported as successful (ready), counted once per task in the available records; this is not the number of website verifications, sign-ins, or form submissions that succeeded |
For CAPTCHA figures, disabled (captchaEnabled: false), an available count of 0, and unavailable (captchaSuccesses: null) mean different things: not enabled, no successful tasks in the available records, and no available count. None proves that a page challenge passed. Usage can be unavailable while data is loading or processing; a missing value does not mean zero usage. CAPTCHA figures depend on retained task records; counts for expired or deleted tasks cannot be recovered from this figure.
Session history provides these usage figures, without an itemized cost panel. Browser runtime, proxy traffic, and CAPTCHA usage are charged separately; usage counts should not be read as a settled bill.
Troubleshooting
| Question | What to check |
|---|---|
| Why is Launch Browser unavailable? | Check available balance, loaded configuration options, and field errors. If an earlier launch is still being confirmed, check that session before creating another |
Launch returns CLOUD_BROWSER_CONCURRENCY_LIMIT. | The workspace has reached its concurrent-session limit. Check running sessions in Session History, stop any you no longer need, and wait for them to end before retrying. If you need more concurrency, review and upgrade your plan on Subscribe |
| Why is Estimated Cost unavailable? | Check the duration and retry. An estimate error is separate from a failed launch; the Launch Browser button shows whether creation is available |
| The session is starting or confirming. Should I launch again? | Wait for the current result and check the existing session in history. Avoid starting a second session until its status is clear |
| Live View disconnected. Did the browser stop? | Check session status. If it is still running, use Refresh Preview or reopen Live URL; after leaving Playground, find the session in Session History |
| The preview is blank, but the session is still running. | Try Refresh Preview, then use the ↗ external-link icon (Live URL) to open a separate tab. If the separate view works, continue there and report the embedded-preview issue to support. Do not create a duplicate session |
| Playground is empty after I return. Has the previous session ended? | Playground does not automatically restore the previous preview. Find the original session in Session History and check its status before launching another |
| An API request returns 401. | Confirm that x-api-key contains a valid business key; team-mode accounts must use a team member key. Check that .env is loaded and that an existing process environment variable is not overriding it. If it still fails, send support the request path, time, and error response |
| CDP authentication failed. | Confirm the same session is ready, request fresh credentials, and construct CDP headers using the returned headerName and accessToken |
| Console or Network is empty. | Wait for Connected, select the correct Page, then generate new page activity |
| Launch fails after enabling recording or Automatic CAPTCHA. | If the error says the service is not enabled or configured, contact support. Turn off the affected option before retrying if your task does not need it |
| Why does a CAPTCHA remain after enabling the feature? | Read the page status. Distinguish solving, answer application, and native verification; check the relevant widget's error code and the website's result |
| CAPTCHA Successes increased, but the website rejected the submission. | The count reflects solver-side ready tasks. Check page feedback for application failure and the website response for rejection; the count does not prove this submission passed |
| Configuration options failed to load or a custom value changed. | Retry loading options and check the displayed bounds. HTTP callers should inspect warnings/effectiveConfiguration; do not retry indefinitely with the same invalid value |
| Why are language and timezone unchanged? | Check Follow IP versus Custom settings. If GeoIP is unavailable, the configured proxy and original fingerprint are retained |
| Why is replay unavailable in the details page? | Confirm recording was enabled before launch, then follow the message in Session Replay. Wait and refresh if data is still being collected or archived. Unrecorded sessions, sessions that failed to start without generating a recording, and expired or deleted recordings have no replay |
| Replay has missing visuals or events. | Check the replay warning and select another Replay Page or available window. Incomplete snapshots and blocked external resources can limit reconstruction |
| Where are the session's cost details? | Session history shows duration, proxy traffic, and CAPTCHA successes. It does not provide an itemized cost panel |
| I cannot find a session. | Switch to the personal or team workspace in which it was created and check access permissions |
For unresolved issues, send support the Session ID, failure time, action attempted, and error message. For HTTP errors, include the returned diagnostic requestId and readable reason when present; for CAPTCHA issues, include the relevant feedback state and error code. Copy the Session ID from the preview header when available. Do not include API Keys, connection credentials, or private recordings.
Developer Documentation
For API integration, see the Cloud Browser developer documentation (opens in a new tab).