---
title: "Get all custom metrics by hourly average"
method: GET
path: "/api/v1/usage/top_avg_metrics"
tags: ["Usage Metering"]
---

# Get all custom metrics by hourly average

`GET /api/v1/usage/top_avg_metrics`

Get all [custom metrics](https://docs.datadoghq.com/developers/metrics/custom_metrics/) by hourly average. Use the month parameter to get a month-to-date data resolution or use the day parameter to get a daily resolution. One of the two is required, and only one of the two is allowed.

## Query parameters

- `month` string, date-time
- `day` string, date-time
- `names` string[]
- `limit` integer
- `next_record_id` string

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `403` — Forbidden - User is not authorized
- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v1.md) · [All operations](https://skmtc.net/datadog/apis/api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v1/versions/ca5871004d26/schema)
