---
title: "Snapshots of asset metric constituents"
method: GET
path: "/constituent-snapshots/asset-metrics"
tags: ["Constituent Snapshots"]
---

# Snapshots of asset metric constituents

`GET /constituent-snapshots/asset-metrics`

## Request

- Base URL: `https://api.coinmetrics.io/v4`
- URL: `https://api.coinmetrics.io/v4/constituent-snapshots/asset-metrics`
- Auth: API key in query parameter `api_key`
- TypeScript: <https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/docs/constituent-snapshots/asset-metrics/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns snapshots of asset metric constituents. \
Results are sorted by tuple (`time`, `constituent_name`), where `constituent_name` depends on a target metric. 
E.g., the `volume_trusted_spot_usd_1d` metric constituents are exchanges, 
i.e. the output will be sorted by (`time`, `exchange`).

## Query parameters

- `metric` string, required
- `at_time` string
- `start_time` string
- `end_time` string
- `next_page_token` string
- `page_size` integer
- `paging_from` 'start' | 'end', PagingFrom
- `format` 'json' | 'csv'
- `pretty` boolean

## Response `200`

Snapshots of asset metric constituents.

- ConstituentSnapshotsAssetMetricsResponse: Snapshots of asset metric constituents response.
  - `data` object[], required
    - `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`: Metric 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.dev/coinmetrics/apis/coin-metrics-api-v4.md) - [All operations](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/llms.txt) - [OpenAPI document](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/revisions/774268c0a4fe?raw)
