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

# Information - Lending Protocols

> This API lists the supported DeFi lending protocols and provides snapshots of aggregate metrics.



## OpenAPI

````yaml get /lending/protocols/information
openapi: 3.1.0
info:
  title: Defi API
  version: '2'
servers:
  - url: https://api.amberdata.com/defi
security:
  - sec0: []
paths:
  /lending/protocols/information:
    get:
      summary: Information - Lending Protocols
      description: >-
        This API lists the supported DeFi lending protocols and provides
        snapshots of aggregate metrics.
      operationId: defi-lending-information-protocols
      parameters:
        - name: blockchain
          in: query
          description: The blockchainId or blockchain slug to filter results by
          schema:
            type: string
            enum:
              - ethereum-mainnet
              - polygon-mainnet
              - avalanche-mainnet
              - arbitrum-mainnet
              - optimism-mainnet
        - name: protocol
          in: query
          description: The protocol to filter results by
          schema:
            type: string
            enum:
              - makerdao
              - compound
              - compoundv2
              - aave
              - aavev2
              - aavev3
        - name: endDate
          in: query
          description: >-
            **[Optional]** If provided, returns the associated state of this
            protocol up to the specified date. <BR>**[Examples]** `2023-01-01`
          schema:
            type: string
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 200
                    default: 0
                  title:
                    type: string
                    example: OK
                  description:
                    type: string
                    example: Successful request
                  payload:
                    type: array
                    items:
                      type: object
                      properties:
                        protocolId:
                          type: string
                          example: aavev2
                        protocolName:
                          type: string
                          example: aave
                        protocolVersion:
                          type: string
                          example: v2
                        blockchain:
                          type: string
                          example: ethereum-mainnet
                        numAssets:
                          type: integer
                          example: 37
                          default: 0
                        totalDepositedUSD:
                          type: number
                          example: 2450326532.6253276
                          default: 0
                        totalCollateralUSD:
                          type: number
                          example: 2411068465.347387
                          default: 0
                        totalBorrowedUSD:
                          type: number
                          example: 601548244.8033507
                          default: 0
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      x-default: API_KEY
      name: x-api-key

````