Read only APIKEY not working

I’ve been unsuccessful in trying to export data from using the read only apikey provided. I can only export data using the read/write apikey. Is your system generating the correct read only apikey?

Python code:
import requests
import json
apikey = “my-read-only-api-key”
params = {“apikey”: apikey}
headers = {“Content-type”: “application/json”,
‘Authorization’: 'Bearer '+ apikey}
url = “Emoncms - user login”+apikey
response = requests.get(url, params=params, headers=headers)