Hi Hugo,
afaik there is no way to download the installer directly via an API call.
One way you could automate this is with a combination of web scraping (eg. with JSoup) and selenium.
Check with JSoup which is the latest mendix installer version and if you not have downloaded it, automate the download process with selenium.