For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Logo
Portal
GuidesRecipesAPI ReferenceChangelog
GuidesRecipesAPI ReferenceChangelog
  • Airtop API
      • Wait for Session Ready
      • Get Window Info for Puppeteer Page
      • Get Window Info for Playwright Page
      • Get Window Info for Selenium Driver
      • Batch Operate
      • Process Screenshots
Portal
Airtop APIExtras

Wait for Session Ready

1import { AirtopClient } from '@airtop/sdk';
2
3const client = new AirtopClient({ apiKey: AIRTOP_API_KEY });
4const { data: session } = await client.sessions.create({
5 configuration: {
6 skipWaitSessionReady: true,
7 },
8});
9await client.sessions.waitForSessionReady(session.id);
Was this page helpful?
Previous

Get Window Info for Puppeteer Page

Next
Built with

Manually wait for a session to be ready.

Parameters

id
stringRequired

The unique identifier of the session.

requestOptions
Windows.RequestOptions

Additional options to customize the request behavior.

+ Show 3 properties
timeoutInSeconds
number

The maximum time to wait for a response in seconds.

maxRetries
number

The number of times to retry the request. Defaults to 2.

abortSignal
AbortSignal

A hook to abort the request.

Returns

Returns a Promise that resolves when the session is ready