Skip to main content
GET
/
{chain_id}
/
stats-service
/
api
/
v1
/
lines
Returns metadata (title, description, available resolutions) for all line charts, organized into sections.
curl --request GET \
  --url https://api.blockscout.com/{chain_id}/stats-service/api/v1/lines \
  --header 'Authorization: Bearer <token>'
{
  "sections": [
    {
      "charts": [
        {
          "description": "<string>",
          "id": "<string>",
          "resolutions": [
            "<string>"
          ],
          "title": "<string>",
          "units": "<string>"
        }
      ],
      "id": "<string>",
      "title": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key passed as a Bearer token in the Authorization header.

Path Parameters

chain_id
string
required

The ID of the blockchain

Response

A successful response.

sections
object[]