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

Best Answer

  • 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.

    image

Answers

  • 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.

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

  • 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"}