getProducts
Fetches all products from the store.Response
Product[]
Array of products
Use product images by surface:
cdn_image_urlfor product cards, category grids, cart rows, and search resultsdetail_image_urlfor product detail pages, image galleries, and zoomimages[]for the full gallery
cdn_image_url, you should switch that hero to detail_image_url to get the higher-resolution image.Example: Product Grid
getProduct
Fetches a single product by ID or slug.Parameters
string
required
Product unique ID or URL slug
Example: Product Detail Page
getCategories
Fetches all unique product category IDs from your store.Example: Category Filter
Product Groups
Stores can organize products into groups (e.g. “Server Boosts”, “Tokens”). Groups come fromgetStorefront():
Group object
string
Unique group identifier
string
Group name
string[]
References to the group’s products. Resolve them against the flat products list — the full product objects are not embedded in the group.
number
Number of products in the group
number
Display order of the group
Resolving group products
Build a lookup from the flat products list and resolve each group’s references:Migrating from 0.3.x? Replace every
group.products_bound read with the lookup above. getProducts() now returns the complete flat catalog (group-bound products included), so you no longer need to merge group products into your listing yourself. If you call the REST API directly: /v1/storefront/products/public/:slug groups carry product_uniqids, and /v1/storefront/products/shop/:name no longer returns groups at all — read groups from the public catalog or bootstrap payload instead.Working with Variants
Products can have multiple variant types:Standard Variants
Variants like size or color that don’t change the price:Price Variants
Variants that have different prices:Addons
Optional extras the customer can add:Error Handling
Next Steps
Cart API
Add products to the shopping cart
Store API
Fetch store metadata and branding