Remote Scraper Action icon

Remote Scraper Action

Execute browser automation actions on a remote scraper

Get HTML

AI-generated

Summary

Retrieve the HTML content of the current page or a specific element within it on the remote scraper session.

Inputs

  • Session ID — Optional session ID from a previous action to continue the same browser session; leave empty to create a new session.
  • Selector — CSS selector specifying the element to get HTML from; if empty, gets the whole page's HTML.
  • Outer — Boolean option to return the outer HTML of the selected element if true, or inner HTML if false.
  • Wait For Stable — Wait until the page DOM stops changing (stable) before getting HTML; useful for dynamic or SPA content.
  • Stable Duration — Duration in milliseconds the DOM must remain stable when 'Wait For Stable' is enabled.
  • Stable Timeout — Maximum time in milliseconds to wait for the DOM to stabilize before timing out.
  • Stable Poll Interval — Interval in milliseconds to check the DOM stability when 'Wait For Stable' is enabled.

Output shape

a single JSON object containing a 'message' and an 'artifact' with details about the HTML content file.

The returned 'artifact' includes filename, URL, size in bytes, and MIME type of the HTML content. The action output also includes a session_id for chaining subsequent actions in the same session.

Links

Discussion