@@ -71,6 +71,7 @@ def extract(
7171 * ,
7272 schema : Dict [str , object ],
7373 url : str ,
74+ actions : Iterable [web_extract_params .Action ] | Omit = omit ,
7475 fact_check : bool | Omit = omit ,
7576 follow_subdomains : bool | Omit = omit ,
7677 include_frames : bool | Omit = omit ,
@@ -96,13 +97,19 @@ def extract(
9697 relevant internal links, and extract structured data from the selected pages.
9798
9899 Args:
99- schema: JSON Schema for the returned data object. TypeScript Zod users can pass a JSON
100- Schema generated from a Zod object; Python users can pass the equivalent JSON
101- Schema object.
100+ schema: JSON Schema for the returned data object. Image fields such as `image_urls` or
101+ `product_photos` automatically make page image references available to
102+ extraction, so product data and photos can be returned in one call. TypeScript
103+ Zod users can pass a JSON Schema generated from a Zod object; Python users can
104+ pass the equivalent JSON Schema object.
102105
103106 url: The starting website URL to crawl and extract from. Must include http:// or
104107 https://.
105108
109+ actions: Optional browser actions executed in order on the requested page after it loads
110+ and before extraction. Requires a paid plan. When actions are provided and
111+ stopAfterMs is omitted, the crawl budget defaults to 110000 ms.
112+
106113 fact_check: When true, every returned value must be grounded in facts stated on the page;
107114 fields that cannot be supported by the page are returned as null/empty. When
108115 false (default), the model may make reasonable inferences and derivations from
@@ -130,7 +137,8 @@ def extract(
130137 exchange for more stable output on animated pages.
131138
132139 stop_after_ms: Soft time budget for the crawl in milliseconds. Min: 10000 (10s). Max: 110000
133- (110s). Default: 80000 (80s).
140+ (110s). Defaults to 80000 (80s), or 110000 (110s) when browser actions are
141+ provided.
134142
135143 tags: Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.
136144
@@ -155,6 +163,7 @@ def extract(
155163 {
156164 "schema" : schema ,
157165 "url" : url ,
166+ "actions" : actions ,
158167 "fact_check" : fact_check ,
159168 "follow_subdomains" : follow_subdomains ,
160169 "include_frames" : include_frames ,
@@ -2311,6 +2320,7 @@ async def extract(
23112320 * ,
23122321 schema : Dict [str , object ],
23132322 url : str ,
2323+ actions : Iterable [web_extract_params .Action ] | Omit = omit ,
23142324 fact_check : bool | Omit = omit ,
23152325 follow_subdomains : bool | Omit = omit ,
23162326 include_frames : bool | Omit = omit ,
@@ -2336,13 +2346,19 @@ async def extract(
23362346 relevant internal links, and extract structured data from the selected pages.
23372347
23382348 Args:
2339- schema: JSON Schema for the returned data object. TypeScript Zod users can pass a JSON
2340- Schema generated from a Zod object; Python users can pass the equivalent JSON
2341- Schema object.
2349+ schema: JSON Schema for the returned data object. Image fields such as `image_urls` or
2350+ `product_photos` automatically make page image references available to
2351+ extraction, so product data and photos can be returned in one call. TypeScript
2352+ Zod users can pass a JSON Schema generated from a Zod object; Python users can
2353+ pass the equivalent JSON Schema object.
23422354
23432355 url: The starting website URL to crawl and extract from. Must include http:// or
23442356 https://.
23452357
2358+ actions: Optional browser actions executed in order on the requested page after it loads
2359+ and before extraction. Requires a paid plan. When actions are provided and
2360+ stopAfterMs is omitted, the crawl budget defaults to 110000 ms.
2361+
23462362 fact_check: When true, every returned value must be grounded in facts stated on the page;
23472363 fields that cannot be supported by the page are returned as null/empty. When
23482364 false (default), the model may make reasonable inferences and derivations from
@@ -2370,7 +2386,8 @@ async def extract(
23702386 exchange for more stable output on animated pages.
23712387
23722388 stop_after_ms: Soft time budget for the crawl in milliseconds. Min: 10000 (10s). Max: 110000
2373- (110s). Default: 80000 (80s).
2389+ (110s). Defaults to 80000 (80s), or 110000 (110s) when browser actions are
2390+ provided.
23742391
23752392 tags: Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.
23762393
@@ -2395,6 +2412,7 @@ async def extract(
23952412 {
23962413 "schema" : schema ,
23972414 "url" : url ,
2415+ "actions" : actions ,
23982416 "fact_check" : fact_check ,
23992417 "follow_subdomains" : follow_subdomains ,
24002418 "include_frames" : include_frames ,
0 commit comments