Download JSON as FILE and sending by email

Hi there! You have a great community. Sorry but I would like to know how do can I download a JSON from http request in my pc.

Hey @morella_figuera, welcome to the community :tada:

The answer to your questions depends on how you are running n8n. Are you using the desktop version? If so, this is fairly straightforward and could be done with a workflow like this:

The key to getting a file in the first place here would be the Response Format option of the HTTP Request node:


When trying out this workflow on your end, you’d also need to adjust the path in the Write Binary File node (unless you are also using Windows and have a user account named Tom):

Hope this helps!

Edit, sorry, I was just reading your post text about the download and ignored the subject about sending an email. If you want to send an email instead of storing the file, simply replace the Write Binary File node with a Send Email node like so:

This helps me a lot! Thank you very much!