I am setting up a system to run automated tests against my theme for new and upcoming versions of WordPress. I am looking for an api feed that will list the latest versions of WordPress.
Currently I know about the [Version Check API](https://api.wordpress.org/core/version-check/1.7/), but that doesn’t seem to include beta versions or release candidates.
The other source would be the [Releases Category in the WP.org news rest api](https://wordpress.org/news/wp-json/wp/v2/posts?categories=14&per_page=1), however there doesn’t seem to be a standard format of declaring the version, making it unreliable to parse.
The ultimate goal would be to get the version string such that it can be inserted into the format \`https://wordpress.org/wordpress-{{version}}.zip\` and download the correct zip file for that release.
So I guess that I’m hoping to find a source for new versions that is easy to parse like the version check api but includes RC and beta versions like the WP news blog has.
​
Please advise.
[ad_2]
WordPress is on GitHub https://github.com/WordPress/WordPress. You could try leveraging the releases GitHub API endpoint. https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28