Update notification via API?


I would love to have a script running scheduled on my local machine, checking if updates for apps or nextcloud-server are availabe on my remotely hosted nextcloud.

Is there a REST interface or something, that I could use to retrieve this information?

Background: Currently I’m logging into admin on my nextcloud about once a week only to check for updates. Would love to automate this.