---
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`

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.net/gravitee-io/apis/gravitee-io-apim-management-api-environments.md) · [All operations](https://skmtc.net/gravitee-io/apis/gravitee-io-apim-management-api-environments/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gravitee-io/gravitee-io-apim-management-api-environments/versions/a2bffc8c2e17/schema)
