Google Sheets Integration
Importing Coin Metrics Data to Google Sheets
Where our Coin Metrics API includes a csv format option data can be directly loaded into google sheets.
To do this input you API call into the =IMPORTDATA() formula.
Below is an example Once included there is warning that requires you to allow access: steps for setting this up yourself
Open a new google sheet
Add API Parameters to cells in columns A and add results to column B
Example using time series asset-metrics endpoint
API KEY
{API_KEY}
ASSETS
btc
METRICS
PriceUSD
PAGE SIZE
1000
START TIME
2025-01-01T00:00:00Z
END TIME
2025-01-31T00:00:00Z
PAGING FROM
end
FREQUENCY
1d
Leverage this formula for creating your API Query
= "https://api.coinmetrics.io/v4/timeseries/asset-metrics?" &
"api_key="& B1 &
"&assets=" & B2 &
"&metrics=" & B3 &
"&page_size=" & B4 &
"&start_time=" & B5 &
"&end_time=" & B6 &
"&paging_from=" & B7 &
"&frequency=" & B8 &
"&format=csv"
In a new cell enter:
=IMPORTDATA({Cell with API Call})
At this point you will see a warning where you need to allow access for the API Call

Example results:

Last updated
Was this helpful?