Skip to main content

Product Listing

The useProducts hook fetches a paginated list of products from the Shopify Storefront API.

Usage

Hook API

Query Fields

Each product edge returns:
  • id — Shopify GID
  • title, handle, description
  • availableForSale
  • priceRange{ minVariantPrice, maxVariantPrice }
  • images(first: 1) — primary image
  • variants(first: 1) — first variant with price
For the full field set, see the GET_PRODUCTS operation in the GraphQL Reference.