---
title: "Asset metrics"
method: GET
path: "/timeseries/asset-metrics"
tags: ["Timeseries"]
---

# Asset metrics

`GET /timeseries/asset-metrics`

Returns requested metrics for specified assets.<br/><br/> Results for block by block metrics (`1b` frequency) are ordered by tuple `(asset, height, block_hash)`, all other metrics are ordered by tuple `(asset, time)`. You can change the sorting using `sort` query parameter.<br/><br/> Supported output formats are `json` (default), `json_stream` and `csv`. Use the `format` query parameter to override it.<br/> To fetch the next page of results use `next_page_url` JSON response field or `x-next-page-url` CSV HTTP header if present.<br/><br/> If multiple metrics are requested in the same time the strict policy for partially available metrics among requested ones is applied: <ul>
  <li>missing metric name in the JSON response means that the metric is "not a supported metric" for the asset and frequency while some other requested metrics are supported.</li>
  <li>`null` value of the metric means "no data in the database" while some other requested metrics have data.</li>
</ul>

## Query parameters

- `assets` string[], required
- `metrics` string[], required
- `frequency` string
- `status` 'all' | 'flash' | 'reviewed' | 'revised'
- `start_time` string
- `end_time` string
- `start_height` integer
- `end_height` integer
- `start_hash` string
- `end_hash` string
- `start_inclusive` boolean
- `end_inclusive` boolean
- `min_confirmations` integer
- `timezone` string
- `page_size` integer
- `paging_from` 'start' | 'end', PagingFrom
- `sort` 'asset' | 'height' | 'time'
- `limit_per_asset` integer
- `pretty` boolean
- `format` 'json' | 'json_stream' | 'csv'
- `null_as_zero` boolean
- `next_page_token` string
- `ignore_forbidden_errors` boolean
- `ignore_unsupported_errors` boolean

## Response `200`

Time series of metrics for an asset.

- AssetMetricsResponse — Time series of asset metrics.
  - `data` object[], required
    - `asset` string, required — Name of the asset.
    - `time` string, required — The time in ISO 8601 date-time format. Always with nanoseconds precision.
  - `next_page_token` string — Token of the next page results for a given request.
  - `next_page_url` string — URL of the next page results for a given request.

## Other responses

- `400` — Asset not found.
- `401` — Requested resource requires authorization.
- `403` — Requested resource is not available with supplied credentials.
- `414` — Provided URI is too long. It must not be greater than 10000 symbols.

---

[API](https://skmtc.net/coinmetrics/apis/coin-metrics-api-v4.md) · [All operations](https://skmtc.net/coinmetrics/apis/coin-metrics-api-v4/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coinmetrics/coin-metrics-api-v4/revisions/774268c0a4fe/schema)
