How to add website rating to google search result?

I have to add rating from my website to google rating. And these rating aggregate displayed on search result . Is it possible? If yes , then how to connect with that api?