Skip to content
Login Sign up

Rendering JavaScript

Single-page apps and sites that hydrate content after the initial HTML load need a real browser to render fully. Pass render_js=1 to run the scrape through a headless browser and receive the fully rendered HTML.

GET https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=<TARGET_URL>&render_js=1
ParameterTypeRequiredDescription
api_keystringyesYour Web Scraping API key
urlstringyesTarget URL to fetch
render_jsintegerno0 (default) or 1. Set to 1 to render with a headless browser.
Terminal window
curl "https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=https://example.com&render_js=1"
<!doctype html>
<html>
<head>
<title>Example Domain</title>
</head>
<body>
<div>
<h1>Example Domain</h1>
<p>This domain is for use in illustrative examples in documents.</p>
<p><a href="https://www.iana.org/domains/example">More information...</a></p>
</div>
</body>
</html>