---
title: "Retrieves a queue's statistics."
method: GET
path: "/routing/queues/{queueId}/statistics"
---

# Retrieves a queue's statistics.

`GET /routing/queues/{queueId}/statistics`

Retrieves a queue's statistics.

## Path parameters

- `queueId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

The request has succeeded.

- RouterQueueStatistics — Statistics for the queue.
  - `queueId` string, required — Id of the queue these details are about.
  - `length` integer, required — Length of the queue: total number of enqueued jobs.
  - `estimatedWaitTimeMinutes` object — The estimated wait time of this queue rounded up to the nearest minute, grouped by job priority.
  - `longestJobWaitTimeMinutes` number, double — The wait time of the job that has been enqueued in this queue for the longest.

## Other responses

- `default` — An unexpected error response.

## Changes

- **2022-05-05** `8cbeaf5a7ce3` — 1 warning, 2 info
  - the optional response header `x-ms-error-code` removed for the status `default`
  - api operation id `JobRouterOperations_GetQueueStatistics` removed and replaced with `JobRouter_GetQueueStatistics`
  - api tag `Queues` added

[Change history](https://skmtc.dev/azure/apis/communication-jobrouter/changes/routing/queues/:queueId/statistics/get.md)

---

[API](https://skmtc.dev/azure/apis/communication-jobrouter.md) · [All operations](https://skmtc.dev/azure/apis/communication-jobrouter/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/communication-jobrouter/revisions/c06e8f55d8b7/schema)
