Remote Scraper Action icon

Remote Scraper Action

Execute browser automation actions on a remote scraper

Set Cookies

AI-generated

Summary

Set cookies in the browser context of a remote scraper session to be sent with the initial page request.

Inputs

  • Session ID — Optional session ID from a previous action to continue an existing browser session. Leave empty to start a new session automatically.
  • Cookies — A JSON list of cookies to set in the browser context before any navigation occurs.

Output shape

a single record containing the count of cookies set and the session ID for chaining.

The operation returns the number of cookies successfully set. Provide cookies as an array of objects including required name and value fields, and optionally domain, path, url, expires, http_only, secure, and same_site attributes. Call this operation before navigation actions to have the cookies included on the first request. The session ID flows through the node output for use in subsequent actions to maintain continuity.

Examples

Example 1: Set session cookies for authentication before navigating to a website

Provide a valid session ID from a prior node or leave empty to create a new session, and supply an array of cookie objects with name and value pairs to establish session state.

Links

Discussion