Arducopter Version Check API

Does anyone know if there is an API to check the latest Master version of Arducopter? An API that can be pinged in order to check what the latest version is? What about an API that can also respond with the corresponding hex file to flash a vehicle with the requested version?

Any help in this area would be greatly appreciated. If this is in the wrong category, please let me know as well.

Never mind it can be done doing the following:

http://firmware.ardupilot.org/Copter/stable/

Under the hardware version you are using, (my case CubeBlack) you can open firmware-version.txt and it shows the latest stable version.

Edit:
Wrote this quick Python script.

import requests
target_url=“http://firmware.ardupilot.org/Copter/stable/CubeBlack/firmware-version.txt
response = requests.get(target_url)
data = response.text
print(data)