Not sure if you are still facing this but prismic at least allows you to have params in your api endpoint to define whether you want an html or a json formatted response… see https://prismic.io/docs/technologies/the-rest-api-browser There should be corresponding options for contentful as well if you look at the documentations for both