REQUEST_REVALIDATE value. Rate limit: catalog, 600 requests per minute per client IP.
src/lib/store/catalog.ts
available in a cached answer can be a few seconds old. That is fine: every quote and every order checks the real
stock again.List Products
GET /products
Filters combine with AND. Strapi looks up
category and collection slugs in the request locale, then in the default locale. An unknown slug, an inactive collection, or an inactive category (or one under an inactive parent) answers 404 NOT_FOUND. Unknown tag ids simply return an empty list. Tags have no slug: use the ids from the product answers.
Response 200
imageis the product’s cover, else the cover of its first active variant.compareAtPriceMinis the “was” price of the cheapest variant, only when it is higher than its price, elsenull.categoryisnullwhen the product has none, or when it or a parent is inactive.pathruns from the root to the category itself, ready for a breadcrumb.
400 with invalid_number (page, pageSize), invalid_sort, invalid (tag, or a repeated category or collection), invalid_locale; 404 NOT_FOUND for an unknown filter slug.
src/app/(store)/shop/page.tsx
Get a Product
GET /products/:slug?locale=
Strapi looks the slug up in the request locale, then in the default locale. An unknown product, an inactive one, or one without active variants answers 404 NOT_FOUND.
Response 200
descriptionis HTML that Strapi sanitizes on save against an allow list, so you can render it withdangerouslySetInnerHTML.- A variant without its own images carries the product images.
slugsholds the slug per locale. Use it forhreflanglinks and for the language switcher.- Use the variant
idin the cart.
src/app/(store)/shop/products/[slug]/page.tsx
List Categories
GET /categories?locale=
Returns the tree of active root categories. An inactive category hides its whole subtree. children come in the admin’s order (position).
Response 200
Get a Category
GET /categories/:slug?locale=
The same fields without children, plus description, seoTitle and seoDescription (null when empty) and path (the breadcrumb, root first). An unknown or inactive category, or one under an inactive parent, answers 404 NOT_FOUND. List its products with GET /products?category=:slug.
Response 200
List Collections
GET /collections?page=&pageSize=&locale=
Returns the active collections sorted by title, paginated like the products (pageSize 1 to 50, default 24).
Response 200
Get a Collection
GET /collections/:slug?locale=
Returns one collection with the same fields. An unknown or inactive collection answers 404 NOT_FOUND. List its products with GET /products?collection=:slug. The API never exposes whether a collection is manual or automated, nor its rules.