@@ -76,6 +76,8 @@ def extract(
7676 include_frames: bool | Omit = omit,
7777 instructions: str | Omit = omit,
7878 max_age_ms: int | Omit = omit,
79+ max_depth: int | Omit = omit,
80+ max_pages: int | Omit = omit,
7981 pdf: web_extract_params.Pdf | Omit = omit,
8082 stop_after_ms: int | Omit = omit,
8183 timeout_ms: int | Omit = omit,
@@ -116,6 +118,11 @@ def extract(
116118 max_age_ms: Return cached scrape results if a prior scrape for the same parameters is
117119 younger than this many milliseconds. Defaults to 7 days (604800000 ms).
118120
121+ max_depth: Optional maximum link depth from the starting URL (0 = only the starting page).
122+ If omitted, there is no crawl depth limit.
123+
124+ max_pages: Maximum number of pages to analyze for extraction. Hard cap: 50. Defaults to 5.
125+
119126 stop_after_ms: Soft time budget for the crawl in milliseconds. Min: 10000 (10s). Max: 110000
120127 (110s). Default: 80000 (80s).
121128
@@ -145,6 +152,8 @@ def extract(
145152 "include_frames": include_frames,
146153 "instructions": instructions,
147154 "max_age_ms": max_age_ms,
155+ "max_depth": max_depth,
156+ "max_pages": max_pages,
148157 "pdf": pdf,
149158 "stop_after_ms": stop_after_ms,
150159 "timeout_ms": timeout_ms,
@@ -985,6 +994,8 @@ async def extract(
985994 include_frames: bool | Omit = omit,
986995 instructions: str | Omit = omit,
987996 max_age_ms: int | Omit = omit,
997+ max_depth: int | Omit = omit,
998+ max_pages: int | Omit = omit,
988999 pdf: web_extract_params.Pdf | Omit = omit,
9891000 stop_after_ms: int | Omit = omit,
9901001 timeout_ms: int | Omit = omit,
@@ -1025,6 +1036,11 @@ async def extract(
10251036 max_age_ms: Return cached scrape results if a prior scrape for the same parameters is
10261037 younger than this many milliseconds. Defaults to 7 days (604800000 ms).
10271038
1039+ max_depth: Optional maximum link depth from the starting URL (0 = only the starting page).
1040+ If omitted, there is no crawl depth limit.
1041+
1042+ max_pages: Maximum number of pages to analyze for extraction. Hard cap: 50. Defaults to 5.
1043+
10281044 stop_after_ms: Soft time budget for the crawl in milliseconds. Min: 10000 (10s). Max: 110000
10291045 (110s). Default: 80000 (80s).
10301046
@@ -1054,6 +1070,8 @@ async def extract(
10541070 "include_frames": include_frames,
10551071 "instructions": instructions,
10561072 "max_age_ms": max_age_ms,
1073+ "max_depth": max_depth,
1074+ "max_pages": max_pages,
10571075 "pdf": pdf,
10581076 "stop_after_ms": stop_after_ms,
10591077 "timeout_ms": timeout_ms,
0 commit comments