How can I save API response, that I get in Postman, to a Json file or CSV file?
Sooner or later you will ask yourself the question: how can a read or write files to disk when using Postman? The quick answer to this question is: you cannot. From here on, starts the answer to this question and a possible solution that will require some JavaScript skills on your side.
in a nutshell i want to save all request and their corresponding responses into excel sheet. you can do it using newman as a library. just store the data you want in a environment variable , and at the end of the run export that varaible and write to csv.
There are 2 ways of saving the response to a file:
In Postman 7.3 simply click Save Response
after executing a request.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With