Skip to content
Coursey CreativeSign in

GET /products

/api/store/[slug]/products

Lists the store's active products with variants, images, service charges, tags/collections, and any active sale pricing applied.

Public - no auth neededRate limit 120/min anonymous, 600/min with a keyHow authentication works

Path parameters

slugstringrequired

Business store slug (non-empty string, trimmed)

Query parameters

typeenumoptional

Filter by product type. Values outside the enum are silently ignored (no filter applied).

One of physical, digital

selectionenumoptional

Product selection mode: newest (created_at desc), featured (only featured=true products), or random (server-side shuffle). Unrecognized values fall back to newest.

One of newest, featured, random / Default newest

limitnumberoptional

Max products to return (page size). Integer >= 1, capped at 24. Invalid or missing means no limit. With selection=random the limit is applied after shuffling.

offsetnumberoptional

Number of visible products to skip before the page starts. Integer >= 0; invalid or negative values become 0. Counted after the out-of-stock visibility filter, so pages never contain gaps. Setting it also returns the pagination block.

Default 0

include_totalbooleanoptional

Set to true to add the pagination block (total, limit, offset, has_more) to the response. Use limit=1&include_total=true to read the catalog size without pulling the catalog. Costs a full scan of the store's matching products, so leave it off for plain catalog reads.

Default false

tagstringoptional

Filter to products having this tag (trimmed, internal whitespace collapsed, then matched exactly by tag name for the business). A non-matching tag returns an empty products array; values longer than 50 characters are silently ignored (no filter applied).

collectionstringoptional

Filter to products in this collection (trimmed, internal whitespace collapsed, exact name match). Combined with tag as an intersection; values longer than 100 characters are silently ignored (no filter applied).

Responses

200

The request succeeded.

304

Nothing has changed since the validator you sent. Reuse your copy.

429

Too many requests. Back off and retry after the window in the response.

What comes back

200 JSON: { products: [...] }, plus { pagination: { total, limit, offset, has_more } } when include_total=true or offset is set. total counts the products that pass the visibility filter, so it matches what the storefront can actually show; limit is null when no page size was requested. Each product has id, name, description, type, base_price (sale-adjusted), original_base_price (number or null), featured, created_at, updated_at, variants (sku excluded; may carry price, original_price, applied_sale_rule_id/name, applied_sale_scope, sale_label), images (product + variant images merged), service_charges, tag_names, collection_names, active_sale_rule (object or null), and optional sale_label / sale_ends_at when a sale is active. Sends ETag and honors If-None-Match with 304 for server-side callers only; the validator is withheld from any request carrying an Origin header, because a 304 loses its CORS headers and a browser would block it. Products with hide_when_out_of_stock=true and zero total inventory are excluded. CORS open, OPTIONS supported.