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

# Get all products

`GET /ecommerce/products`

The API returns all the products available in an e-commerce application.

When invoked, this API fetches and retrieves the complete list of products offered by the e-commerce platform.

The response typically includes details such as the product name, description, price, stock, and other relevant information.

This API allows users or other systems to access and display the entire catalog of products, facilitating browsing and purchasing decisions within the e-commerce application.

## Query parameters

- `page` string
- `limit` string

## Response `200`

Get all products

- object
  - `data` object
    - `hasNextPage` boolean
    - `hasPrevPage` boolean
    - `limit` number
    - `nextPage` number
    - `page` number
    - `prevPage` unknown
    - `products` object[]
      - `__v` number
      - `_id` string
      - `category` string
      - `createdAt` string
      - `description` string
      - `mainImage` object
        - `_id` string
        - `localPath` string
        - `url` string
      - `name` string
      - `owner` string
      - `price` number
      - `stock` number
      - `subImages` object[]
        - `_id` string
        - `localPath` string
        - `url` string
      - `updatedAt` string
    - `serialNumberStartFrom` number
    - `totalPages` number
    - `totalProducts` 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)
