get content bloks via storefront api

navarra-lab
Shopify Partner
2 0 0

Hello,

I'm trying to use Storefront API along with next.js to build custom storefront. 
I would like to make use of Shopify's content template/section/block feature to create content for pages in Shopify and display it in my custom next.js storefront. However I don't see possibility to access content blocks with storefront API. I can fetch pages with this API, but they only contain title and body fields and I need more structured content such as blocks/sections. 

Is it possible at all to create complex content for pages in shopify and fetch it via storefront API?
If so, where I can find hints how to do it?

Thanks in advance for your help 🙂

 

 

Replies 0 (0)