GET /v1/earn/items/{slug}/analytics/apy

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/lifi/v1/earn/items/{slug}/analytics/apyCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Vault APY series split into base, reward and total yield.

Parameters

nameintypedescription
slugpathstrrequiredVault page slug, as used in /earn/{slug}
example: aave-v3-usdc-on-mainnet
rangequerystr
day | week | month | year
optionalTime range of the series
example: month

Response

type: object
pagination: none
sample: {
  "status": "int",
  "data": "object",
  "message": "str",
  "meta": "object"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/lifi/v1/earn/items/aave-v3-usdc-on-mainnet/analytics/apy?range=month"