Search code examples
amp-html

Get dynamic value for AMP html page


I am trying to write simple product listing page. I need to deal with real time data since product price and quantity changes. What is the best way to achieve this?

I tried to use amp-list, but I have to set up endpoints where I can download json data. And it sounds like I need to set up an extra job which updates json data constantly.

I think I have to use iFrame but I want to make sure if iFrame is the only way and there is no workaround.

Is there any workaround or I can use amp-list for this purpose?

Thank you in advance.


Solution

  • In your case i see only amp-iframe as a solution. But iframe is not Google friendly for a product shop.
    The best way is to find a solution with JSON and amp-list or amp-live-list