---
title: "Admin dashboard statistics"
method: GET
path: "/dashboard/stats"
tags: ["Admin Dashboard"]
---

# Admin dashboard statistics

`GET /dashboard/stats`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/dashboard/stats`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/dashboard/stats/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns aggregate stats from `Webkul\Admin\Helpers\Dashboard`. Use `?type=` to choose the stat group; `?start=` + `?end=` (ISO dates) to bound the window; `?channel=` (channel code) to filter by channel.

## Query parameters

- `type` 'over-all' | 'today' | 'stock-threshold-products' | 'total-sales' | 'top-selling-products' | 'top-customers'
- `start` string, date
- `end` string, date
- `channel` string

## Response `200`

Stats payload + date range.

## Changes

- **2026-10-28** `982b36ea11ab`: 1 breaking
  - removed the enum value `total-visitors` from the `query` request parameter `type`

[Operation history](https://skmtc.dev/bagisto/apis/bagisto-admin-api/changes/dashboard/stats/get.md)

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
