Volver al catálogo

HTML/CSS to Image

htmlcss_to_image

HTML/CSS to Image converts HTML, CSS, public web pages, and reusable templates into images and PDFs through an API.

Acciones
10
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (10)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Create ImageHTMLCSS_TO_IMAGE_CREATE_IMAGEAcción

Create a hosted image from HTML/CSS or an internet-reachable webpage, including authenticated pages using request headers. Use GET_IMAGE afterward to download, resize, crop, or convert it.

Parámetros de entrada

  • cssstring

    CSS applied to supplied HTML or injected into a captured webpage.

  • urlstring

    Absolute, internet-reachable HTTP(S) webpage URL to capture. Set this or html, but not both; use headers for authenticated pages.

  • htmlstring

    HTML to render. Set this or url, but not both.

  • headersobject

    HTTP headers sent to the captured page, with at most 20 case-insensitive names.

  • ms_delayinteger

    Delay rendering by 0 to 10000 milliseconds.

  • selectorstring

    CSS selector for the element to capture.

  • timezonestring

    IANA timezone exposed to the rendered page.

  • media_typestringenum

    CSS media type used while rendering: screen or print.

    screenprint
  • full_screenboolean

    Capture the full scrollable page instead of only the viewport.

  • max_wait_msinteger

    Maximum wait from 500 to 10000 milliseconds for page loading.

  • color_schemestringenum

    Preferred browser color scheme: light or dark.

    lightdark
  • device_scalenumber

    Device scale factor from 0.1 to 3.

  • google_fontsstring[]

    Google Font family names to load while rendering.

  • viewport_widthinteger

    Viewport width in pixels, from 1 to 6000. Requires viewport_height.

  • viewport_heightinteger

    Viewport height in pixels. Requires viewport_width.

  • dedupe_duration_sinteger

    Reuse a matching recent render for this many seconds. Allowed durations depend on the account plan; free accounts accept 0 or 2592000 (30 days).

  • render_when_readyboolean

    Wait until the page signals that rendering is ready.

  • block_consent_bannersboolean

    Attempt to block common consent banners.

  • transparent_backgroundboolean

    Render a transparent background where supported.

  • additional_header_originsstring[]

    Up to 20 unique exact HTTP(S) origins that may also receive headers.

  • include_headers_on_subrequestsboolean

    Also include supplied headers on page subrequests.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Image from TemplateHTMLCSS_TO_IMAGE_CREATE_IMAGE_FROM_TEMPLATEAcción

Create an image from a reusable template using the latest version or an explicitly selected version.

Parámetros de entrada

  • template_idstringObligatorio

    Template ID from LIST_TEMPLATES or CREATE_TEMPLATE.

  • template_valuesobjectObligatorio

    Values supplied to the template's Handlebars variables.

  • template_versioninteger

    Specific version to render; omit to use the latest version.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Images BatchHTMLCSS_TO_IMAGE_CREATE_IMAGES_BATCHAcción

Create 1 to 25 hosted images from HTML/CSS or internet-reachable webpages in one request, including authenticated pages using shared or per-image headers. Requires an account plan that supports batch creation.

Parámetros de entrada

  • variationsobject[]Obligatorio

    One to 25 image requests; each overrides matching default_options fields.

  • default_optionsobject

    Shared render settings applied before each variation's overrides.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create TemplateHTMLCSS_TO_IMAGE_CREATE_TEMPLATEAcción

Create a reusable Handlebars HTML/CSS image template. WARNING: the template is persistent because the API exposes no delete operation, and a free account can hold only one template.

Parámetros de entrada

  • cssstring

    CSS applied to the template.

  • htmlstringObligatorio

    Handlebars HTML for the reusable template.

  • namestring

    Template name, at most 64 characters.

  • descriptionstring

    Template description, at most 1024 characters.

  • render_optionsobject

    Optional free-tier render settings for this template.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete ImageHTMLCSS_TO_IMAGE_DELETE_IMAGEAcción

Permanently delete one generated image and clear its HCTI CDN cache. Copies previously written to external storage are not deleted.

Parámetros de entrada

  • image_idstringObligatorio

    Image ID to permanently delete.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Images BatchHTMLCSS_TO_IMAGE_DELETE_IMAGES_BATCHAcción

Permanently delete multiple generated images and clear their HCTI CDN caches. Copies previously written to external storage are not deleted.

Parámetros de entrada

  • image_idsstring[]Obligatorio

    Non-empty list of image IDs to permanently delete.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get or Transform ImageHTMLCSS_TO_IMAGE_GET_IMAGEAcción

Download a generated image by ID, optionally converting its format, resizing it, or cropping it.

Parámetros de entrada

  • dpiinteger

    Output DPI from 30 to 600, primarily for PDF output.

  • widthinteger

    Output width in pixels, up to 5000.

  • formatstringenum

    Output file format. Defaults to PNG when omitted.

    pngjpgwebppdf
  • heightinteger

    Output height in pixels, up to 5000.

  • crop_topstring

    Top crop coordinate or percentage.

  • image_idstringObligatorio

    Generated image ID returned by an image creation tool.

  • x_originstringenum

    Horizontal origin used for aspect-ratio cropping.

    startcenterend
  • y_originstringenum

    Vertical origin used for aspect-ratio cropping.

    startcenterend
  • crop_leftstring

    Left crop coordinate or percentage.

  • crop_rightstring

    Right crop coordinate or percentage.

  • crop_widthstring

    Crop width as a pixel coordinate or percentage.

  • crop_bottomstring

    Bottom crop coordinate or percentage.

  • crop_heightstring

    Crop height as a pixel coordinate or percentage.

  • aspect_ratiostring

    Crop aspect ratio in width_height form, such as 16_9.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get UsageHTMLCSS_TO_IMAGE_GET_USAGEAcción

Return recent hourly, daily, monthly, and billing-period image usage for the connected account.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List TemplatesHTMLCSS_TO_IMAGE_LIST_TEMPLATESAcción

List reusable image templates owned by the connected account, including their current version, source, and render settings.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update TemplateHTMLCSS_TO_IMAGE_UPDATE_TEMPLATEAcción

Create a new version of an existing template using replacement Handlebars HTML and optional CSS or render settings.

Parámetros de entrada

  • cssstring

    CSS for the new template version.

  • htmlstringObligatorio

    Replacement Handlebars HTML for the new template version.

  • namestring

    Template name, at most 64 characters.

  • descriptionstring

    Template description, at most 1024 characters.

  • template_idstringObligatorio

    Existing template ID from LIST_TEMPLATES or CREATE_TEMPLATE.

  • render_optionsobject

    Optional free-tier render settings for the new template version.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not