Storefront endpoint sample to fetch products

Storefront endpoint sample to fetch products

lailys
Shopify Partner
2 0 0

Hey- If I need to get the products from outside through an endpoint, what would be that endpoint? 

 

Reply 1 (1)

c10s
Shopify Partner
67 12 27

Storefront API endpoint is: yourshop.myshopify.com/api/2022-01/graphql.json (you'll need to include your storefront access token)

{
  products(first: 50) {
    edges {
      node {
        id
        title
      }
    }
  }
}

 Will return 50 products