Actions19
- Website Actions
- Google SERP Actions
- Profile Actions
- Proxy Actions
Website → Extract HTML
AI-generatedSummary
Sends a POST request to the HeadlessX API to retrieve raw HTML from a specified URL without executing JavaScript.
Inputs
- url (required) — The URL of the web page to process.
- htmlOptions.headers — Additional HTTP headers to send with the request.
- htmlOptions.enablePreview — Whether to show content preview AND provide a downloadable file in the binary section.
- htmlOptions.extraWaitTime — Additional time to wait for dynamic content to load completely.
- htmlOptions.timeout — Maximum time to wait for page load in milliseconds.
- htmlOptions.userAgent — Custom user agent string (leave empty for automatic rotation).
- htmlOptions.waitUntil — When to consider navigation completed.
Output shape
A single record with HTML content in the JSON body and optionally a binary file.
When enablePreview is true, the JSON includes a preview object with the file name, a summary of the first 500 characters, and the full length. The binary data is provided in the 'data' key.
Examples
Example 1: Scrape a static webpage and save the HTML to a binary file.
URL: https://example.com, HTML Options: Enable Preview = true
Example 2: Fetch HTML from a site with strict headers.
URL: https://example.com, HTML Options: Headers = Custom, Timeout = 120000