Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ai-agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ A trial key comes with these limits:
|---|---|
| Credits | 50 |
| Expires | 7 days |
| Rate | 10 requests/min, one call at a time |
| Concurrency | One call at a time |
| APIs | Read APIs only: no Web Scraping API, ChatGPT, Perplexity, Gemini, Copilot or stream monitors |
| Network | Works only from the IP that minted it; not through the hosted MCP server |
| Availability | One per IP per day; not available from proxy, VPN or Tor networks |
Expand Down Expand Up @@ -152,3 +152,7 @@ A result too large for the context window comes back as a preview. To get the re
## Out of credits

A `402` response body includes `upgrade_url`, `free_credits_url` and `pricing_url`. For a trial key, it includes `claim_url` instead.

## Too many calls at once

Your account has a [max concurrency](/concurrency): how many calls it can run at the same time, across all of its keys. Free calls such as `quote_call` and `get_account_info` count too. A call over it gets `429` with `"error": "concurrency_limit_exceeded"`, `max_concurrency` and `concurrent_requests`. It isn't run or billed. Wait `Retry-After` (1 s) and send it again, and run fewer calls in parallel. `get_account_info` returns `max_concurrency` and `concurrent_requests`.
2 changes: 1 addition & 1 deletion api-reference/endpoint/account/get-account-info.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ openapi: get /v1/account/me
---

<Note>
This endpoint is useful for monitoring your credit balance programmatically — e.g., before running a batch job or in a CI pipeline. It returns both PAYG and subscription credit balances, plus full subscription details if you're on a plan. **No credits are deducted.**
This endpoint is useful for monitoring your credit balance programmatically — e.g., before running a batch job or in a CI pipeline. It returns both PAYG and subscription credit balances, plus full subscription details if you're on a plan, and your account's [max concurrency](/concurrency) with how many requests are running now. **No credits are deducted.**
</Note>
7 changes: 4 additions & 3 deletions api-reference/endpoint/ebay/completed.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,10 @@ Things to know before you rely on the count:
return a few listings the first missed. Merge walks on `item_id`.
- **The sold history is eBay's.** It covers roughly the last 90 days.

A walk of N pages costs 8 × N credits. Your API key's per-minute limit counts
every `/v1` call, so space a long walk out; a `429` carries a `Retry-After`
header with the seconds to wait.
A walk of N pages costs 8 × N credits. Each page is one `/v1` call and holds
one of your account's [concurrent requests](/concurrency) while it runs, so
fetch a long walk's pages a few at a time. A `429` means all of them are in
use; retry after its `Retry-After` header (1 s).

<Note>
Each completed/sold request costs **8 credits**. Failed requests are not charged.
Expand Down
6 changes: 4 additions & 2 deletions api-reference/endpoint/perplexity/ask.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,10 @@ async function submit(jobId: string, prompt: string, attempt = 1): Promise<strin
**Keep `async_wait` at 0.** A callback already means `async_wait=0` unless
you set a wait, and the webhook is sent either way. A wait only delays the
`202`. At volume it costs you an open connection per ask for up to that many
seconds, so Perplexity's answer time, not your
[rate limit](/rate-limits), sets how fast you can submit.
seconds. Each ask holds one of your account's
[concurrent requests](/concurrency) until its answer is done, with or
without a wait, so your max concurrency and Perplexity's answer time together
set how many asks you can finish per minute.
</Note>

### Receive
Expand Down
2 changes: 1 addition & 1 deletion api-reference/endpoint/web-scraping/detect.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ console.log(detection.antibot_systems);
|--------|-------------|
| `400` | Invalid URL |
| `402` | Insufficient credits |
| `429` | Rate limit exceeded |
| `429` | Your account is at its [max concurrency](/concurrency) (`concurrency_limit_exceeded`, not billed) |
| `500` | Unexpected server error |

<ResponseExample>
Expand Down
2 changes: 1 addition & 1 deletion api-reference/endpoint/web-scraping/extract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ console.log((await res.json()).ai_extraction);
|--------|-------------|
| `402` | Insufficient credits |
| `422` | Invalid request or selector, or the target blocked the request (not billed) |
| `429` | Rate limit exceeded |
| `429` | Your account is at its [max concurrency](/concurrency) (`concurrency_limit_exceeded`, not billed) |
| `502` | The page could not be fetched, or AI-only extraction returned nothing (not billed) |

<ResponseExample>
Expand Down
4 changes: 2 additions & 2 deletions api-reference/endpoint/web-scraping/scrape.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ curl "https://scrapebadger.com/v1/web/unblock/d1b44a702e16a753" \
| `kept` | The host already had a configuration; it was re-checked and nothing better was found | Send your request again: the existing configuration does not get through every time |
| `failed` | Nothing got through | The host goes on `cooldown`; contact support if you need it |

The poll is free and is not rate limited. It answers `404` for a few seconds
The poll is free and doesn't count toward your [max concurrency](/concurrency). It answers `404` for a few seconds
after the `422`, until the search has started: keep polling.

## Response
Expand Down Expand Up @@ -856,7 +856,7 @@ Infinite scroll:
| `400` | Invalid URL (including a hostname confirmed not to exist), cost exceeds `max_cost`, or requested engine not available. Never charged. |
| `402` | Insufficient credits |
| `422` | Blocking detected after all retries exhausted (`error: "blocking_page_detected"`, with `block_kind`, `vendor`, `vendors`, `unblock` (plus `unblock_job_id` while a search is running) and, for a CAPTCHA wall, the gating `captcha` at the top level; the scrape result is in `data`). `vendors` lists every protection vendor seen on the page, the block's own first: a site can put two in front of one page, such as a Cloudflare challenge before PerimeterX. A request that runs out of time while retrying (about 165 s) returns this 422 rather than a gateway timeout; the `wait_for` selector never appeared (`error: "wait_for_timeout"`); a `js_scenario` step failed (`error: "js_scenario_failed"`); or the body contained an unknown field (`error: "unknown_request_field"`). Never charged. |
| `429` | Rate limit exceeded |
| `429` | Your account is at its [max concurrency](/concurrency) (`concurrency_limit_exceeded`). Never charged. |
| `500` | Unexpected server error |

### Hostname does not exist
Expand Down
2 changes: 1 addition & 1 deletion api-reference/endpoint/web-scraping/screenshot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ await writeFile("page.png", Buffer.from(screenshot, "base64"));
|--------|-------------|
| `402` | Insufficient credits |
| `422` | Invalid request, or the target blocked the request (not billed) |
| `429` | Rate limit exceeded, or the browser farm is at capacity (not billed) |
| `429` | Your account is at its [max concurrency](/concurrency) (`concurrency_limit_exceeded`), or the browser farm is at capacity (not billed) |
| `502` | The page loaded but no screenshot was captured (not billed) |

<ResponseExample>
Expand Down
2 changes: 1 addition & 1 deletion cli/commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ scrapebadger auth # Interactive prompt
scrapebadger auth --show # Show saved key
```

### `scrapebadger credits` Check your credit balance. ### `scrapebadger logout` Remove saved API key from config. ---
### `scrapebadger credits` Check your credit balance and max concurrency. ### `scrapebadger logout` Remove saved API key from config. ---

## Twitter Commands All Twitter commands are under `scrapebadger twitter`. ### Users

Expand Down
Loading
Loading