I’m wondering if anyone knows of an API I can use to programmatically return the newest stable/publically available core version number of common web platforms like WordPress, Magento CE, and Drupal.
For instance, as of asking this question, said API might return WordPress 4.2.1 and Magento 1.9.1.1, etc
I’ve read a few posts like https://wordpress.org/support/topic/programmatically-check-latest-wp-release that suggest I might be able to parse the file name of the newest downloadable version of files to return version numbers, but I’m hoping for an easier solution!
Thanks
For wordpress you can use this api:
http://api.wordpress.org/core/version-check/1.7/?version=3.9.1
example code to parse:
About drupal cms try this:
About MagentoCE try parse this file:
the pattern wil be: Magento Community Edition [VERSION] is available
I think you should be able to use bower for this.
For example, I ran
bower info wordpress
and got the following output:Wrap a simple script around that in your favorite language to grab the top version, and there you go.