Products are the goods or services your store sells, the items shoppers browse and buy in your storefront. A product groups one or more variants, which determine its price range and availability, and can carry media, belong to collections, and be labeled with tags. This is the public, read-only view of a product: only active products are returned, titles are localized to the requested language, and prices are resolved into the requested display currency. Use it to render storefront listing and product pages.
featured_media_type before rendering.featured_media (e.g. image/webp, video/mp4). Null when the product has no media..mp4 at position 1 and a .png at position 2, featured_image returns the .png, not the .mp4. Always safe to render directly in an image tag.Returns active products for the store, paginated with a cursor. Prices use the X-Currency header (default: the store currency) and titles use Accept-Language (default: the store language).
Authorization header expects a Bearer token. Use a publishable API key (prefixed with pk_). It is scoped to a single store, so there is no store ID to pass in requests, and is safe to use from client code: it covers your public storefront data and shopper actions such as cart creation, but never private data or administrative operations. Generate one on the API keys page in your dashboard.starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with prod_foo, your subsequent call can include starting_after=prod_foo in order to fetch the next page of the list.ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with prod_bar, your subsequent call can include ending_before=prod_bar in order to fetch the previous page of the list.q only filters, it does not rank: results are not ordered by how closely they match, and the closest match is not surfaced first. Ordering is always controlled by sort and order (default created_at).Returns a paginated list of products matching the supplied filters. The data array holds up to limit product objects ordered by sort and order, has_more is true when further pages remain, and total_count is the number of products across all pages. The array is empty when no products match.
limit items, ordered by sort and order. Empty when no products match.starting_after to fetch the next page.