Checkout UI

I am currently working with the boilerplate Shopify CLI theme-extension code. I have successfully implemented the star rating feature, and I am able to set the star values in the product attribute. I’m wondering if it’s possible to retrieve the star rating value from another source, such as a custom API or a PHP script running on the same server as the app. Additionally, I’m interested in finding a tutorial on how to achieve this.