Get lending instances timeseries
curl --request GET \
--url https://api.messari.io/metrics/v2/protocols/{protocolIdentifier}/metrics/lending-instances/time-series/{granularity} \
--header 'X-Messari-API-Key: <api-key>'import requests
url = "https://api.messari.io/metrics/v2/protocols/{protocolIdentifier}/metrics/lending-instances/time-series/{granularity}"
headers = {"X-Messari-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Messari-API-Key': '<api-key>'}};
fetch('https://api.messari.io/metrics/v2/protocols/{protocolIdentifier}/metrics/lending-instances/time-series/{granularity}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.messari.io/metrics/v2/protocols/{protocolIdentifier}/metrics/lending-instances/time-series/{granularity}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Messari-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.messari.io/metrics/v2/protocols/{protocolIdentifier}/metrics/lending-instances/time-series/{granularity}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Messari-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.messari.io/metrics/v2/protocols/{protocolIdentifier}/metrics/lending-instances/time-series/{granularity}")
.header("X-Messari-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.messari.io/metrics/v2/protocols/{protocolIdentifier}/metrics/lending-instances/time-series/{granularity}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Messari-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"error": null,
"data": {
"series": [
{
"id": "aave_aave-v2_avalanche_c",
"productSlug": "aave-v2",
"chain": "avalanche_c",
"points": [
[
1748736000,
23510950.643165242,
2376072.6093996367,
21134878.033765607,
301.01694037900495,
240.81355230320406,
null,
null,
null,
301.01694037900495,
240.81355230320406
],
[
1748822400,
23523794.091174293,
2376248.4934064513,
21147545.59776784,
319.8424524524242,
255.87396196193936,
null,
null,
null,
319.8424524524242,
255.87396196193936
],
[
1748908800,
23788075.803780608,
2383901.4966985104,
21404174.307082098,
310.49614690200985,
248.39691752160786,
null,
null,
null,
310.49614690200985,
248.39691752160786
],
[
1748995200,
23724622.839787386,
2380605.459132212,
21344017.380655173,
356.1887488826583,
292.2990269312045,
null,
null,
null,
356.1887488826583,
292.2990269312045
],
[
1749081600,
23382182.466817264,
2368096.8816541755,
21014085.585163087,
318.96365988463714,
255.1709279077097,
1.7447996631129166,
null,
null,
320.70845954775007,
256.91572757082264
]
]
},
{
"id": "aave_aave-v2_ethereum",
"productSlug": "aave-v2",
"chain": "ethereum",
"points": [
[
1748736000,
9551.686342817173,
51.80130061469237,
9499.88504220248,
null,
null,
null,
null,
null,
null,
null
],
[
1748822400,
9606.47023431713,
52.09840802908795,
9554.371826288043,
null,
null,
null,
null,
null,
null,
null
],
[
1748908800,
9994.038037074974,
54.20028988938714,
9939.837747185586,
null,
null,
null,
null,
null,
null,
null
],
[
1748995200,
9947.98670475451,
53.95054143412789,
9894.036163320383,
null,
null,
null,
null,
null,
null,
null
],
[
1749081600,
9539.681600128959,
51.73619574603619,
9487.945404382923,
null,
null,
null,
null,
null,
null,
null
]
]
},
{
"id": "aave_aave-v2_polygon",
"productSlug": "aave-v2",
"chain": "polygon",
"points": [
[
1748736000,
38569752.827218965,
3794864.69262788,
34774888.13459109,
739.7777373570226,
739.7037595832874,
null,
null,
null,
739.7777373570226,
739.7037595832874
],
[
1748822400,
38621212.893048756,
3796818.0100005027,
34824394.88304825,
737.0167610107412,
736.9430593346403,
null,
null,
null,
737.0167610107412,
736.9430593346403
],
[
1748908800,
39331042.423220664,
3827882.368949122,
35503160.05427154,
734.2401606879171,
734.1667366718483,
0.21408820030553471,
null,
null,
734.4542488882227,
734.3808248721539
],
[
1748995200,
39305813.58849489,
3828104.5682649044,
35477709.02022999,
736.7596252460398,
736.685949283516,
0.18822759430621044,
null,
null,
736.9478528403461,
736.8741768778222
],
[
1749081600,
38770014.970714115,
3801301.6189646525,
34968713.351749465,
743.9805846096467,
743.9061865511845,
null,
null,
null,
743.9805846096467,
743.9061865511845
]
]
},
{
"id": "aave_aave-v3_arbitrum",
"productSlug": "aave-v3",
"chain": "arbitrum",
"points": [
[
1748736000,
1392810041.7209344,
540777750.2162962,
852032291.5046382,
50865.11657335174,
6288.096754812424,
0.5210811234784968,
0,
null,
50865.63765447522,
6288.617835935902
],
[
1748822400,
1379438050.846866,
534573903.878233,
844864146.9686329,
50566.44057323932,
6241.969863846052,
0.6309275901232236,
0.6077457931198094,
null,
50567.67924662256,
6243.208537229295
],
[
1748908800,
1417208445.081294,
545077998.9018447,
872130446.1794493,
49988.74034171699,
6207.327096757944,
0.5865558441849725,
0,
null,
49989.32689756117,
6207.913652602128
],
[
1748995200,
1408689076.4192958,
542510458.7211453,
866178617.6981505,
50313.73129830093,
6261.333838007798,
0.36022933291254006,
3.697900313428462,
null,
50317.78942794727,
6265.391967654139
],
[
1749081600,
1378255015.0168488,
529904072.81535995,
848350942.2014889,
49828.59870878518,
6180.594927249853,
0.839282800545761,
1267.9700421617038,
null,
51097.408033747444,
7449.404252212103
]
]
},
{
"id": "aave_aave-v3_avalanche_c",
"productSlug": "aave-v3",
"chain": "avalanche_c",
"points": [
[
1748736000,
1057401488.071581,
356742939.47328234,
700658548.5982987,
37426.31143302348,
5082.797263440349,
0.3942830874612327,
0.5083066531066874,
null,
37427.21402276405,
5083.699853180916
],
[
1748822400,
1066133677.693049,
363787851.34041595,
702345826.352633,
42660.61682321578,
5854.279755109773,
0.5118179279661097,
0.3314130641497396,
null,
42661.46005420789,
5855.122986101888
],
[
1748908800,
1081216165.9432366,
369133810.77200663,
712082355.17123,
46630.357404025606,
6511.654116727927,
0.4650503092123496,
0,
null,
46630.82245433482,
6512.11916703714
],
[
1748995200,
1079830349.4492311,
369258960.8018748,
710571388.6473563,
46477.85911948461,
6492.938819797229,
0.1236919134837602,
0,
null,
46477.98281139809,
6493.062511710714
],
[
1749081600,
1060196353.3508334,
362117295.1509563,
698079058.1998771,
51156.28663196303,
7154.086474138776,
0.5928843028712506,
1551.5953951695583,
null,
52708.47491143545,
8706.274753611206
]
]
}
]
},
"metadata": {
"pointSchemas": [
{
"name": "Timestamp",
"slug": "time",
"description": "Timestamp of the data point.",
"is_timestamp": true
},
{
"name": "Deposits (USD)",
"slug": "depositsUsd",
"description": "Total deposits (supply and collateral) in USD across the product's markets. Sourced from Blockworks Research.",
"is_timestamp": false
},
{
"name": "Borrowed (USD)",
"slug": "borrowedUsd",
"description": "Total outstanding borrows in USD across the product's markets. Sourced from Blockworks Research.",
"is_timestamp": false
},
{
"name": "TVL (USD)",
"slug": "tvl24HourUsd",
"description": "TVL in USD, deposits minus borrows. Sourced from Blockworks Research.",
"is_timestamp": false
},
{
"name": "Interest (USD)",
"slug": "interest24HourUsd",
"description": "Daily interest paid by borrowers in USD. Sourced from Blockworks Research.",
"is_timestamp": false
},
{
"name": "Net Interest Income (USD)",
"slug": "netInterestIncome24HourUsd",
"description": "Daily net interest income in USD, the interest kept by the protocol. Sourced from Blockworks Research.",
"is_timestamp": false
},
{
"name": "Flash Loan Fees (USD)",
"slug": "flashLoanFees24HourUsd",
"description": "Daily flash loan fees in USD. Sourced from Blockworks Research.",
"is_timestamp": false
},
{
"name": "Liquidation Fees (USD)",
"slug": "liquidationFees24HourUsd",
"description": "Daily liquidation fees in USD. Sourced from Blockworks Research.",
"is_timestamp": false
},
{
"name": "Royalties (USD)",
"slug": "royalties24HourUsd",
"description": "Daily royalty fees in USD. Sourced from Blockworks Research.",
"is_timestamp": false
},
{
"name": "Fees (USD)",
"slug": "fees24HourUsd",
"description": "Daily total fees in USD, interest plus flash loan, liquidation and royalty fees. Sourced from Blockworks Research.",
"is_timestamp": false
},
{
"name": "Revenue (USD)",
"slug": "revenueUsd",
"description": "Daily revenue in USD, net interest income plus flash loan, liquidation and royalty fees. Sourced from Blockworks Research.",
"is_timestamp": false
}
],
"granularity": "1d",
"seriesCount": 20
}
}{
"data": "<unknown>",
"error": "<string>"
}{
"data": "<unknown>",
"error": "<string>"
}{
"data": "<unknown>",
"error": "<string>"
}{
"data": "<unknown>",
"error": "<string>"
}Lending
Get Lending Instances Timeseries
Returns one timeseries per instance of a lending protocol, where an instance is a product on a chain (for example aave-v3 on ethereum). Each series carries its own productSlug and chain, so you do not have to parse the composite series id. A protocol that Blockworks Research does not map returns 200 with an empty series list; an unknown identifier returns 404. The response caps at 100 series, above which a 400 names the filters that narrow it.
GET
/
metrics
/
v2
/
protocols
/
{protocolIdentifier}
/
metrics
/
lending-instances
/
time-series
/
{granularity}
Get lending instances timeseries
curl --request GET \
--url https://api.messari.io/metrics/v2/protocols/{protocolIdentifier}/metrics/lending-instances/time-series/{granularity} \
--header 'X-Messari-API-Key: <api-key>'import requests
url = "https://api.messari.io/metrics/v2/protocols/{protocolIdentifier}/metrics/lending-instances/time-series/{granularity}"
headers = {"X-Messari-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Messari-API-Key': '<api-key>'}};
fetch('https://api.messari.io/metrics/v2/protocols/{protocolIdentifier}/metrics/lending-instances/time-series/{granularity}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.messari.io/metrics/v2/protocols/{protocolIdentifier}/metrics/lending-instances/time-series/{granularity}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Messari-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.messari.io/metrics/v2/protocols/{protocolIdentifier}/metrics/lending-instances/time-series/{granularity}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Messari-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.messari.io/metrics/v2/protocols/{protocolIdentifier}/metrics/lending-instances/time-series/{granularity}")
.header("X-Messari-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.messari.io/metrics/v2/protocols/{protocolIdentifier}/metrics/lending-instances/time-series/{granularity}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Messari-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"error": null,
"data": {
"series": [
{
"id": "aave_aave-v2_avalanche_c",
"productSlug": "aave-v2",
"chain": "avalanche_c",
"points": [
[
1748736000,
23510950.643165242,
2376072.6093996367,
21134878.033765607,
301.01694037900495,
240.81355230320406,
null,
null,
null,
301.01694037900495,
240.81355230320406
],
[
1748822400,
23523794.091174293,
2376248.4934064513,
21147545.59776784,
319.8424524524242,
255.87396196193936,
null,
null,
null,
319.8424524524242,
255.87396196193936
],
[
1748908800,
23788075.803780608,
2383901.4966985104,
21404174.307082098,
310.49614690200985,
248.39691752160786,
null,
null,
null,
310.49614690200985,
248.39691752160786
],
[
1748995200,
23724622.839787386,
2380605.459132212,
21344017.380655173,
356.1887488826583,
292.2990269312045,
null,
null,
null,
356.1887488826583,
292.2990269312045
],
[
1749081600,
23382182.466817264,
2368096.8816541755,
21014085.585163087,
318.96365988463714,
255.1709279077097,
1.7447996631129166,
null,
null,
320.70845954775007,
256.91572757082264
]
]
},
{
"id": "aave_aave-v2_ethereum",
"productSlug": "aave-v2",
"chain": "ethereum",
"points": [
[
1748736000,
9551.686342817173,
51.80130061469237,
9499.88504220248,
null,
null,
null,
null,
null,
null,
null
],
[
1748822400,
9606.47023431713,
52.09840802908795,
9554.371826288043,
null,
null,
null,
null,
null,
null,
null
],
[
1748908800,
9994.038037074974,
54.20028988938714,
9939.837747185586,
null,
null,
null,
null,
null,
null,
null
],
[
1748995200,
9947.98670475451,
53.95054143412789,
9894.036163320383,
null,
null,
null,
null,
null,
null,
null
],
[
1749081600,
9539.681600128959,
51.73619574603619,
9487.945404382923,
null,
null,
null,
null,
null,
null,
null
]
]
},
{
"id": "aave_aave-v2_polygon",
"productSlug": "aave-v2",
"chain": "polygon",
"points": [
[
1748736000,
38569752.827218965,
3794864.69262788,
34774888.13459109,
739.7777373570226,
739.7037595832874,
null,
null,
null,
739.7777373570226,
739.7037595832874
],
[
1748822400,
38621212.893048756,
3796818.0100005027,
34824394.88304825,
737.0167610107412,
736.9430593346403,
null,
null,
null,
737.0167610107412,
736.9430593346403
],
[
1748908800,
39331042.423220664,
3827882.368949122,
35503160.05427154,
734.2401606879171,
734.1667366718483,
0.21408820030553471,
null,
null,
734.4542488882227,
734.3808248721539
],
[
1748995200,
39305813.58849489,
3828104.5682649044,
35477709.02022999,
736.7596252460398,
736.685949283516,
0.18822759430621044,
null,
null,
736.9478528403461,
736.8741768778222
],
[
1749081600,
38770014.970714115,
3801301.6189646525,
34968713.351749465,
743.9805846096467,
743.9061865511845,
null,
null,
null,
743.9805846096467,
743.9061865511845
]
]
},
{
"id": "aave_aave-v3_arbitrum",
"productSlug": "aave-v3",
"chain": "arbitrum",
"points": [
[
1748736000,
1392810041.7209344,
540777750.2162962,
852032291.5046382,
50865.11657335174,
6288.096754812424,
0.5210811234784968,
0,
null,
50865.63765447522,
6288.617835935902
],
[
1748822400,
1379438050.846866,
534573903.878233,
844864146.9686329,
50566.44057323932,
6241.969863846052,
0.6309275901232236,
0.6077457931198094,
null,
50567.67924662256,
6243.208537229295
],
[
1748908800,
1417208445.081294,
545077998.9018447,
872130446.1794493,
49988.74034171699,
6207.327096757944,
0.5865558441849725,
0,
null,
49989.32689756117,
6207.913652602128
],
[
1748995200,
1408689076.4192958,
542510458.7211453,
866178617.6981505,
50313.73129830093,
6261.333838007798,
0.36022933291254006,
3.697900313428462,
null,
50317.78942794727,
6265.391967654139
],
[
1749081600,
1378255015.0168488,
529904072.81535995,
848350942.2014889,
49828.59870878518,
6180.594927249853,
0.839282800545761,
1267.9700421617038,
null,
51097.408033747444,
7449.404252212103
]
]
},
{
"id": "aave_aave-v3_avalanche_c",
"productSlug": "aave-v3",
"chain": "avalanche_c",
"points": [
[
1748736000,
1057401488.071581,
356742939.47328234,
700658548.5982987,
37426.31143302348,
5082.797263440349,
0.3942830874612327,
0.5083066531066874,
null,
37427.21402276405,
5083.699853180916
],
[
1748822400,
1066133677.693049,
363787851.34041595,
702345826.352633,
42660.61682321578,
5854.279755109773,
0.5118179279661097,
0.3314130641497396,
null,
42661.46005420789,
5855.122986101888
],
[
1748908800,
1081216165.9432366,
369133810.77200663,
712082355.17123,
46630.357404025606,
6511.654116727927,
0.4650503092123496,
0,
null,
46630.82245433482,
6512.11916703714
],
[
1748995200,
1079830349.4492311,
369258960.8018748,
710571388.6473563,
46477.85911948461,
6492.938819797229,
0.1236919134837602,
0,
null,
46477.98281139809,
6493.062511710714
],
[
1749081600,
1060196353.3508334,
362117295.1509563,
698079058.1998771,
51156.28663196303,
7154.086474138776,
0.5928843028712506,
1551.5953951695583,
null,
52708.47491143545,
8706.274753611206
]
]
}
]
},
"metadata": {
"pointSchemas": [
{
"name": "Timestamp",
"slug": "time",
"description": "Timestamp of the data point.",
"is_timestamp": true
},
{
"name": "Deposits (USD)",
"slug": "depositsUsd",
"description": "Total deposits (supply and collateral) in USD across the product's markets. Sourced from Blockworks Research.",
"is_timestamp": false
},
{
"name": "Borrowed (USD)",
"slug": "borrowedUsd",
"description": "Total outstanding borrows in USD across the product's markets. Sourced from Blockworks Research.",
"is_timestamp": false
},
{
"name": "TVL (USD)",
"slug": "tvl24HourUsd",
"description": "TVL in USD, deposits minus borrows. Sourced from Blockworks Research.",
"is_timestamp": false
},
{
"name": "Interest (USD)",
"slug": "interest24HourUsd",
"description": "Daily interest paid by borrowers in USD. Sourced from Blockworks Research.",
"is_timestamp": false
},
{
"name": "Net Interest Income (USD)",
"slug": "netInterestIncome24HourUsd",
"description": "Daily net interest income in USD, the interest kept by the protocol. Sourced from Blockworks Research.",
"is_timestamp": false
},
{
"name": "Flash Loan Fees (USD)",
"slug": "flashLoanFees24HourUsd",
"description": "Daily flash loan fees in USD. Sourced from Blockworks Research.",
"is_timestamp": false
},
{
"name": "Liquidation Fees (USD)",
"slug": "liquidationFees24HourUsd",
"description": "Daily liquidation fees in USD. Sourced from Blockworks Research.",
"is_timestamp": false
},
{
"name": "Royalties (USD)",
"slug": "royalties24HourUsd",
"description": "Daily royalty fees in USD. Sourced from Blockworks Research.",
"is_timestamp": false
},
{
"name": "Fees (USD)",
"slug": "fees24HourUsd",
"description": "Daily total fees in USD, interest plus flash loan, liquidation and royalty fees. Sourced from Blockworks Research.",
"is_timestamp": false
},
{
"name": "Revenue (USD)",
"slug": "revenueUsd",
"description": "Daily revenue in USD, net interest income plus flash loan, liquidation and royalty fees. Sourced from Blockworks Research.",
"is_timestamp": false
}
],
"granularity": "1d",
"seriesCount": 20
}
}{
"data": "<unknown>",
"error": "<string>"
}{
"data": "<unknown>",
"error": "<string>"
}{
"data": "<unknown>",
"error": "<string>"
}{
"data": "<unknown>",
"error": "<string>"
}Authorizations
Path Parameters
Protocol identifier (ID or slug)
Example:
"aave"
Granularity
Available options:
1d Example:
"1d"
Query Parameters
Time range start
Example:
"2025-06-01T00:00:00Z"
Time range end
Example:
"2025-06-07T00:00:00Z"
⌘I

