Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /
avatar image
Question by 82LL35910622 · Jan 20, 2020 at 12:50 PM · news story

Eikon API: issue with get_news_story output

I am working in a Python code using the Eikon Data API to get the stories corresponding to a set of companies from Argentina.

The query is:

headlines=ek.get_news_headlines('R:YPFD.BA IN SPANISH', date_from='2019-03-06T09:00:00', date_to='2019-04-06T18:00:00')

Then, I get the story for each headline

for idx, storyId in enumerate(headlines['storyId'].values): #for each row in our df dataframe newsText = ek.get_news_story(storyId) #get the news story


The text of each story is:

"http://filings.retrieval.service.ib.thomsonone.com/Filings.Viewer/Down... "

For a few stories, I get the text but on a major of cases, I get the previous link. I don't know if it is an Error o doesn't it because I get an empty data frame when doesn't exist stories for a company. So, what does it mean?

Thanks!

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by chavalit.jintamalit · Jan 20, 2020 at 01:18 PM

Hi @82LL35910622

I can think of this potential issue.

If you loop and sending multiple requests at once, you may get hit by limit per second.

Please read this limitation guideline.

You can add wait time in between each news story API call.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
Answer by 82LL35910622 · Feb 17, 2020 at 09:32 PM

HI, @chavalit.jintamalit. Thank you for your anwers.
Do you know how to add a wait time between each query? I used time.sleep() but the output doesn't change.
Thanks!

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
chavalit.jintamalit ♦♦ · Feb 18, 2020 at 03:03 AM 0
Share

Hi @82LL35910622

Here is the sample:

import time
for idx, storyId in enumerate(headlines['storyId'].values): #for each row in our df dataframe
    newsText = ek.get_news_story(storyId) #get the news story
    time.sleep(5) # sleep for 5 seconds

But apart from limit call per second, please also review other limitation such as the amount of data per day in "Eikon Data API Usage and Limits Guideline" at https://developers.refinitiv.com/eikon-apis/eikon-data-api/docs

(somehow, the URL I provided in my previous reply does not properly bring you to the document.)

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
10 People are following this question.

Related Questions

HTTPError: 503 Service Unavailable: Trying to retrive news stories with Eikon Web and Scripting API

Getting more than 100 news

News API only retrieve from 2017? many thanks!

How can I filter News using story text in EIKON API?

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges