# ScrapingBee API reference

> The ScrapingBee HTML API fetches a web page for you, optionally rendering JavaScript in a headless browser and routing through proxies, and returns the page's HTML (or markdown, text, a screenshot or extracted data). Requests are GET https://app.scrapingbee.com/api/v1?url=..., with the target URL…

Source: https://osinttools.io/apis/scrapingbee/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/scrapingbee/

- Base URL: https://app.scrapingbee.com/api
- Authentication: Bearer token in the `Authorization` header. Get a key: https://www.scrapingbee.com/ api_key as a query parameter is deprecated.
- Rate limits: Not stated in the docs read.
- Vendor docs: https://www.scrapingbee.com/documentation/

## Overview

The ScrapingBee HTML API fetches a web page for you, optionally rendering JavaScript in a headless browser and routing through proxies, and returns the page's HTML (or markdown, text, a screenshot or extracted data).

Requests are `GET https://app.scrapingbee.com/api/v1?url=...`, with the target URL fully encoded. Send the key as `Authorization: Bearer`; the docs mark the `api_key` query parameter as deprecated. Headers and cookies from the target come back prefixed `Spb-`.

Credit cost depends on options: 5 credits by default (JavaScript rendering on), 25 with `premium_proxy` and JavaScript, 75 with `stealth_proxy`. The docs list a 30-second maximum for calls. Concurrency and rate limits were not on the part of the docs read.

## HTML API

### Fetch a page, optionally with JavaScript rendering and proxies.

`GET /v1`

- Takes: URL
- Footprint: active (contacts the target)
- Cost: 5 credits by default; 25 with premium_proxy and JavaScript; 75 with stealth_proxy

Returns the raw HTML of the target page by default. The target site is contacted by ScrapingBee on your behalf. Combining mode=auto with render_js, premium_proxy, stealth_proxy or transparent_status_code returns 400.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | query | string | yes | Full URL of the page, with protocol, URL-encoded Example: https://www.example.com |
| `render_js` | query | boolean | no | Render JavaScript with a headless browser Example: true |
| `premium_proxy` | query | boolean | no | Use premium proxies Example: false |
| `stealth_proxy` | query | boolean | no | Use the stealth proxy pool (needs JavaScript rendering) Example: false |
| `country_code` | query | string | no | Premium proxy geolocation Example: us |
| `wait` | query | integer | no | Extra milliseconds for JavaScript to render (0 to 35000) Example: 1000 |
| `wait_for` | query | string | no | CSS or XPath selector to wait for; a leading / means XPath Example: #content |
| `return_page_markdown` | query | boolean | no | Return the page content as markdown Example: false |
| `return_page_text` | query | boolean | no | Return the page's text content Example: false |
| `screenshot` | query | boolean | no | Return a screenshot Example: false |
| `json_response` | query | boolean | no | Wrap the response in JSON Example: false |
| `extract_rules` | query | string | no | Stringified JSON of CSS-selector extraction rules Example: {"title":"h1"} |
| `device` | query | string | no | Device the request is sent from Example: desktop |
| `session_id` | query | integer | no | Route several requests through the same IP address Example: 123 |
| `mode` | query | string | no | auto picks the cheapest configuration that succeeds Example: auto One of: auto |

Response fields:

- `(body)` (string): Raw HTML of the target page (or the format chosen by the return options)

```bash
curl 'https://app.scrapingbee.com/api/v1?url=https%3A%2F%2Fwww.example.com' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```
<!doctype html><html><head><title>Example Domain</title></head><body><h1>Example Domain</h1></body></html>
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
