PDF Api Hub icon

PDF Api Hub

HTML to PDF

Actions36

Scrape Website HTML → Fetch HTML

AI-generated

Summary

Fetches a webpage in a rendered browser and returns its HTML. Configure the URL, load condition, optional selector and delay, and viewport to control which rendered page content is captured; advanced options customize navigation timeout, User-Agent, and request headers.

Inputs

  • URL (required) — Webpage to fetch; the description says https:// is added automatically when omitted.
  • Wait Until — Choose when navigation is considered complete: load (default), domcontentloaded, networkidle, or commit.
  • Wait for Element — CSS selector to wait for before returning HTML.
  • Extra Delay (Ms) — Additional wait after page load and, if configured, after the selector resolves. Defaults to 0.
  • Viewport Size — Choose a preset viewport; defaults to Desktop (1920 × 1080). Choose Custom to set width and height.
  • Viewport Width (Px) — Custom viewport width, shown when Viewport Size is Custom.
  • Viewport Height (Px) — Custom viewport height, shown when Viewport Size is Custom.
  • Advanced Options — Optionally set navigation timeout (default 30,000 ms), a custom User-Agent, and extra HTTP headers sent with browser requests.

Output shape

Not established by the provided source pack.

The source pack contains only a signature for the fetchHtml implementation, so it does not show the returned data shape or response fields.

Links

Discussion