Capturing XHR without Rendering
Last updated
Last updated
Introduction the is_xhr
parameter is a boolean option designed to capture internal API calls without requiring page rendering. While the network capture feature requires that rendering is enabled, is_xhr
provides a workaround by allowing data collection from internal APIs that do not depend on rendering.
This feature is particularly useful for efficiently gathering data from sources where rendering is not needed (internal API is accessible directly) , optimizing performance and reducing resource usage during the scraping process.
When enabled, the browser sends different headers for XHR against DOC requests
The target URL in this case would be the XHR/AJAX URL
Parameter | Required | Description |
---|---|---|
is_xhr
Optional (default = false)
Boolean | Instructs the Web API that the target page is an XHR request instead of a standard webpage. Only available when render
is set to false
(default)