---
title: "Returns data points for a specific line chart, with optional date range
and resolution filtering."
method: GET
path: "/{chain_id}/stats-service/api/v1/lines/{name}"
tags: ["StatsService"]
---

# Returns data points for a specific line chart, with optional date range
and resolution filtering.

`GET /{chain_id}/stats-service/api/v1/lines/{name}`

## Path parameters

- `name` string, required
- `chain_id` string, required

## Query parameters

- `from` string
- `to` string
- `resolution` 'RESOLUTION_UNSPECIFIED' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR'

## Response `200`

A successful response.

- V1LineChart — A line chart: its metadata and the series of data points.
  - `chart` V1Point[]
    - `date` string — Start date of the period this point covers.
    - `date_to` string — End date of the period (relevant for aggregated resolutions like WEEK, MONTH, YEAR; equal to `date` for DAY resolution).
    - `is_approximate` boolean — True when the value is an approximation (i.e. the period is not yet complete).
    - `value` string
  - `info` V1LineChartInfo — Metadata describing a line chart.
    - `description` string
    - `id` string
    - `resolutions` string[] — Available time resolutions for this chart (e.g. "DAY", "WEEK").
    - `title` string
    - `units` string

## Other responses

- `default` — An unexpected error response.

---

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