Web Scraping APIAdvanced API Features
Rendering JavaScript
Render JavaScript on pages that require client-side execution.
Some pages do not include the data you need in the initial HTML. Use render_js=1 when the target page needs client-side JavaScript to run before WebScrapingAPI returns the response.
JavaScript rendering is disabled by default. Enable it only for targets that need it because browser rendering is more expensive than a plain HTTP fetch.
Request
curl --get "https://api.webscrapingapi.com/v2" \
--data-urlencode "api_key=YOUR_API_KEY" \
--data-urlencode "url=https://example.com" \
--data-urlencode "render_js=1"Parameters
| Name | Required | Description |
|---|---|---|
api_key | ✅ | Your WebScrapingAPI key. |
url | ✅ | Target URL. |
render_js | ✅ | Set to 1 to render the target page in a browser. |
Response
The response is the rendered target page body unless you also enable a JSON response mode.
<!doctype html>
<html>
<body>
<main id="app">Rendered content</main>
</body>
</html>Use rendering together with wait controls when the page loads data after route changes, delayed requests, or user-interface initialization.