---
title: "Get response status counts for v2 and v4 APIs from specified environment"
method: GET
path: "/analytics/response-status-ranges"
tags: ["Environment Analytics"]
---

# Get response status counts for v2 and v4 APIs from specified environment

`GET /analytics/response-status-ranges`

## Request

- Base URL: `/management/v2/environments/DEFAULT` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/management/v2/environments/DEFAULT/analytics/response-status-ranges`
- Auth: one of:
  - HTTP basic
  - API key in cookie `Auth-Graviteeio-APIM`

Get v2 and v4 API analytics response status counts. Response statuses are grouped by endpoint and status code hundreds.

## Query parameters

- `from` integer
- `to` integer

## Response `200`

Analytics for status codes by entrypoint at environment level

- object: Environment level API Analytics for status codes by entrypoint.
  - `ranges` object: Global status ranges. Alongside the `<from>-<to>` range keys, the reserved key `unknown` holds the requests those ranges cannot classify — typically a request whose response status was never committed, indexed with status 0.

## Other responses

- `default`: Generic error response

---

[API](https://skmtc.dev/gravitee-io/apis/gravitee-io-apim-management-api-environments.md) - [All operations](https://skmtc.dev/gravitee-io/apis/gravitee-io-apim-management-api-environments/llms.txt) - [OpenAPI document](https://skmtc.dev/gravitee-io/apis/gravitee-io-apim-management-api-environments/revisions/b736a7e375df?raw)
