Browser Emulation
Browser Options
Configure advanced runtime settings for the headless Chromium engine. Control scrolling behavior, force strict error handling, or override the default User-Agent string.
Implementation Example
{
"url": "https://example.com/gallery",
// Scroll to bottom to trigger lazy-loaded images
"scroll_whole_page": true,
// Disguise the engine as a mobile device
"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X)..."
}
Parameters Explained
scroll_whole_page
Set to
true to force Chromium to smoothly scroll from the top to the bottom of the page before printing. Highly recommended for capturing images that rely on lazy-loading libraries.
user_agent
Override the default HTTP
User-Agent string. Useful for bypassing strict bot filters or requesting mobile versions of responsive websites.