Using the WordPress API to fetch the data for a theme doesn’t make sense as the WP API is self consuming (the end points live on the same server that the theme is served from) and you can save yourself the round trip request from the browser to the server and then back down to the browser again.