API for retrieving the Pega version

I’m looking for an API that will return the installed version of Pega on a server. There is a function pxGetBuildNameString(), or com.pega.pegarules.pub.util.BuildInfo.getDisplayName().

There also is a datapage D_psSystemInformation, but that returns the version info like below:
,“pxBuildMajorVersion”:“08” ,“pxBuildMinorVersion”:“24” ,“pxBuildName”:“PRPC-8.24.51-236”

I would like to have the version number in the ‘new’ format: “24.2.1”

Is there an API or datapage available OTB that provides that info?

Background: we need that info to determine what version of the ConstellationJS-library we need to access a Pega server.

@BartRoozendaal

I don’t think there is any OOTB API available. You can use the D_Application data page to retrieve the version number in the new format which is stored in the pxCSPC11nEnabledVersion property.

@SohamM95 Yes, that helps. Thanks!