> ## Documentation Index
> Fetch the complete documentation index at: https://docs.messari.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Lending Timeseries Metric

> Returns a timeseries metric for a specific Lending Protocol. Protocol data represents an aggregation of all deployments across all chains.



## OpenAPI

````yaml GET /metrics/v2/protocols/{protocolIdentifier}/metrics/lending/time-series/{granularity}
openapi: 3.0.0
info:
  description: OpenAPI specification for the entire Messari API
  title: Messari API - Metrics V2
  version: 1.0.0
servers:
  - description: Messari API
    url: https://api.messari.io
security: []
paths:
  /metrics/v2/protocols/{protocolIdentifier}/metrics/lending/time-series/{granularity}:
    get:
      tags:
        - metrics/protocols/lending
      summary: Get lending timeseries metric
      description: >-
        Returns a timeseries metric for a specific Lending Protocol. Protocol
        data represents an aggregation of all deployments across all chains.
      operationId: getLendingTimeseriesV2
      parameters:
        - description: Protocol identifier (ID or slug)
          in: path
          name: protocolIdentifier
          required: true
          schema:
            type: string
            example: aave
            default: aave
        - description: Granularity
          in: path
          name: granularity
          required: true
          schema:
            enum:
              - 1d
            type: string
            example: 1d
            default: 1d
        - description: Time range start
          in: query
          name: start
          schema:
            type: string
            example: '2025-06-01T00:00:00Z'
            default: '2025-06-01T00:00:00Z'
        - description: Time range end
          in: query
          name: end
          schema:
            type: string
            example: '2025-06-07T00:00:00Z'
            default: '2025-06-07T00:00:00Z'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/TimeseriesData'
                  error:
                    type: string
                  metadata:
                    $ref: '#/components/schemas/metricsTimeseriesMetadata'
                required:
                  - data
                type: object
              example:
                error: null
                data:
                  points:
                    - - 1748736000
                      - 40826647064.15183
                      - 8659
                      - 1795405.4616030846
                      - 1532364.8272672133
                    - - 1748822400
                      - 41448076919.110435
                      - 8616
                      - 1493727.209050874
                      - 1265263.6361791617
                    - - 1748908800
                      - 41541571147.85359
                      - 9621
                      - 1512826.0373090645
                      - 1285972.0294132316
                    - - 1748995200
                      - 41869739639.04037
                      - 9849
                      - 1517935.5337322194
                      - 1294299.7982766132
                    - - 1749081600
                      - 39659601254.45914
                      - 12040
                      - 2474388.775981177
                      - 2152103.567043467
                metadata:
                  pointSchemas:
                    - name: Timestamp
                      slug: time
                      description: Timestamp of the data point.
                      is_timestamp: true
                    - name: TVL 24 Hour USD
                      slug: tvl24HourUsd
                      description: Total Value Locked in USD.
                      is_timestamp: false
                    - name: Active Addresses 24 Hour
                      slug: activeAddresses24Hour
                      description: >-
                        Number of unique addresses interacting with the
                        protocol.
                      is_timestamp: false
                    - name: Fees 24 Hour USD
                      slug: fees24HourUsd
                      description: Total fees generated by the protocol in USD.
                      is_timestamp: false
                    - name: Fees Supply Side 24 Hour USD
                      slug: feesSupplySide24HourUsd
                      description: Fees paid to liquidity providers in USD.
                      is_timestamp: false
                  granularity: 1d
          description: Default response
        '400':
          content:
            application/json:
              schema:
                properties:
                  data: {}
                  error:
                    type: string
                required:
                  - data
                type: object
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                properties:
                  data: {}
                  error:
                    type: string
                required:
                  - data
                type: object
          description: Unauthorized
        '500':
          content:
            application/json:
              schema:
                properties:
                  data: {}
                  error:
                    type: string
                required:
                  - data
                type: object
          description: Internal Server Error
      security:
        - apiKey: []
components:
  schemas:
    TimeseriesData:
      properties:
        points:
          items:
            items: {}
            type: array
          type: array
      required:
        - points
      type: object
    metricsTimeseriesMetadata:
      properties:
        granularity:
          enum:
            - 1m
            - 5m
            - 15m
            - 30m
            - 1h
            - 6h
            - 1d
            - 1w
            - 30d
            - 1q
            - 1y
          type: string
        pointSchemas:
          items:
            $ref: '#/components/schemas/metricsPointSchema'
          type: array
      required:
        - granularity
        - pointSchemas
      type: object
    metricsPointSchema:
      type: object
      description: Schema for metricsPointSchema
      properties: {}
      additionalProperties: true
  securitySchemes:
    apiKey:
      in: header
      name: X-Messari-API-Key
      type: apiKey

````

Built with [Mintlify](https://mintlify.com).