Title: Headless &amp; AMP
Last modified: February 24, 2021

---

# Headless & AMP

 *  [Kamarweb Product Team](https://wordpress.org/support/users/haryowicaksono/)
 * (@haryowicaksono)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/headless-amp/)
 * Hi All,
 * Currently, we using WordPress as headless web app (content.cartalog.id) to display
   content via JSON on cartalog.id/riset
 * My question :
    Is it possible to fetch any content AMP (/amp) to display on cartalog.
   id/riset using JSON / any available method?
 * Thank you before
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fheadless-amp%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/headless-amp/#post-14093670)
 * If you had the AMP content available, how do you intend to render it on your 
   site? Is the page as a whole going to be valid AMP or are you looking to embed
   an AMP page inside of a non-AMP page (such as with the AMP Shadow Doc API)?
 * We’ve been considering various approaches for doing this:
    [https://github.com/ampproject/amp-wp/issues/1014](https://github.com/ampproject/amp-wp/issues/1014)
   [https://github.com/ampproject/amp-wp/pull/2827](https://github.com/ampproject/amp-wp/pull/2827)
 *  Thread Starter [Kamarweb Product Team](https://wordpress.org/support/users/haryowicaksono/)
 * (@haryowicaksono)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/headless-amp/#post-14093792)
 * Hi [@westonruter](https://wordpress.org/support/users/westonruter/)
 * Thank you for fast response. Whats is the best method to display it inside PWA?
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/headless-amp/#post-14093802)
 * There is no best way. There are some options: [https://amp.dev/documentation/guides-and-tutorials/learn/combine-amp-pwa/](https://amp.dev/documentation/guides-and-tutorials/learn/combine-amp-pwa/)
 * Either you can have “AMP as PWA” in which AMP pages themselves are served by 
   your service worker. You can see this for example on amp-wp.org. This is described
   at [https://amp.dev/documentation/guides-and-tutorials/optimize-and-measure/amp-as-pwa/?format=websites](https://amp.dev/documentation/guides-and-tutorials/optimize-and-measure/amp-as-pwa/?format=websites)
 * The other option is “AMP in PWA” in which you can embed AMP pages inside your
   PWA app shell. This is described at [https://amp.dev/documentation/guides-and-tutorials/integrate/amp-in-pwa/?format=websites](https://amp.dev/documentation/guides-and-tutorials/integrate/amp-in-pwa/?format=websites)
 * The former is simpler to implement and generally I’d say the better approach 
   overall unless you really need to have an app shell, such as to support a persistent
   audio player that continuously plays as you navigate around the site.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Headless & AMP’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/headless-amp/#post-14093802)
 * Status: not resolved