SQL Server Versions API

We have an API where you can send a version number for a SQL Server installation and we will respond with the details of the version and if it is the latest version (ie "are there patches/CUs for my version?")