Eikon API python 403 connection

TOB
TOB Newcomer
edited December 2024 in Eikon Data APIs

Hi

Im trying to connect to the Eikon API and have followed the quickstart guide but i run into an Error 403 when trying to execute the following:

import eikon as ek
ek.set_app_key('****')

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

I however just get the following:
2024-12-03 11:23:13,683 P[17500] [MainThread 27768] Error code 403 | Client Error: <!-- IE friendly error message walkround.
if error message from server is less than
512 bytes IE v5+ will use its own error
message instead of the one returned by
server. --><!DOCTYPE html><html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=8; IE=EDGE">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body {
height: 100%;
font-family: Helvetica, Arial, sans-serif;
color: #6a6a6a;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
}
…….

I have tried making different API keys, both my own and from the support, is there a way to fix this.
Thank you for any help.

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    Thank you for reaching out to us.

    Please share the full HTML content. I would like to check the full HTML page.

    image.png
  • TOB
    TOB Newcomer

    Yes of course, attached is the full as i was not able to just past it in here

    Eikon error 403.pdf
  • Jirapongse
    Jirapongse ✭✭✭✭✭

    The page looks like this:

    image.png

    I assume that it may be from your Proxy or security software.

    You can try to set the NO_PROXY environment variable, as mentioned on this discussion.

    import os
    os.environ['NO_PROXY'] = '127.0.0.1'