For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 2 2

News via python (error message)

Dear Experts,

My purpose is to download news about a bunch of company's tickers via python (or R).

I've never used python (in eikon) before. So, I'm a novice.

I've generated the app key that I can read in my screen.


However, using python (or R) I received this error (I replaced the key with some XXX):

[MainThread 140139205887808] Error code 403 | Client Error: {"ErrorCode":1401,"ErrorMessage":"Application id cc81d890XXXXXX is invalid"}


I contacted the eikon support. They told me to post the error message here.

Could you please help me? I really appreciate.

Thanks in advance. Best

eikoneikon-data-apipythonworkspaceworkspace-data-apirefinitiv-dataplatform-eikonerror
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
18.1k 21 12 20

Hi @barbara.petracci

Could you let me know what is the app name you registered?

I can find 1 app key from your organization. (I will add a private comment for the app key detail)

I tested it and it works fine.


ahs.png (60.5 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
14.3k 23 8 12

Hello @barbara.petracci

Have you tried the steps in Eikon Data API(Python) Troubleshooting article yet?

What is the Python version (check by "python --version" command) and Eikon Data API version (please see the steps in the above article)?.

Could you please share the snippet code (please censor your App Key0.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 2 2

really thanks! a very long way... I'll get in contact with you soon.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 2 2

Dear Wasin,

====

python version -> Python 3.8.5 (default, Jul 28 2020, 12:59:40)

eikon python version -> 1.1.8

thomson reuters eikon desktop version -> Desktop 4.0.52 (4.0.52055)

====

PYTHON code


import eikon as ek
ek.set_app_key('xxxxxx')
ek.get_news_headlines('R:LHAG.DE', date_from='2019-03-06T09:00:00', date_to='2019-03-06T18:00:00')

=> ERROR:
2020-12-31 12:54:55,029 P[917] [MainThread 139842538506048] Error code 403 | Client Error: {"ErrorCode":1401,"ErrorMessage":"Application id xxxxx is invalid"}

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.