learnshopify.dev/Workspace
code reading

Priya's Yirgacheffe fetch, through the Storefront API. Compare it to the Admin version, then answer.

# POST https://northwind-coffee.myshopify.com/api/2026-04/graphql.json
# Header: X-Shopify-Storefront-Access-Token: <public token>

query FeaturedCoffee {
  product(handle: "ethiopian-yirgacheffe") {
    id
    title
    availableForSale
    variants(first: 1) {
      edges {
        node {
          id
          price {
            amount
            currencyCode
          }
        }
      }
    }
  }
}
1. The microsite fetches this from the visitor's browser. Why is that acceptable?
2. Which of these can the Storefront API do?
3. Which project reaches for the Storefront API?
4. An AI-generated storefront calls the Admin API from browser JS. What's the damage?
0 / 1 task solved