---
title: "Get all categories"
method: GET
path: "/ecommerce/categories"
tags: ["🛒 Ecommerce"]
---

# Get all categories

`GET /ecommerce/categories`

The API endpoint allows users to fetch all the available categories in an e-commerce application.

When accessing this endpoint, users will receive a response containing a list of categories that exist within the e-commerce app.

## Query parameters

- `page` string
- `limit` string

## Response `200`

Get all categories

- object
  - `data` object
    - `categories` object[]
      - `__v` number
      - `_id` string
      - `createdAt` string
      - `name` string
      - `owner` string
      - `updatedAt` string
    - `hasNextPage` boolean
    - `hasPrevPage` boolean
    - `limit` number
    - `nextPage` number
    - `page` number
    - `prevPage` unknown
    - `serialNumberStartFrom` number
    - `totalCategories` number
    - `totalPages` number
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/revisions/a9f3a290e4dc/schema)
