You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3.12 and nasdaqdatalink 1.0.4 used in a Jupyter Notebook.
My API key works fine when I enter a URL in my web-browser like this https://data.nasdaq.com/api/v3/datatables/SHARADAR/SF1?ticker=MSFT&api_key=MY-API-KEY
But there seems to be several bugs when setting the API-key using the Python API and then calling the function export_table():
Using read_key() makes the first call to export_table() work, but following calls give this error:
AuthenticationError: (Status 400) (Nasdaq Data Link Error QEAx01) We could not recognize your API key. Please check your API key and try again.
Setting the API-key using os.environ['NASDAQ_DATA_LINK_API_KEY'] = 'MY-API-KEY' worked the other day but not anymore and I get the following error:
ForbiddenError: (Status 403) (Nasdaq Data Link Error QEPx04) A valid API key is required to retrieve data. Please check your API key and try again. You can find your API key under your account settings.
The only solution that seems to be working properly is to pass the API-key directly to the function export_table()
Please fix this problem. Thanks.
PS: It is very annoying that you have auto-response spamming the message-threads here. It makes it hard to read the actual discussions.
-- Please reply above this line --
Dear Nasdaq/data-Link-Python,
Thank you for contacting the Nasdaq Data Client Success Team.
Your email is very important to us. Urgent issues will be addressed
right away and other responses will be returned as soon as possible
during the hours of 4am to 6pm ET Monday to Friday.
To efficiently support your request, please include relevant details
such as the data product/feed you are inquiring about.
For equities trading support related inquiries please dial +1 212 231
5100 [1] or email ***@***.*** [2].
For options trading support related inquiries please dial +1 215 496
1571 [3] or email ***@***.*** [4].
Kind regards,
Nasdaq Data Client Success
[image: http://www.nasdaqtrader.com/images/trader_logo_print.png] [5]
Links:
------
[1] /tel:+12122315100
[2] ***@***.***
[3] /tel:+12154961571
[4] ***@***.***
[5] https://www.nasdaq.com/
Activity
clientsuccessnasdaq commentedon Jan 28, 2025
clientsuccessnasdaq commentedon Jan 29, 2025
ascripter commentedon Feb 15, 2026
Solved it this way: