---
title: "Index constituents"
method: GET
path: "/timeseries/index-constituents"
tags: ["Timeseries"]
---

# Index constituents

`GET /timeseries/index-constituents`

## Request

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

Returns constituents and weights for specified indexes.<br/> Results are ordered by tuple `(index, time)`.<br/> To fetch the next page of results use `next_page_url` JSON response field.

## Query parameters

- `indexes` string[], required
- `frequency` string
- `start_time` string
- `end_time` string
- `start_inclusive` boolean
- `end_inclusive` boolean
- `timezone` string
- `page_size` integer
- `paging_from` 'start' | 'end', PagingFrom
- `pretty` boolean
- `format` 'json' | 'csv'
- `next_page_token` string

## Response `200`

Time series of index constituents.

- IndexConstituentsResponse
  - `data` IndexConstituents[], required
    - `index` string, required: Name of the index.
    - `time` string, required: The time in ISO 8601 date-time format. Always with nanoseconds precision.
    - `constituents` object[], required
      - `asset` string: Unique name of the asset.
      - `weight` string: The weight of the constituent.
  - `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`: Index not found.
- `401`: Requested resource requires authorization.
- `403`: Requested resource is not available with supplied credentials.

---

[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)
