I did a quick google search and this looks promising:
https://www.ftp-api.com/
All we would need is a link to the file or some middleware that converts the json api post to a file.