7.19. JSON Coinbase

>>> import requests
>>>
>>>
>>> DATA = 'https://api.coinbase.com/v2/prices/spot?currency=USD'
>>>
>>> resp = requests.get(DATA)
>>> data = resp.json()['data']
>>>
>>> data  
{'base': 'BTC', 'currency': 'USD', 'amount': '36520.77'}