Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

API setting: API as the user 'PythonAPI', but the supplied API key doesn't match our records

import plotly as py‘RamdayalSingh’,api_key=‘what should be given?’)
import plotly.plotly as py

Traceback (most recent call last):

File “”, line 1, in

File “C:\Users\Ramdayal\Anaconda3\lib\site-packages\plotly\plotly\”, line 134, in iplot
url = plot(figure_or_data, **plot_options)

File “C:\Users\Ramdayal\Anaconda3\lib\site-packages\plotly\plotly\”, line 227, in plot
response = v1.clientresp(data, **plot_options)

File “C:\Users\Ramdayal\Anaconda3\lib\site-packages\plotly\api\v1\”, line 35, in clientresp
response = request(‘post’, url, data=payload)

File “C:\Users\Ramdayal\Anaconda3\lib\site-packages\plotly\api\v1\”, line 86, in request

File “C:\Users\Ramdayal\Anaconda3\lib\site-packages\plotly\api\v1\”, line 38, in validate_response
raise exceptions.PlotlyRequestError(message, status_code, content)

PlotlyRequestError: Aw, snap! You tried to use our API as the user ‘PythonAPI’, but the supplied API key doesn’t match our records. You can view your API key at

You’re most likely getting this message because your local credentials file isn’t synced with the Plotly server you’re communicating with.

Go to (e.g., for more information.

Make sure that you’re logged in as PythonAPI.

Need help? Please try searching Plotly’s Stack Overflow channel.

How can I solve this error?

You can log into Plotly and find your API key here:
You must select the Regenerate Key button to display the key in the box.