Insights API endpoints
General endpoints
Access data across all vaults to perform broad market analyses or enhance application features. Fetch lists of vaults, tokens, tags, and networks to quickly integrate a wide range of DeFi assets into your service.
Obtain real-time and historical data on vaults, including detailed TVL and APY metrics.
List Vaults (
GET /v1/vaults
): Fetches a list of vaults filtered by tags, tokens, network, and TVL parameters.Retrieve Tags (
GET /v1/tags
): Obtains a list of all tags present in the database, aiding in the categorization and search of vaults.Retrieve Tokens (
GET /v1/tokens
): Retrieves a comprehensive list of tokens, including details like name, symbol, and network, available in the database.Retrieve Networks (
GET /v1/networks
): Gathers a list of all blockchain networks represented in the database, complete with their names and chain IDs.Detailed Vaults Data (
GET /v1/detailed/vaults
): Provides an in-depth look at vaults with detailed information, including financial statistics and operational details, with robust filtering and pagination capabilities.Benchmarks (
GET /v1/benchmarks)
: Provides benchmark data related to the vaults.fyi USD benchmark rate and vaults.fyi ETH benchmark rate.
Vaults endpoints
These endpoints are essential for detailed insights into the performance and statistics of a single vault. Each endpoint within the Vault Endpoints section provides access to in-depth vault-specific data. The endpoints provide granular control over the data retrieved, ensuring that the information can be as broad or as detailed as required for the user's purpose.
Vault Information (
GET /v1/vaults/{network}/{vaultAddress}
): Provides comprehensive details about a specific vault, including its address, network, TVL, and other operational data.Vault APY (
GET /v1/vaults/{network}/{vaultAddress}/apy
): Retrieves the current APY data for a vault over various intervals, such as 1 day, 7 days, or 30 days.Vault Historical TVL (
GET /v1/vaults/{network}/{vaultAddress}/historical-tvl/{timestamp}
): Offers historical TVL information for a vault based on the closest block time to a given timestamp.Vault Historical APY (
GET /v1/vaults/{network}/{vaultAddress}/historical-apy/{timestamp}
): Fetches APY data from the past for a specific vault, corresponding to the closest timestamp available.
Vaults PRO endpoints
The following endpoints provide rich historical data and are available to premium subscribers. Get comprehensive historical datasets in a single call.
Vault Range Historical APY (
GET /v1/vaults/{network}/{vaultAddress}/historical-apy
): Provides a range of historical APY data points for a vault, between specified start and end timestamps, with configurable granularity.Vault Range Historical DATA (
GET /v1/vaults/{network}/{vaultAddress}/historical-data
): Provides detailed TVL and APY data for a vault, between specified start and end timestamps, with configurable granularity.
Endpoints
General
Get list of tags present in vaults.fyi database
Array of tags
GET //v1/tags HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
Array of tags
[
"text"
]
Get list of tokens present in vaults.fyi database
GET //v1/tokens HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
Array of tokens
[
{
"assetAddress": "text",
"assetCaip": "text",
"decimals": 1,
"name": "text",
"network": {
"name": "mainnet",
"chainId": 1
},
"symbol": "text"
}
]
Get list of networks present in vaults.fyi database
GET //v1/networks HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
Array of networks
[
{
"name": "text",
"chainId": 1
}
]
Get a detailed list of vaults filtered by given parameters
Page number
0
Number of items per page
10
List of tags to filter by all of the tags must be present on the vault to be included in the results
Name or symbol of the token to filter by
Network name or caip to filter by
Minimum TVL in USD to filter by
Maximum TVL in USD to filter by
Return only vaults that support transactional endpoints
Return only vaults that support transactional endpoints and are featured in app.vaults.fyi
GET //v1/detailed/vaults HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
Default Response
{
"next_page": 1,
"data": [
{
"name": "text",
"address": "text",
"network": "mainnet",
"protocol": "text",
"tvlDetails": {
"tvlNative": "text",
"tvlUsd": "text",
"lockedNative": "text",
"lockedUsd": "text",
"liquidNative": "text",
"liquidUsd": "text"
},
"numberOfHolders": 1,
"lendLink": "text",
"tags": [
"text"
],
"token": {
"name": "text",
"assetAddress": "text",
"assetCaip": "text",
"symbol": "text",
"decimals": 1
},
"apy": {
"base": {
"1day": 1,
"7day": 1,
"30day": 1
},
"rewards": {
"1day": 1,
"7day": 1,
"30day": 1
},
"total": {
"1day": 1,
"7day": 1,
"30day": 1
}
},
"description": "text",
"additionalIncentives": "text",
"rewards": [
{
"apy": {
"1day": 1,
"7day": 1,
"30day": 1
},
"assetPriceInUsd": 1,
"asset": {
"name": "text",
"assetAddress": "text",
"assetCaip": "text",
"symbol": "text",
"decimals": 1
}
}
],
"isTransactional": true,
"score": {
"vaultScore": 1,
"vaultTvlScore": 1,
"protocolTvlScore": 1,
"holderScore": 1,
"networkScore": 1,
"assetScore": 1
},
"children": [
"text"
]
}
]
}
Get the best vault for the user
User wallet address
^0x[a-fA-F0-9]{40}$
Network name or caip
GET //v1/top-vault/{network}/{userAddress} HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
Default Response
{
"userAddress": "text",
"bestVault": {
"name": "text",
"protocol": {
"name": "text",
"product": "text",
"version": "text"
},
"vaultAddress": "text",
"networkName": "mainnet",
"tvlInUsd": 1,
"apy": 1,
"projectedEarnings": 1,
"asset": {
"assetAddress": "text",
"decimals": 1,
"name": "text",
"symbol": "text"
}
},
"bestEthVault": {
"name": "text",
"protocol": {
"name": "text",
"product": "text",
"version": "text"
},
"vaultAddress": "text",
"networkName": "mainnet",
"tvlInUsd": 1,
"apy": 1,
"projectedEarnings": 1
}
}
Get vaults.fyi benchmark rates
GET //v1/benchmarks HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
Default Response
{
"usd": {
"name": "text",
"apy": {
"1day": 1,
"7day": 1,
"30day": 1
},
"vaults": [
{
"name": "text",
"network": "mainnet",
"address": "text"
}
]
},
"eth": {
"name": "text",
"apy": {
"1day": 1,
"7day": 1,
"30day": 1
},
"vaults": [
{
"name": "text",
"network": "mainnet",
"address": "text"
}
]
}
}
Get a vault information given a specific address and network
Address of a vault
^0x[a-fA-F0-9]{40}$
Network name or caip
GET //v1/vaults/{network}/{vaultAddress}/ HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
Object describing the vault
{
"name": "text",
"address": "text",
"network": "mainnet",
"protocol": "text",
"tvlDetails": {
"tvlNative": "text",
"tvlUsd": "text",
"lockedNative": "text",
"lockedUsd": "text",
"liquidNative": "text",
"liquidUsd": "text"
},
"numberOfHolders": 1,
"lendLink": "text",
"tags": [
"text"
],
"token": {
"name": "text",
"assetAddress": "text",
"assetCaip": "text",
"symbol": "text",
"decimals": 1
},
"apy": {
"base": {
"1day": 1,
"7day": 1,
"30day": 1
},
"rewards": {
"1day": 1,
"7day": 1,
"30day": 1
},
"total": {
"1day": 1,
"7day": 1,
"30day": 1
}
},
"description": "text",
"additionalIncentives": "text",
"rewards": [
{
"apy": {
"1day": 1,
"7day": 1,
"30day": 1
},
"assetPriceInUsd": 1,
"asset": {
"name": "text",
"assetAddress": "text",
"assetCaip": "text",
"symbol": "text",
"decimals": 1
}
}
],
"isTransactional": true,
"score": {
"vaultScore": 1,
"vaultTvlScore": 1,
"protocolTvlScore": 1,
"holderScore": 1,
"networkScore": 1,
"assetScore": 1
},
"children": [
"text"
],
"assetPriceInUsd": 1,
"topHolders": [
{
"address": "text",
"balance": "text"
}
],
"holdersTotalBalance": "text"
}
Get APY data for a vault for given interval
Address of a vault
^0x[a-fA-F0-9]{40}$
Network name or caip
Resolution of the APY data
GET //v1/vaults/{network}/{vaultAddress}/apy HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
Object describing the APY of the vault in current time
{
"base": 1,
"rewards": 1,
"total": 1
}
Get historical TVL data for a vault for block with closest timestamp to the given one
Address of a vault
^0x[a-fA-F0-9]{40}$
Network name or caip
Timestamp of the historical data
GET //v1/vaults/{network}/{vaultAddress}/historical-tvl/{timestamp} HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
Object describing the TVL of the vault in given time
{
"timestamp": 1,
"blockNumber": 1,
"tvlDetails": {
"tvlNative": "text",
"tvlUsd": "text",
"lockedNative": "text",
"lockedUsd": "text",
"liquidNative": "text",
"liquidUsd": "text"
}
}
Get historical APY data for a vault for block with closest timestamp to the given one
Address of a vault
^0x[a-fA-F0-9]{40}$
Network name or caip
Timestamp of the historical data
Resolution of the APY data
GET //v1/vaults/{network}/{vaultAddress}/historical-apy/{timestamp} HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
Object describing the APY of the vault in given time
{
"timestamp": 1,
"blockNumber": 1,
"apy": {
"base": 1,
"rewards": 1,
"total": 1
}
}
Get historical APY data for a vault for blocks in given timestamp range
Address of a vault
^0x[a-fA-F0-9]{40}$
Network name or caip
Resolution of the APY data
Timestamp of the beginning of the range
Timestamp of the end of the range
Page number
0
Number of items per page
10
Time difference between returned data points
GET //v1/vaults/{network}/{vaultAddress}/historical-apy HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
Default Response
{
"next_page": 1,
"data": [
{
"timestamp": 1,
"blockNumber": 1,
"apy": {
"base": 1,
"rewards": 1,
"total": 1
}
}
]
}
Get historical APY data for a vault for blocks in given timestamp range
Address of a vault
^0x[a-fA-F0-9]{40}$
Network name or caip
Page number
0
Number of items per page
10
Resolution of the APY data
7day
Possible values: Timestamp of the beginning of the range in epoch seconds
1749908619
Timestamp of the end of the range in epoch seconds
1752500619
Time difference between returned data points
86400
GET //v1/vaults/{network}/{vaultAddress}/historical-data HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
Default Response
{
"next_page": 1,
"data": [
{
"timestamp": 1,
"blockNumber": 1,
"apy": {
"base": 1,
"rewards": 1,
"total": 1
},
"tvlDetails": {
"tvlNative": "text",
"tvlUsd": "text",
"lockedNative": "text",
"lockedUsd": "text",
"liquidNative": "text",
"liquidUsd": "text"
}
}
]
}
Get a list of holder events on a vault, supported networks: arbitrum, base, mainnet, optimism, polygon, gnosis, celo, swellchain, unichain
Address of a vault
^0x[a-fA-F0-9]{40}$
Network name or caip
Address of a holder
^0x[a-fA-F0-9]{40}$
GET //v1/vaults/{network}/{vaultAddress}/holder-events/{holder} HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
Default Response
{
"events": [
{
"activity": "Transfer",
"timestamp": 1,
"amount": {
"usd": 1,
"native": "text"
},
"positionValue": {
"usd": 1,
"native": "text"
}
}
]
}
Get a holder total returns on a vault, supported networks: arbitrum, base, mainnet, optimism, polygon, gnosis, celo, swellchain, unichain
Address of a vault
^0x[a-fA-F0-9]{40}$
Network name or caip
Address of a holder
^0x[a-fA-F0-9]{40}$
GET //v1/vaults/{network}/{vaultAddress}/holder-total-returns/{holder} HTTP/1.1
Host: api.vaults.fyi
x-api-key: YOUR_API_KEY
Accept: */*
Default Response
{
"usd": 1,
"native": 1
}
Last updated