Iterate Through API And Download Results

Beginner problem here! I’m working with an API that looks like:

https://api.com/{{number}}?format=XML

I’d like to download the results for {{number}} 1 through 100, and ideally combine them into a single file. Even if the combining isn’t possible, I’d like to just download this big set of results

I see there is a postman.setNextRequest() but it runs 10x and then stop. Is there a better way to do this?

Hi @huguetteinc

Take a look at @vdespa’s YouTube video for writing to files using the Newman Library;

1 Like