Fetch all Products of all categories with storefront api for ios app

Hi there,

i am developing a shopify store’s Custom iOS Application and now i am stuck on the process product searching so there i need the list of all product to search from it or if there is any other help so please help me for that.

Hello dpareek,

You can retrive all product using this API:
{site_url}/admin/api/#{api_version}/products.json

What is the Graphql Query for storefront

Hey,

For the Storefront API you will need to paginate over the results and the strategy depends on the graphQL client you are using to make the process easier.

Are you by any chance using JS buy SDK?

query {
products(first: 50) {
edges {
node {
id
title
publishedAt
}
}
}
}
2 Likes