I've read through the docs on how to add the aggregated reviews in your search result as rich snippet, but all docs explain that you should manually hardcode the review summary (i. e. number of reviews and star rating) in your ld+json structured data within your website.
Doesnt that mean that you manually have to update this data every time a new review comes in or your average star rating changes? Did I miss something? Isnt there a way to "just look at the Google ratings" and show them in the search result, too? Whats best practice here?
You would need JavaScript to query an API and obtain the reviews information to produce the markup on your page.
For products, there’s no such Google API:
https://support.google.com/google-ads/thread/108957491?hl=en&msgid=108960347
For business reviews, there is a Google API:
but Google do not show rich results when the review markup is for your own Organization or LocalBusiness:
https://developers.google.com/search/blog/2019/09/making-review-rich-results-more-helpful#self-serving-reviews-arent-allowed-for-localbusiness-and-organization.