Scrape a site response

Hello
Is there a way to save received responses when scraper clicks on links? Each click produces an AJAX query which returns a JSON response I'd like to read
Thanks!