Screenshots by Urlbox icon

Screenshots by Urlbox

Generate full page screenshots, video recordings, scrape HTML or Markdown, convert to PDF, and more.

Render → Scrape HTML

AI-generated

Summary

Scrape the HTML source of a webpage.

Inputs

  • url — The website URL to render. Provide either this or html; if neither is provided, the operation throws an error.
  • additionalFields — Collection of additional options for the Urlbox render operation.

Output shape

binary when downloadAsFile is true, JSON object when false.

Binary MIME type is text/html; filename is urlbox-scrape_html.html. JSON response contains the scraped HTML data from the Urlbox API.

Examples

Example 1: Scrape a public website and return HTML as JSON.

url: https://example.com; additionalFields.downloadAsFile: false

Example 2: Scrape HTML and download as a file.

url: https://example.com; additionalFields.downloadAsFile: true

Links

Discussion