@@ -359,6 +359,7 @@ def screenshot(
359359 handle_cookie_popup : Literal ["true" , "false" ] | Omit = omit ,
360360 max_age_ms : int | Omit = omit ,
361361 page : Literal ["login" , "signup" , "blog" , "careers" , "pricing" , "terms" , "privacy" , "contact" ] | Omit = omit ,
362+ scroll_offset : int | Omit = omit ,
362363 timeout_ms : int | Omit = omit ,
363364 viewport : web_screenshot_params .Viewport | Omit = omit ,
364365 wait_for_ms : int | Omit = omit ,
@@ -399,6 +400,13 @@ def screenshot(
399400 provided, screenshots the main domain landing page. Only applicable when using
400401 'domain', not 'directUrl'.
401402
403+ scroll_offset: Optional vertical scroll offset in pixels for capturing a long page in
404+ viewport-sized chunks. When provided, the full page is captured once and the
405+ returned image is the viewport-sized slice that begins at this Y offset (e.g.
406+ request scrollOffset=0, then 1080, then 2160 to walk a 1920x1080 landing page
407+ top to bottom). The final slice may be shorter than the viewport height. Takes
408+ precedence over fullScreenshot. Max: 100000.
409+
402410 timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
403411 than this value, it will be aborted with a 408 status code. Maximum allowed
404412 value is 300000ms (5 minutes).
@@ -432,6 +440,7 @@ def screenshot(
432440 "handle_cookie_popup" : handle_cookie_popup ,
433441 "max_age_ms" : max_age_ms ,
434442 "page" : page ,
443+ "scroll_offset" : scroll_offset ,
435444 "timeout_ms" : timeout_ms ,
436445 "viewport" : viewport ,
437446 "wait_for_ms" : wait_for_ms ,
@@ -1277,6 +1286,7 @@ async def screenshot(
12771286 handle_cookie_popup : Literal ["true" , "false" ] | Omit = omit ,
12781287 max_age_ms : int | Omit = omit ,
12791288 page : Literal ["login" , "signup" , "blog" , "careers" , "pricing" , "terms" , "privacy" , "contact" ] | Omit = omit ,
1289+ scroll_offset : int | Omit = omit ,
12801290 timeout_ms : int | Omit = omit ,
12811291 viewport : web_screenshot_params .Viewport | Omit = omit ,
12821292 wait_for_ms : int | Omit = omit ,
@@ -1317,6 +1327,13 @@ async def screenshot(
13171327 provided, screenshots the main domain landing page. Only applicable when using
13181328 'domain', not 'directUrl'.
13191329
1330+ scroll_offset: Optional vertical scroll offset in pixels for capturing a long page in
1331+ viewport-sized chunks. When provided, the full page is captured once and the
1332+ returned image is the viewport-sized slice that begins at this Y offset (e.g.
1333+ request scrollOffset=0, then 1080, then 2160 to walk a 1920x1080 landing page
1334+ top to bottom). The final slice may be shorter than the viewport height. Takes
1335+ precedence over fullScreenshot. Max: 100000.
1336+
13201337 timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
13211338 than this value, it will be aborted with a 408 status code. Maximum allowed
13221339 value is 300000ms (5 minutes).
@@ -1350,6 +1367,7 @@ async def screenshot(
13501367 "handle_cookie_popup" : handle_cookie_popup ,
13511368 "max_age_ms" : max_age_ms ,
13521369 "page" : page ,
1370+ "scroll_offset" : scroll_offset ,
13531371 "timeout_ms" : timeout_ms ,
13541372 "viewport" : viewport ,
13551373 "wait_for_ms" : wait_for_ms ,
0 commit comments