@@ -1949,8 +1949,24 @@ def web_scrape_md(
19491949 extra_body : Body | None = None ,
19501950 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
19511951 ) -> WebWebScrapeMdResponse :
1952- """
1953- Scrapes the given URL into LLM usable Markdown.
1952+ """Scrapes the given URL into LLM usable Markdown.
1953+
1954+ Inspect key_metadata on JSON
1955+ responses from a recognized API key; use error_code to distinguish stable
1956+ failure categories.
1957+
1958+ ### Billing & errors
1959+
1960+ | HTTP status | Billed? | Meaning |
1961+ | ----------- | -------------- | ---------------------------------------------------------------------------------------- |
1962+ | 200 | Yes — 1 credit | Successful scrape, including a zero-length result when includeSelectors matched nothing |
1963+ | 400 | No | Invalid input, skipped PDF, or the page could not be scraped |
1964+ | 401 / 403 | No | Invalid/disabled key, insufficient permissions, or credits exhausted; inspect error_code |
1965+ | 404 | No | Target page returned or fingerprinted as not found |
1966+ | 408 | No | Request timed out |
1967+ | 415 | No | Unsupported content type |
1968+ | 429 | No | Per-minute rate limit exceeded; honor Retry-After |
1969+ | 500 | No | Internal error |
19541970
19551971 Args:
19561972 url: Full URL to scrape into LLM usable Markdown (must include http:// or https://
@@ -4007,8 +4023,24 @@ async def web_scrape_md(
40074023 extra_body : Body | None = None ,
40084024 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
40094025 ) -> WebWebScrapeMdResponse :
4010- """
4011- Scrapes the given URL into LLM usable Markdown.
4026+ """Scrapes the given URL into LLM usable Markdown.
4027+
4028+ Inspect key_metadata on JSON
4029+ responses from a recognized API key; use error_code to distinguish stable
4030+ failure categories.
4031+
4032+ ### Billing & errors
4033+
4034+ | HTTP status | Billed? | Meaning |
4035+ | ----------- | -------------- | ---------------------------------------------------------------------------------------- |
4036+ | 200 | Yes — 1 credit | Successful scrape, including a zero-length result when includeSelectors matched nothing |
4037+ | 400 | No | Invalid input, skipped PDF, or the page could not be scraped |
4038+ | 401 / 403 | No | Invalid/disabled key, insufficient permissions, or credits exhausted; inspect error_code |
4039+ | 404 | No | Target page returned or fingerprinted as not found |
4040+ | 408 | No | Request timed out |
4041+ | 415 | No | Unsupported content type |
4042+ | 429 | No | Per-minute rate limit exceeded; honor Retry-After |
4043+ | 500 | No | Internal error |
40124044
40134045 Args:
40144046 url: Full URL to scrape into LLM usable Markdown (must include http:// or https://
0 commit comments