How to return the latest available ERA5 date via cdsapi?

For open-data api, it provides a return about the latest update and available data, so I wonder know can cdsapi do the same thing like this, for example, i can set a input parameter like “latest”, it will return the latest time and download the newest one~

thx~

Yu WANG