Skip to content

GET/categories/{id}/products

List category's products

Retrieve category's products. Same filtering, sorting, and pagination as `/products`.

Parameters 13

NameTypeDescription
_pagequery · integerPage number (1-based)
_limitquery · integerItems per page
_startquery · integerSlice start index (alternative to page-based)

ReturnsProduct

Bearer token required

Response examples

200Array of products

application/json example derived from schema

[
  {
    "id": 1,
    "categoryId": 4,
    "name": "Desk Lamp",
    "description": "Ultra-fast connectivity with rock-solid reliability.",
    "price": 161.28,
    "originalPrice": 231.38,
    "currency": "USD",
    "stock": 257,
    "sku": "SKU-00001",
    "rating": 4.4,
    "reviewCount": 188,
    "image": "https://picsum.photos/seed/prod1/400/400",
    "images": [
      "https://picsum.photos/seed/prod1-0/400/400",
      "https://picsum.photos/seed/prod1-1/400/400",
      "https://picsum.photos/seed/prod1-2/400/400",
      "https://picsum.photos/seed/prod1-3/400/400",
      "https://picsum.photos/seed/prod1-4/400/400"
    ],
    "weight": 9.19,
    "dimensions": {
      "width": 33.4,
      "height": 40,
      "depth": 14.6
    },
    "isAvailable": true,
    "isFeatured": false,
    "tags": [
      "backend"
    ],
    "createdAt": "2024-05-30T01:37:26.059Z",
    "updatedAt": "2026-12-15T02:55:19.943Z"
  }
]
404404 — resource not found

application/json

{
  "error": {
    "status": 404,
    "message": "users #999 not found"
  }
}

Released under the MIT License.