JSONDecodeError when trying to call REST api in python

Try to fix headers and use output=json:

headers = {'content-type': 'application/json'}
data = requests.get('http://www.opensecrets.org/api/...?...output=json', headers=headers)