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 victor.delima · Aug 03, 2018 at 11:13 AM · python apipython api eikonnews

How to correctly query python API for Eikon news

Hi. I am trying to use the python Eikon API to retrieve the news that show up on the "*TOP NEWS*-Front Page - RTRS | News" page (the section you get when clicking on the "TOP NEWS SUMMARIES ON OTHER SUBJECTS Front Page TOP/NEWS" on the news app), but I can't seem to figure out how. I am doing the following query:

today = DT.date.today()
source1 = ek.get_news_headlines(query=q, date_from=today, date_to=today, count=13, raw_output=False)

Where "q", I have tried the following:

q = 'Topic:TOP/NEWS AND Language:LEN AND Source:RTRS'

Which doesn't return the same content; and

q = '( Topic:TOP/NEWS OR Topic:SREP OR Topic:EXCLSV ) NOT ( AA OR Topic:TOPNP OR Table OR Brief OR Topic:TAL OR Topic:MKTREP ) AND Source:RTRS AND Language:LEN'

which returns more of the content, but it is still not the same. How can I query for that particular content?

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 Alex Putkov. · Aug 03, 2018 at 02:36 PM

If you're looking to get the list of headlines at the top of this page, you won't be able to do it by applying a news search filter. Any news search filter will return the list of headlines that satisfy the filter criteria in chronological order. On the Top News Front Page the headlines are listed in order of importance.
You can however retrieve the HTML comprising the Top News Front Page and parse the headlines out of it. Here's the call that returns the HTML for the page:

ek.get_news_story('nTOPNEWS')
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
victor.delima · Aug 03, 2018 at 03:19 PM 0
Share

Thank you! That worked great.

avatar image
REFINITIV
Answer by Alex Putkov. · Aug 03, 2018 at 12:06 PM

Would you mind including detailed step by step instructions how to display in Eikon application the page you're interested in and include the screenshot of this page? I'm having a hard time figuring out what page in Eikon you're looking to replicate.
Alternatively you might want to call TR Helpdesk and ask how you can retrieve the news you're looking for using News Monitor app in Eikon. The news search expressions you can use in Eikon Data APIs and in News Monitor app in Eikon are the same.

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
victor.delima · Aug 03, 2018 at 12:13 PM 0
Share

Hi Alex. Thank you for your reply. I included the image below. I did contact the TR Helpdesk prior to making this post, but after a day of passing the query around they concluded that I should post here.

news-page.png (141.2 KiB)

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 >
8 People are following this question.

Related Questions

Decoding DSPLY_NMLL to the Finnish language

Is there a programmatic way to check if price symbol is available given a RIC or ISIN in Python API?

Index constituents every month

Price data missing for several RIC's using ek.get_timeseries in python API

Eikon API proxy not running

  • 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