Download file from API and save it on DB

Hi to everyone,

I’m asking how to download file from a known API and save it on DB.
I can call the external api, I can download the file that this external API but I can’t handle it also if I use some node modules like pdflib or pdf-kit.
Because there aren’t exceptions or errors I can’t see why it doesn’t work.

Can someone help me?

Thanks

Giuseppe