GET /v1/earn/items/{slug}
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/lifi/v1/earn/items/{slug}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free[POLL] Also streamable as SSE (poll bridge) via GET /stream/lifi/v1/earn/items/{slug}?poll_interval_s=15 — see Streaming.
One Earn vault by page slug: analytics, deposit assets and Composer capability.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
slug | path | str | required | Vault page slug, as used in /earn/{slug} example: aave-v3-usdc-on-mainnet |
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"