Skip to main content

Prerequisites

To use the Morpho Optimizers API, you need to know the base URL of the API and the available endpoints. The base URL for the Morpho Optimizers API is https://api.morpho.org/.

Below is a list of the different endpoints available:

Analytics

/analytics

Global historical data.

/analytics/market

Historical markets data. Provides analytics over time. Every query will by default return the last 30 days of data of the Morpho Protocol, including the different markets values, APY, total supply, total borrow, etc. Use it for your data visualization, to draw charts, or display some lines over time.

Metrics

/metrics

Global metrics about the different protocols.

/metrics/market

Data about the requested market.

/metrics/markets

Data about the different markets.

/metrics/{metric}

Global metric about the different protocols.

Protocols

/{protocol}/user/{address}

User balances on the protocol.

Rewards

/rewards/emissions

Emission of the current age & epoch.

/rewards/emissions/history

Rewards history by epochs.

/rewards/emissions/{epochId}

Rewards for a specific epoch.

/rewards/distributions/user/{address}

Rewards for a user.