---
updatedAt: 2025-09-10T21:13:00.000Z
agentTools:
  projectIndex: https://docs.cloudzero.com/llms.txt
---

# Get metrics records

Get most recently submitted telemetry records for a given stream.

**Note**: Recently submitted records can take several minutes to be available through this endpoint.


# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "description": "Telemetry API",
    "version": "1.3.0",
    "title": "V1 API"
  },
  "servers": [
    {
      "url": "https://api.cloudzero.com/"
    }
  ],
  "paths": {
    "/unit-cost/v1/telemetry/metric/{metric_name}": {
      "get": {
        "tags": [
          "telemetry"
        ],
        "summary": "Get metrics records",
        "description": "Get the most recently submitted telemetry records for a given stream.\n\n**Note**: Recently submitted records can take several minutes to be available through this endpoint.\n",
        "operationId": "getMetricTelemetry",
        "parameters": [
          {
            "name": "metric_name",
            "in": "path",
            "description": "A unique name to identify this unit metric.",
            "required": true,
            "schema": {
              "pattern": "^[\\w.-]{1,256}$",
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The number of items to return.",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 1000
            }
          },
          {
            "$ref": "#/components/parameters/authorization_header"
          }
        ],
        "responses": {
          "200": {
            "description": "Telemetry records"
          },
          "403": {
            "description": "Not authorized. Make sure you're using a valid API key in the header `Authorization`."
          },
          "429": {
            "description": "Rate limit exceeded. The API enforces rate limiting on incoming requests. Retry after a short delay."
          },
          "503": {
            "description": "Service temporarily unavailable due to downstream capacity constraints. Retry after a short delay with exponential backoff."
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "authorization_header": {
        "in": "header",
        "name": "Authorization",
        "description": "Your CloudZero [API Key](https://app.cloudzero.com/settings/api-keys). **Note:** This is not a bearer token and should appear in the header as `Authorization`: `<cloudzero-api-key>`",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```