RenderPix icon

RenderPix

Convert HTML to pixel-perfect images and capture URL screenshots

Screenshot URL

AI-generated

Summary

Captures a screenshot of a public URL through the RenderPix API (POST /v1/screenshot) and returns the image as binary data, a base64 string, or a data URL. Runs once per input item.

Inputs

  • url (required) — Publicly accessible URL to capture.
  • width — Viewport width in pixels (default 1280).
  • height — Viewport height in pixels (default 720).
  • format — Output format: PNG (default), JPEG or WebP.
  • quality — Compression quality 1–100 (default 90). Shown and sent only for JPEG/WebP.
  • scale — Device pixel ratio: 1×, 2× (Retina) or 3× (default 1×).
  • advancedOptions — Optional collection. CSS Selector captures only the matching element (Pro+). Full Page captures the full scrollable height (Pro+). Wait Until sets page readiness: Load, DOM Content Loaded or Network Idle. It is only sent when it isn't Load.
  • returnAs — Output form: Binary File (default), Base64 String or Data URL.
  • binaryPropertyName — Binary property that holds the image when returning Binary File (default 'data').

Output shape

One output item per input item. The JSON contains success, format, width, height, renderTime and usageRemaining. Depending on Return As, it also has a binary image under the chosen property, an imageBase64 string, or an imageUrl data URL.

width, height, renderTime and usageRemaining come from the x-width, x-height, x-render-time and x-usage-remaining response headers. width and height fall back to the requested values, and renderTime and usageRemaining fall back to 0 if the headers are missing. With Continue On Fail enabled, a failed item returns {success:false, error, statusCode}. Otherwise the node throws an API error. Requires RenderPix API credentials, and the base URL defaults to https://renderpix.dev.

Examples

Example 1: Take a retina PNG of a landing page and attach it to an email.

URL=https://example.com, Format=PNG, Device Scale=2×, Return As=Binary File, Binary Property Name=data.

Example 2: Capture a full-page JPEG of a data-heavy dashboard.

Format=JPEG, Quality=80, Advanced Options: Full Page=true, Wait Until=Network Idle, Return As=Binary File.

Example 3: Screenshot a single element and embed it in HTML.

Advanced Options: CSS Selector=#my-card, Return As=Data URL.

Links

Discussion