Skip to content
OSINTtools.io

ScrapingBee API

Send a URL and get its HTML, Markdown, a screenshot or extracted fields, rendered in headless Chrome behind rotating proxies.

Base URL
https://app.scrapingbee.com/api
Sign-in
Bearer token
Format
REST
Endpoints
1

Compiled by OSINTtools.io editors from scrapingbee.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

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.

Quick start

  1. Get a key

    Create an account with ScrapingBee and copy your bearer token. Where to get it

  2. Make your first request

    Fetch a page, optionally with JavaScript rendering and proxies.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

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

    A 200 response looks like this.

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

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

api_key as a query parameter is deprecated.

Get a key from ScrapingBee

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs read.

HTML API

  • Takes: URL
  • 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.

Query parameters

urlstringrequiredtakes your url

Full URL of the page, with protocol, URL-encoded

Example: https://www.example.com
render_jsboolean

Render JavaScript with a headless browser

Example: trueDefault: true
premium_proxyboolean

Use premium proxies

Example: falseDefault: false
stealth_proxyboolean

Use the stealth proxy pool (needs JavaScript rendering)

Example: falseDefault: false
country_codestring

Premium proxy geolocation

Example: us
waitinteger

Extra milliseconds for JavaScript to render (0 to 35000)

Example: 1000Default: 0
wait_forstring

CSS or XPath selector to wait for; a leading / means XPath

Example: #content
return_page_markdownboolean

Return the page content as markdown

Example: falseDefault: false
return_page_textboolean

Return the page's text content

Example: falseDefault: false
screenshotboolean

Return a screenshot

Example: falseDefault: false
json_responseboolean

Wrap the response in JSON

Example: falseDefault: false
extract_rulesstring

Stringified JSON of CSS-selector extraction rules

Example: {"title":"h1"}
devicestring

Device the request is sent from

Example: desktopDefault: desktop
session_idinteger

Route several requests through the same IP address

Example: 123
modestring

auto picks the cheapest configuration that succeeds

Example: autoOne of: auto
Response fields · 1Show

(body)string

Raw HTML of the target page (or the format chosen by the return options)

curl 'https://app.scrapingbee.com/api/v1?url=https%3A%2F%2Fwww.example.com' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
<!doctype html><html><head><title>Example Domain</title></head><body><h1>Example Domain</h1></body></html>