Architecture Overview
The Earn Data API is a data aggregation layer that sits between protocol data and your application. It handles:- Ingestion. Fetching vault data from multiple data sources across supported protocols.
- Normalization. Transforming protocol-specific formats into a unified
NormalizedVaultschema. - Capability Resolution. Determining which vaults support deposits and withdrawals via Composer.
- 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
TheisTransactional 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: truemeans you can use Composer’s quote endpoint with this vault’s contract address astoTokento deposit.isRedeemable: truemeans you can use Composer with this vault’s contract address asfromTokento withdraw.
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 vaultGET /v1/protocols— returns all protocols with at least one active vault
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

