Ui Components in this case, to get or modify the price in the category or product pages.
no need to use AJAX calls use
Ui Components instead
- Override them in your requirejs
- use a mix-in and get or modify the prices
added a few links below for your reference