Tom Reppelin by Tom Reppelin

The Morpho API: Skip Indexing, Start Building

Building robust DeFi applications requires precise, indexed real-time data. Traditionally, this meant building and maintaining your own subgraphs, managing indexers, and re-implementing protocol logic just to answer basic questions.

The Morpho API changes this. It transforms days of infrastructure work into a single, read-only integration that can be completed in minutes.

The Morpho API provides a powerful, GraphQL-based interface to access a comprehensive range of onchain and offchain data from the Morpho ecosystem in real time. Any developer can now fetch enterprise-grade data on Morpho via the Morpho API.

Reliable, Indexed Protocol Data

The Morpho API is designed for integrators who need safety and speed.

It doesn’t send transactions; it powers your application with the same data used by app.morpho.org.

Comprehensive ecosystem data:

  • Real-Time & Historical: Fetch current market states or traverse historical timeseries for backtesting
  • Deep Analytics: Instant access to APYs, TVL, utilization rates, and revenue metrics
  • User Context: Track positions, health factors, and vault balances for any address across chains
  • Public Allocator: Query reallocatable liquidity for advanced routing and aggregation logic

Query the ecosystem

Using the Morpho API is as simple as making a GraphQL request. You get exactly the data you ask for, formatted and ready for your UI.

Playground endpoint : https://api.morpho.org/graphql

Market Analytics in one query

Instantly discover markets, check liquidity depth, and display APYs without aggregating onchain calls.

query {
  markets(
    first: 5
    orderBy: SupplyAssetsUsd
    orderDirection: Desc
    where: { chainId_in: [1] } # Ethereum
  ) {
    items {
      # Market Parameters
      uniqueKey
      collateralAsset {
        address
      }
      loanAsset {
        address
      }
      oracle {
        address
      }
      irmAddress
      lltv
      state {
        # Real-time Rates
        supplyApy
        borrowApy
        netSupplyApy
        netBorrowApy

        # Average Rates
        avgSupplyApy
        avgBorrowApy

        # Risk Metrics
        utilization

        # Deep Liquidity Data
        supplyAssetsUsd
        borrowAssetsUsd
        liquidityAssetsUsd
      }
    }
  }
}

Vault Analytics in one query

Track the performance of Vaults, including net yields (after fees) and total assets.

query {
  vaults(
    first: 5
    orderBy: TotalAssetsUsd
    orderDirection: Desc
    where: { chainId_in: [1] } # Ethereum
  ) {
    items {
      address
      symbol
      state {
        # Performance
        apy
        netApy # After fees & rewards
        fee

        # Volume
        totalAssetsUsd
        allocation {
          supplyAssetsUsd
          market {
            uniqueKey
          }
        }
      }
    }
  }
}

Powering diverse use cases

Because the API is fully indexed and read-only, it is the engine behind diverse use cases:

  • Dashboards & Analytics: Power market explorers and leaderboards with historical accuracy.
  • Embedded Integrations: Add “Earn” or “Borrow” interfaces to your wallet or app by delegating data fetching to Morpho.
  • Risk Monitoring: Feed internal risk engines with real-time collateralization and utilization alerts.
  • Operations: Automate treasury tracking and generate monthly PnL reports without manual spreadsheets.

Get started

Skip maintaining indexers and focus on your product experience.

Questions? Visit help.morpho.org

Stay up to date with Morpho