GET /v1/earn/items/{slug}/analytics
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/lifi/v1/earn/items/{slug}/analyticsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeHistorical APY or TVL series for one vault.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
slug | path | str | required | Vault page slug, as used in /earn/{slug} example: aave-v3-usdc-on-mainnet |
value | query | strapy | tvl | required | Metric to chart example: apy |
range | query | strday | week | month | year | optional | Time 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?value=apy&range=month"