Skip to main content
Catalog routes need only the API token. They never read the session headers, so you can cache them with the framework’s 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
  • image is the product’s cover, else the cover of its first active variant.
  • compareAtPriceMin is the “was” price of the cheapest variant, only when it is higher than its price, else null.
  • category is null when the product has none, or when it or a parent is inactive. path runs from the root to the category itself, ready for a breadcrumb.
Errors: 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
  • description is HTML that Strapi sanitizes on save against an allow list, so you can render it with dangerouslySetInnerHTML.
  • A variant without its own images carries the product images.
  • slugs holds the slug per locale. Use it for hreflang links and for the language switcher.
  • Use the variant id in 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.