How can I fetch the homepage image banner slider from a Shopify store using the Storefront API? Which API query or resource should I use to retrieve this data?
Hey @Riyas_Foxiom there’s not a Storefront API feature that would allow you to access the banner slider data/information. We do offer a Section Rendering AJAX API that may help with obtaining some of that information though: Section Rendering API
Just out of curiosity, were you just wanting to pull banner info or manipulate any of that data? Just wondering what your use case would be here so we can look at some options/workarounds.
Hope this helps - let me know if I can clarify anything on my end here!
Thanks a lot for the quick response — really appreciate it! @Alan_G
Can you please guide me on how to use the Section Rendering AJAX API in a Flutter app? A simple example or the expected response format would be super helpful.
No worries @Riyas_Foxiom! Thanks for clarifying as well. With Flutter you might run into some CORS issues since our AJAX API expects API calls to come directly from the shop’s Shopify domain rather than an external service.
That said, you should be able to set up routing using our App Proxy tools if you wanted to integrate flutter with the Section Rendering API:
This is a little complex and I wouldn’t be able to help with the direct code-level implementation (in my role here on the forums I can only assist with our APIs/Libraries when it comes to code-level support), but this should hopefully help you get started with building. Let me know if I can help out further!