This free API provides the newest version number and download URL for popular software packages and libraries. The idea for this API was driven by the need to repeatedly update bash scripts that contain hardcoded references to a version number or download URL. Now, instead of hardcoding these values, they can be retrieved from this API and scripts never have to be updated when a new version is released. To do so, send a GET request with the name of a software package (using curl, httpie or similar tool), then parse the JSON response (using JQ or similar tool) which contains the newest version number of the product and a download URL for the newest version. Version information for each product is updated every 60 minutes.
For more info, see the live website: http://www.thenewestversion.com/api/v1/ui