@@ -96,7 +96,7 @@ def list(
9696 q : str | Omit = omit ,
9797 search_type : Literal ["exact" , "prefix" ] | Omit = omit ,
9898 should_include_unified : bool | Omit = omit ,
99- status : Literal ["queued" , "running" , "cancelling" , "completed" , "cancelled" , "failed" ] | Omit = omit ,
99+ status : Literal ["pending" , " queued" , "running" , "cancelling" , "completed" , "cancelled" , "failed" ] | Omit = omit ,
100100 tags : Union [str , SequenceNotStr [str ]] | Omit = omit ,
101101 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
102102 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -305,8 +305,15 @@ def submit(
305305 """
306306 Scrape up to 100,000 URLs, or crawl a site, asynchronously using the same
307307 formats and scrape parameters as POST /web/scrape. Choose Markdown, HTML,
308- screenshots, images, bytes, parsed fields, products, highlights, and JSON. Poll
309- the batch ID or receive a webhook when it finishes.
308+ screenshots, images, bytes, parsed fields, products, highlights, and JSON.
309+ Submission persists the input and returns immediately with status pending.
310+ Organizations with fewer than 10 available credits and no overage are rejected
311+ with 402 up front. Each organization can submit up to 1,000 batches per minute,
312+ independently of its polling budget. Batches wait pending when execution
313+ capacity is full. Validation, sitemap discovery, the full credit quote, and
314+ shard scheduling happen afterward. Poll the batch ID or receive a webhook when
315+ it finishes. Deferred rejections appear as status failed with a failure code and
316+ message.
310317
311318 Args:
312319 input: Choose a URL list or a site crawl.
@@ -419,7 +426,7 @@ async def list(
419426 q : str | Omit = omit ,
420427 search_type : Literal ["exact" , "prefix" ] | Omit = omit ,
421428 should_include_unified : bool | Omit = omit ,
422- status : Literal ["queued" , "running" , "cancelling" , "completed" , "cancelled" , "failed" ] | Omit = omit ,
429+ status : Literal ["pending" , " queued" , "running" , "cancelling" , "completed" , "cancelled" , "failed" ] | Omit = omit ,
423430 tags : Union [str , SequenceNotStr [str ]] | Omit = omit ,
424431 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
425432 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -628,8 +635,15 @@ async def submit(
628635 """
629636 Scrape up to 100,000 URLs, or crawl a site, asynchronously using the same
630637 formats and scrape parameters as POST /web/scrape. Choose Markdown, HTML,
631- screenshots, images, bytes, parsed fields, products, highlights, and JSON. Poll
632- the batch ID or receive a webhook when it finishes.
638+ screenshots, images, bytes, parsed fields, products, highlights, and JSON.
639+ Submission persists the input and returns immediately with status pending.
640+ Organizations with fewer than 10 available credits and no overage are rejected
641+ with 402 up front. Each organization can submit up to 1,000 batches per minute,
642+ independently of its polling budget. Batches wait pending when execution
643+ capacity is full. Validation, sitemap discovery, the full credit quote, and
644+ shard scheduling happen afterward. Poll the batch ID or receive a webhook when
645+ it finishes. Deferred rejections appear as status failed with a failure code and
646+ message.
633647
634648 Args:
635649 input: Choose a URL list or a site crawl.
0 commit comments