Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CoinMetrics Metrics
import json
import requests
headers = {'Content-Type': 'application/json'}
url = "https://community-api.coinmetrics.io/v2/metrics"
m = requests.get(url, headers=headers)
metrics = json.loads(m.text)['metrics']
print("Metrics: {}".format(len(metrics)))
Metrics: 145
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment