@@ -397,6 +397,7 @@ def scrape(
397397 markdown_params : web_scrape_params .MarkdownParams | Omit = omit ,
398398 max_age_ms : int | Omit = omit ,
399399 parse_params : web_scrape_params .ParseParams | Omit = omit ,
400+ product_params : web_scrape_params .ProductParams | Omit = omit ,
400401 screenshot_params : web_scrape_params .ScreenshotParams | Omit = omit ,
401402 shared_params : web_scrape_params .SharedParams | Omit = omit ,
402403 tags : SequenceNotStr [str ] | Omit = omit ,
@@ -413,16 +414,18 @@ def scrape(
413414 visit.
414415
415416 Each cache key includes only the settings that affect that output. HTML
416- is shared with Markdown, parsed fields, highlights, and JSON extraction. Cached
417- outputs can come from different visits within maxAgeMs; use 0 for a fresh
418- capture. HTML-only requests use the existing fast acquisition path. Highlights
419- return the plain-text passages most relevant to highlightsParams.query. One
420- credit per request, including cache hits and missing pages, or two with browser
421- actions; highlights add 3 credits when passages are returned; JSON extraction
422- adds four credits and runs an LLM over the page Markdown on every request that
423- has text to extract; PDF OCR adds one credit per recovered page on fresh
424- extraction. Original response bytes and screenshots are limited to 20 MiB each,
425- screenshots to 40 megapixels, and the combined browser capture to 60 MiB.
417+ is shared with Markdown, parsed fields, product data, highlights, and JSON
418+ extraction. Cached outputs can come from different visits within maxAgeMs; use 0
419+ for a fresh capture. HTML-only requests use the existing fast acquisition path.
420+ Highlights return the plain-text passages most relevant to
421+ highlightsParams.query. One credit per request, including cache hits and missing
422+ pages, or two with browser actions; highlights add 3 credits when passages are
423+ returned; JSON extraction adds four credits and runs an LLM over the page
424+ Markdown on every request that has text to extract; PDF OCR adds one credit per
425+ recovered page on fresh extraction; the product output adds one credit, plus six
426+ more when the specialized model is used. Original response bytes and screenshots
427+ are limited to 20 MiB each, screenshots to 40 megapixels, and the combined
428+ browser capture to 60 MiB.
426429
427430 Args:
428431 formats: Outputs to return. Enable at least one; omitted formats are false.
@@ -444,6 +447,8 @@ def scrape(
444447
445448 parse_params: Required when formats.parse is true.
446449
450+ product_params: Product options. Requires formats.product: true.
451+
447452 screenshot_params: Screenshot options. Requires formats.screenshot: true.
448453
449454 shared_params: Shared browser and content settings. Content filters leave screenshots and
@@ -483,6 +488,7 @@ def scrape(
483488 "markdown_params" : markdown_params ,
484489 "max_age_ms" : max_age_ms ,
485490 "parse_params" : parse_params ,
491+ "product_params" : product_params ,
486492 "screenshot_params" : screenshot_params ,
487493 "shared_params" : shared_params ,
488494 "tags" : tags ,
@@ -1887,6 +1893,7 @@ async def scrape(
18871893 markdown_params : web_scrape_params .MarkdownParams | Omit = omit ,
18881894 max_age_ms : int | Omit = omit ,
18891895 parse_params : web_scrape_params .ParseParams | Omit = omit ,
1896+ product_params : web_scrape_params .ProductParams | Omit = omit ,
18901897 screenshot_params : web_scrape_params .ScreenshotParams | Omit = omit ,
18911898 shared_params : web_scrape_params .SharedParams | Omit = omit ,
18921899 tags : SequenceNotStr [str ] | Omit = omit ,
@@ -1903,16 +1910,18 @@ async def scrape(
19031910 visit.
19041911
19051912 Each cache key includes only the settings that affect that output. HTML
1906- is shared with Markdown, parsed fields, highlights, and JSON extraction. Cached
1907- outputs can come from different visits within maxAgeMs; use 0 for a fresh
1908- capture. HTML-only requests use the existing fast acquisition path. Highlights
1909- return the plain-text passages most relevant to highlightsParams.query. One
1910- credit per request, including cache hits and missing pages, or two with browser
1911- actions; highlights add 3 credits when passages are returned; JSON extraction
1912- adds four credits and runs an LLM over the page Markdown on every request that
1913- has text to extract; PDF OCR adds one credit per recovered page on fresh
1914- extraction. Original response bytes and screenshots are limited to 20 MiB each,
1915- screenshots to 40 megapixels, and the combined browser capture to 60 MiB.
1913+ is shared with Markdown, parsed fields, product data, highlights, and JSON
1914+ extraction. Cached outputs can come from different visits within maxAgeMs; use 0
1915+ for a fresh capture. HTML-only requests use the existing fast acquisition path.
1916+ Highlights return the plain-text passages most relevant to
1917+ highlightsParams.query. One credit per request, including cache hits and missing
1918+ pages, or two with browser actions; highlights add 3 credits when passages are
1919+ returned; JSON extraction adds four credits and runs an LLM over the page
1920+ Markdown on every request that has text to extract; PDF OCR adds one credit per
1921+ recovered page on fresh extraction; the product output adds one credit, plus six
1922+ more when the specialized model is used. Original response bytes and screenshots
1923+ are limited to 20 MiB each, screenshots to 40 megapixels, and the combined
1924+ browser capture to 60 MiB.
19161925
19171926 Args:
19181927 formats: Outputs to return. Enable at least one; omitted formats are false.
@@ -1934,6 +1943,8 @@ async def scrape(
19341943
19351944 parse_params: Required when formats.parse is true.
19361945
1946+ product_params: Product options. Requires formats.product: true.
1947+
19371948 screenshot_params: Screenshot options. Requires formats.screenshot: true.
19381949
19391950 shared_params: Shared browser and content settings. Content filters leave screenshots and
@@ -1973,6 +1984,7 @@ async def scrape(
19731984 "markdown_params" : markdown_params ,
19741985 "max_age_ms" : max_age_ms ,
19751986 "parse_params" : parse_params ,
1987+ "product_params" : product_params ,
19761988 "screenshot_params" : screenshot_params ,
19771989 "shared_params" : shared_params ,
19781990 "tags" : tags ,
0 commit comments