@@ -259,6 +259,7 @@ def web_scrape_sitemap(
259259 self ,
260260 * ,
261261 domain : str ,
262+ max_links : int | Omit = omit ,
262263 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
263264 # The extra values given here take precedence over values defined on the client or passed to this method.
264265 extra_headers : Headers | None = None ,
@@ -275,6 +276,9 @@ def web_scrape_sitemap(
275276 domain: Domain name to crawl sitemaps for (e.g., 'example.com'). The domain will be
276277 automatically normalized and validated.
277278
279+ max_links: Maximum number of links to return from the sitemap crawl. Defaults to 10,000.
280+ Minimum is 1, maximum is 100,000.
281+
278282 extra_headers: Send extra headers
279283
280284 extra_query: Add additional query parameters to the request
@@ -290,7 +294,13 @@ def web_scrape_sitemap(
290294 extra_query = extra_query ,
291295 extra_body = extra_body ,
292296 timeout = timeout ,
293- query = maybe_transform ({"domain" : domain }, web_web_scrape_sitemap_params .WebWebScrapeSitemapParams ),
297+ query = maybe_transform (
298+ {
299+ "domain" : domain ,
300+ "max_links" : max_links ,
301+ },
302+ web_web_scrape_sitemap_params .WebWebScrapeSitemapParams ,
303+ ),
294304 ),
295305 cast_to = WebWebScrapeSitemapResponse ,
296306 )
@@ -522,6 +532,7 @@ async def web_scrape_sitemap(
522532 self ,
523533 * ,
524534 domain : str ,
535+ max_links : int | Omit = omit ,
525536 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
526537 # The extra values given here take precedence over values defined on the client or passed to this method.
527538 extra_headers : Headers | None = None ,
@@ -538,6 +549,9 @@ async def web_scrape_sitemap(
538549 domain: Domain name to crawl sitemaps for (e.g., 'example.com'). The domain will be
539550 automatically normalized and validated.
540551
552+ max_links: Maximum number of links to return from the sitemap crawl. Defaults to 10,000.
553+ Minimum is 1, maximum is 100,000.
554+
541555 extra_headers: Send extra headers
542556
543557 extra_query: Add additional query parameters to the request
@@ -554,7 +568,11 @@ async def web_scrape_sitemap(
554568 extra_body = extra_body ,
555569 timeout = timeout ,
556570 query = await async_maybe_transform (
557- {"domain" : domain }, web_web_scrape_sitemap_params .WebWebScrapeSitemapParams
571+ {
572+ "domain" : domain ,
573+ "max_links" : max_links ,
574+ },
575+ web_web_scrape_sitemap_params .WebWebScrapeSitemapParams ,
558576 ),
559577 ),
560578 cast_to = WebWebScrapeSitemapResponse ,
0 commit comments