# Rest API as HTML

**URL:** <https://community.prismic.io/t/rest-api-as-html/432>\
**Category:** Developing with Prismic\
**Tags:** rest-api\
**Created:** [May 15, 2020, 10:43am UTC](https://community.prismic.io/t/rest-api-as-html/432 "2020-05-15T10:43:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [May 15, 2020, 11:07am UTC](https://community.prismic.io/t/rest-api-as-html/432/2 "2020-05-15T11:07:22Z")

</div>

Hi Ken,

Welcome to the community 😀

You can easily convert the JSON output using the [Prismic DOM](https://github.com/prismicio/prismic-dom). It’s our JS library for doing exactly that.

Here’s an example of how to use it in pure JS:

```
var PrismicDOM = require('prismic-dom');
var titleHtml = PrismicDOM.RichText.asHtml(document.data.title, linkResolver)

```

You can see more examples here, we also have examples in many different frameworks:  
[https://prismic.io/docs/javascript/templating/rich-text#1\_0-output-as-html](https://prismic.io/docs/javascript/templating/rich-text#1_0-output-as-html)

Let me know if you have any other questions.

Thanks.

---

_[View the full topic](https://community.prismic.io/t/rest-api-as-html/432)._
