I am scraping a site for for some details. I'm sending a POST request to an url and need to get the JSON response data for that because the data I need is not rendered into the HTML.
Normally I would just use axios.post() or an alternative but the rest api blocks requests without a session id so I have to use a headless browser.
So, is there a way to intercept the REST APIs JSON response, like you can check it in the 'Network' tab in developer tools?