Skip to main content

Morpho Blue APIs

This page describes the use of the Morpho Blue APIs: Access public data from Morpho Protocol (analytics, rates, APY, rewards) programmatically, useful for time-consuming onchain data retrieval.

2 distincts usecases:
  1. blue-api.morpho.org/graphql for customized query on the api,
  2. rewards.morpho.org for REST endpoints, tailored for rewards data.

Introduction

The Morpho Blue APIs provides easy and performant access to public data from the Morpho Protocol. It allows developers to programmatically interact with the protocol and retrieve various types of data, such as analytics, rates, APY over time, or rewards for every user. This document provides a comprehensive guide to the API and explains how to use it effectively.

Usage

To use the Morpho Blue APIs, you need to know the base URL of the APIs and the methods to query it. The base URL for the first Morpho API is https://blue-api.morpho.org/graphql,
the second one is https://rewards.morpho.org/.

Explore the API

  1. You can find a complete description of the available elements to query on the document section on
    blue-api.morpho.org/graphql. Navigate to the GraphQL documentation to identify which queries you can use for your needs, and try them directly into your browser. Note that the following section is exposing some examples of queries.
  2. A minimal documentation is written alongside all endpoints on https://rewards.morpho.org.

Questions

If you have any questions or need further assistance, please don't hesitate to reach out on Discord.

success

Reminder:
The Morpho Blue APIs are a public APIs, and there were significant efforts to make it accessible and performant for everyone. Please use the resp. API responsibly and refrain from attempting to break or hack it. Your cooperation helps enhances the quality and reliability of the service provided.

Thank you.