---
title: "Returns the summary information for an account, can be further filtered."
method: GET
path: "/v1/accounts/{accountSid}/metrics/summary"
tags: ["Metrics"]
---

# Returns the summary information for an account, can be further filtered.

`GET /v1/accounts/{accountSid}/metrics/summary`

## Request

- Base URL: `https://api.apitraffic.io`
- URL: `https://api.apitraffic.io/v1/accounts/{accountSid}/metrics/summary`
- Auth: none declared
- TypeScript: <https://skmtc.dev/apitraffic/apis/apitraffic-api-documentation/docs/v1/accounts/:accountSid/metrics/summary/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `accountSid` string, required: accountSid

## Query parameters

- `startTime` string, required: The start date/time for the data that should be returned.
- `endTime` string, required: The end date/time for the data that should be returned.
- `environmentSid` string, required: Sid of the environment
- `bucketSid` string: A BucketSid to filter the data by.
- `apiSid` string: An ApiSid to filter the data by.
- `pathSid` string: A PathSid to filter the data by.

## Response `200`

The data structure that each of the metrics will be reported back with.

- MetricsSummary: The data structure that each of the metrics will be reported back with.
  - `requests` Requests, required: The request metrics for the given period.
    - `current` MetricDetail: Actual value for the metric at the given point in time.
      - `amount` number, nullable, required: The current value of the metric.
      - `units` 'requests' | 'milliseconds', required: The unit of the metric.
    - `previous` MetricDetail: Actual value for the metric at the given point in time.
      - `amount` number, nullable, required: The current value of the metric.
      - `units` 'requests' | 'milliseconds', required: The unit of the metric.
    - `change` MetricDetailChange: The amount of change in the value of the metric as compared to the previous period of time.
      - `amount` number, nullable, required: The amount of change for the same metric over the previous period.
      - `units` 'percent' | 'milliseconds', required: The unit of change.
  - `responseTime` ResponseTime, required: The response time metric for the given period.
    - `current` MetricDetail: Actual value for the metric at the given point in time.
      - `amount` number, nullable, required: The current value of the metric.
      - `units` 'requests' | 'milliseconds', required: The unit of the metric.
    - `previous` MetricDetail: Actual value for the metric at the given point in time.
      - `amount` number, nullable, required: The current value of the metric.
      - `units` 'requests' | 'milliseconds', required: The unit of the metric.
    - `change` MetricDetailChange: The amount of change in the value of the metric as compared to the previous period of time.
      - `amount` number, nullable, required: The amount of change for the same metric over the previous period.
      - `units` 'percent' | 'milliseconds', required: The unit of change.
  - `errors` Errors, required: The error metric for the given period.
    - `current` MetricDetail: Actual value for the metric at the given point in time.
      - `amount` number, nullable, required: The current value of the metric.
      - `units` 'requests' | 'milliseconds', required: The unit of the metric.
    - `previous` MetricDetail: Actual value for the metric at the given point in time.
      - `amount` number, nullable, required: The current value of the metric.
      - `units` 'requests' | 'milliseconds', required: The unit of the metric.
    - `change` MetricDetailChange: The amount of change in the value of the metric as compared to the previous period of time.
      - `amount` number, nullable, required: The amount of change for the same metric over the previous period.
      - `units` 'percent' | 'milliseconds', required: The unit of change.
  - `blocked` Blocked, required: The requests blocked metric for the given period.
    - `current` MetricDetail: Actual value for the metric at the given point in time.
      - `amount` number, nullable, required: The current value of the metric.
      - `units` 'requests' | 'milliseconds', required: The unit of the metric.
    - `previous` MetricDetail: Actual value for the metric at the given point in time.
      - `amount` number, nullable, required: The current value of the metric.
      - `units` 'requests' | 'milliseconds', required: The unit of the metric.
    - `change` MetricDetailChange: The amount of change in the value of the metric as compared to the previous period of time.
      - `amount` number, nullable, required: The amount of change for the same metric over the previous period.
      - `units` 'percent' | 'milliseconds', required: The unit of change.

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/apitraffic/apis/apitraffic-api-documentation.md) - [All operations](https://skmtc.dev/apitraffic/apis/apitraffic-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/apitraffic/apis/apitraffic-api-documentation/revisions/b2a22a9b5c98?raw)
