JavaScript rendering
We provide a complete solution that saves you from setting up proxies, browser fingerprinting, headless browsers, etc. Just set the render type in the header and you will receive a rendered result.
Rendering Type
You can choose between two rendering types:
png
(raw bytes that can be saved as PNG)html
(The HTML of the rendered page)
Receives rendered page content in HTML format
Scrape the HTML of a website
In this example, we will render the YouTube homepage and scrape the page content. Typically, if the generic crawling API is used without JavaScript rendering, YouTube's homepage looks like this:
Enable Javascript rendering, and return the HTML of the rendered page:
Receive rendered page content in PNG format
The response will contain the raw bytes of an image that can be saved as a PNG format.
It can be saved in PNG format and opened as follows:
Enable JavaScript rendering
To activate JavaScript rendering, set js_render=true and we will use the browser to make the request.
To activate JavaScript rendering, set js_render=true and we will use the browser to make the request.
Last updated
Was this helpful?