Skip to main content
This page explains how the Earn Data API aggregates vault data across protocols, normalizes it into a consistent schema, and keeps it fresh.

Architecture Overview

The Earn Data API is a data aggregation layer that sits between protocol data and your application. It handles:
  1. Ingestion. Fetching vault data from multiple data sources across supported protocols.
  2. Normalization. Transforming protocol-specific formats into a unified NormalizedVault schema.
  3. Capability Resolution. Determining which vaults support deposits and withdrawals via Composer.
  4. Serving. Exposing the normalized data through a REST API with filtering, sorting, and pagination.

Data Freshness

The Earn Data API runs a background sync pipeline that keeps vault data current: This means APY and TVL data is at most 15 minutes stale, and transactional capability data is at most 2 minutes stale.

The NormalizedVault Schema

Every vault in the Earn API follows the same schema, regardless of which protocol or data provider it comes from. This is the core data structure:

Key Fields

Transactional Capabilities

The isTransactional and isRedeemable flags are derived from Composer’s zap-pack data, not from the vault itself. This tells you whether the LI.FI infrastructure can execute deposits and withdrawals for this vault:
  • isTransactional: true means you can use Composer’s quote endpoint with this vault’s contract address as toToken to deposit.
  • isRedeemable: true means you can use Composer with this vault’s contract address as fromToken to withdraw.
Use these flags to control your UI. For example, hide the “Deposit” button for vaults where isTransactional is false.

Supported Protocols and Chains

The Earn Data API aggregates vaults from 20+ protocols across 20 chains. Use the discovery endpoints to see what is currently indexed:
  • GET /v1/chains — returns all chains with at least one active vault
  • GET /v1/protocols — returns all protocols with at least one active vault
These endpoints reflect live data from the sync pipeline and will grow as new protocols and chains are onboarded.

Next Steps

Quickstart

Make your first Earn API calls in under 5 minutes

API Integration Guide

Full endpoint reference with all parameters and response shapes