Skip to main content
Version: v2

Schemas

This page presents reference for all remaining schemas.

CaptchaTypes

Represents an enumeration of supported captcha types.

Enum ValueDescription
hcaptchaRepresents the hCaptcha type.

CookieInput

Represents the structure for defining cookie input properties.

FieldTypeDescription
nameString!The cookie's name.
valueString!The cookie's value.
urlStringThe request-URI to associate with the cookie, affecting default domain, path, source port, and scheme.
domainStringThe domain associated with the cookie.
pathStringThe path associated with the cookie.
secureBooleanIndicates if the cookie is secure.
httpOnlyBooleanIndicates if the cookie is HTTP-only.
sameSiteCookieSameSiteSpecifies the SameSite policy for the cookie.
expiresFloatThe expiration date of the cookie as a timestamp. Session cookie if not set.

CookieSameSite

Represents an enumeration of supported SameSite cookie policies.

Enum ValueDescription
StrictStrict SameSite policy.
LaxLax SameSite policy.
NoneNo SameSite policy enforced.

Method

Represents an enumeration of supported HTTP methods for waiting.

Enum ValueDescription
GETHTTP GET method.
HEADHTTP HEAD method.
POSTHTTP POST method.
PUTHTTP PUT method.
DELETEHTTP DELETE method.
CONNECTHTTP CONNECT method.
OPTIONSHTTP OPTIONS method.
TRACEHTTP TRACE method.
PATCHHTTP PATCH method.

PDFPageFormat

Represents an enumeration of supported PDF page formats.

Enum ValueDimensions
letter8.5in x 11in
legal8.5in x 14in
tabloid11in x 17in
ledger17in x 11in
a033.1102in x 46.811in
a123.3858in x 33.1102in
a216.5354in x 23.3858in
a311.6929in x 16.5354in
a48.2677in x 11.6929in
a55.8268in x 8.2677in
a64.1339in x 5.8268in

RequestInput

Represents the structure for specifying input for HTTP request monitoring.

FieldTypeDescription
urlStringThe pattern of the request URL to wait for, using glob-style pattern-matching.
methodMethodThe HTTP method of the request.

ResponseInput

Represents the structure for specifying input for HTTP response monitoring.

FieldTypeDescription
urlStringThe pattern of the response URL to wait for, using glob-style pattern-matching.
codes[Int]The HTTP response code(s) to wait for. Can be a single HTTP code or a list of desired codes.

ScreenshotClip

Represents the structure for specifying a region to clip in a screenshot.

FieldTypeDescription
xFloatThe x-coordinate to start clipping, in pixels.
yFloatThe y-coordinate to start clipping, in pixels.
widthFloatThe width of the clip, in pixels.
heightFloatThe height of the clip, in pixels.
scaleFloatThe scale factor of the clip.

ScreenshotType

Represents an enumeration of supported screenshot formats.

Enum ValueDescription
jpegJPEG image format.
pngPNG image format.
webpWEBP image format.

StandardCookie

Represents the structure of a standard cookie object.

FieldTypeDescription
nameString!The cookie's name.
valueString!The cookie's value.
urlStringThe request-URI to associate with the cookie, affecting default domain, path, source port, and scheme.
domainStringThe domain associated with the cookie.
pathStringThe path associated with the cookie.
secureBooleanIndicates if the cookie is secure.
httpOnlyBooleanIndicates if the cookie is HTTP-only.
sameSiteCookieSameSiteSpecifies the SameSite policy for the cookie.
expiresFloatThe expiration date of the cookie as a timestamp. Session cookie if not set.

VerifyTypes

Represents an enumeration of supported verification types.

Enum ValueDescription
cloudflareRepresents the Cloudflare verification type.

WaitUntilGoto

Represents an enumeration of options for determining when the page is considered loaded.

Enum ValueDescription
commitFired when a network response is received and the document starts loading.
domContentLoadedFired when the DOMContentLoaded event is fired.
loadFired when the load event occurs.
firstMeaningfulPaintIndicates when the primary content of the page is visible to the user.
firstContentfulPaintThe render time of the largest image or text block visible in the viewport.
networkIdleFired when there are no network connections for at least 500 ms. Use with caution.
interactiveTimeChrome's best guess as to when the page becomes interactable. Use with caution.

WaitUntilHistory

Represents an enumeration of options for determining when the history event occurs.

Enum ValueDescription
commitFired when a network response is received and the document starts loading.
domContentLoadedFired when the DOMContentLoaded event is fired.
loadFired when the load event occurs.
networkIdleFired when there are no network connections for at least 500 ms. Use with caution.