@@ -2122,6 +2122,7 @@ def web_scrape_sitemap(
21222122 self ,
21232123 * ,
21242124 domain : str ,
2125+ max_links : int | Omit = omit ,
21252126 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
21262127 # The extra values given here take precedence over values defined on the client or passed to this method.
21272128 extra_headers : Headers | None = None ,
@@ -2138,6 +2139,9 @@ def web_scrape_sitemap(
21382139 domain: Domain name to crawl sitemaps for (e.g., 'example.com'). The domain will be
21392140 automatically normalized and validated.
21402141
2142+ max_links: Maximum number of links to return from the sitemap crawl. Defaults to 10,000.
2143+ Minimum is 1, maximum is 100,000.
2144+
21412145 extra_headers: Send extra headers
21422146
21432147 extra_query: Add additional query parameters to the request
@@ -2153,7 +2157,13 @@ def web_scrape_sitemap(
21532157 extra_query = extra_query ,
21542158 extra_body = extra_body ,
21552159 timeout = timeout ,
2156- query = maybe_transform ({"domain" : domain }, brand_web_scrape_sitemap_params .BrandWebScrapeSitemapParams ),
2160+ query = maybe_transform (
2161+ {
2162+ "domain" : domain ,
2163+ "max_links" : max_links ,
2164+ },
2165+ brand_web_scrape_sitemap_params .BrandWebScrapeSitemapParams ,
2166+ ),
21572167 ),
21582168 cast_to = BrandWebScrapeSitemapResponse ,
21592169 )
@@ -4219,6 +4229,7 @@ async def web_scrape_sitemap(
42194229 self ,
42204230 * ,
42214231 domain : str ,
4232+ max_links : int | Omit = omit ,
42224233 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
42234234 # The extra values given here take precedence over values defined on the client or passed to this method.
42244235 extra_headers : Headers | None = None ,
@@ -4235,6 +4246,9 @@ async def web_scrape_sitemap(
42354246 domain: Domain name to crawl sitemaps for (e.g., 'example.com'). The domain will be
42364247 automatically normalized and validated.
42374248
4249+ max_links: Maximum number of links to return from the sitemap crawl. Defaults to 10,000.
4250+ Minimum is 1, maximum is 100,000.
4251+
42384252 extra_headers: Send extra headers
42394253
42404254 extra_query: Add additional query parameters to the request
@@ -4251,7 +4265,11 @@ async def web_scrape_sitemap(
42514265 extra_body = extra_body ,
42524266 timeout = timeout ,
42534267 query = await async_maybe_transform (
4254- {"domain" : domain }, brand_web_scrape_sitemap_params .BrandWebScrapeSitemapParams
4268+ {
4269+ "domain" : domain ,
4270+ "max_links" : max_links ,
4271+ },
4272+ brand_web_scrape_sitemap_params .BrandWebScrapeSitemapParams ,
42554273 ),
42564274 ),
42574275 cast_to = BrandWebScrapeSitemapResponse ,
0 commit comments