Skip to main content
Core and Advanced plans are no longer available for purchase. Please consider migrating to the all-in-one Web Scraper API; check out the guide here.
Often, extracting the necessary data directly from one or more Fetch or XHR requests made by the browser during page load is more efficient than parsing the HTML content. Therefore, Web Scraping API supports retrieving a list of XHR requests.
This feature is available with Web API Advanced plans

How to get the XHR request list

To obtain a list of XHR requests in the response, you will need to add the xhr with value true, for example:
You will receive a response containing a list of JSON objects, where each object corresponds to a single XHR request. It’s possible to receive a multi-type response; more information can be found here.

Output

Response Example

xhr output is not supported by all Target Templates. Check the individual template documentation for compatibility.

Support

Need help or just want to say hello? Our support is available 24/7.
You can also reach us anytime via email at support@decodo.com.

Feedback

Can’t find what you’re looking for? Request an article!
Have feedback? Share your thoughts on how we can improve.