Solved

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

dpareek
Visitor
3 0 0

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.

Accepted Solution (1)
oscprofessional
Shopify Partner
15830 2369 3072

This is an accepted solution.

query {
products(first: 50) {
edges {
node {
id
title
publishedAt
}
}
}
}
Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Custom Pricing Wholesale App : Free | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing

View solution in original post

Replies 4 (4)

oscprofessional
Shopify Partner
15830 2369 3072

Hello  

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

 

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Custom Pricing Wholesale App : Free | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing
dpareek
Visitor
3 0 0

What is the Graphql Query for storefront

Nesters
Shopify Partner
19 1 19

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?

 

 

Contact me: mail@nesters.me
Technical solutions / integration / headless ecommerce.
Latest post: Benefits of JAMstack ecommerce
oscprofessional
Shopify Partner
15830 2369 3072

This is an accepted solution.

query {
products(first: 50) {
edges {
node {
id
title
publishedAt
}
}
}
}
Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Custom Pricing Wholesale App : Free | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing