- 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
urlFull URL of the page, with protocol, URL-encoded
render_jsRender JavaScript with a headless browser
premium_proxyUse premium proxies
stealth_proxyUse the stealth proxy pool (needs JavaScript rendering)
country_codePremium proxy geolocation
waitExtra milliseconds for JavaScript to render (0 to 35000)
wait_forCSS or XPath selector to wait for; a leading / means XPath
return_page_markdownReturn the page content as markdown
return_page_textReturn the page's text content
screenshotReturn a screenshot
json_responseWrap the response in JSON
extract_rulesStringified JSON of CSS-selector extraction rules
deviceDevice the request is sent from
session_idRoute several requests through the same IP address
modeauto picks the cheapest configuration that succeeds
Response fields · 1ShowHide
(body)
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'<!doctype html><html><head><title>Example Domain</title></head><body><h1>Example Domain</h1></body></html>