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 /

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
Question by ws · Nov 09, 2017 at 02:50 AM · eikoneikon-data-apiworkspacepythonworkspace-data-apirefinitiv-dataplatform-eikonnews

Query news in English via python API

I tried the sample code to get news in German like this 'R:LHAG.DE'.

ek.get_news_headlines('R:LHAG.DE', date_from='2017-11-05T09:00:00', date_to='2017-11-08T18:00:00')

How can I get news in English ? what is the 'RIC' code for get_news_headlines func? , 'R:LANG.EN' does not work.

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.

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by pierre.faurel · Nov 09, 2017 at 04:50 AM

Basically, you're can type any news expression. You can validate the expression in Eikon then copy paste it.

For your example: when you type 'FOMC, FED, US' in News component, it's transformed to 'R:FMSAUBD.MX OR Topic:FED OR Topic:US'. Then you can copy the result in Python request:

>>> ek.get_news_headlines('R:FMSAUBD.MX OR Topic:FED OR Topic:US', date_from='2017-11-05T09:00:00', date_to='2017-11-08T18:00:00')

You can add language filter :

>>> ek.get_news_headlines('( R:FMSAUBD.MX OR Topic:FED OR Topic:US ) AND Language:LEN', date_from='2017-11-05T09:00:00', date_to='2017-11-08T18:00:00')
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
REFINITIV
Answer by Zhenya Kovalyov · Nov 09, 2017 at 02:57 AM

try

R:LHAG.DE AND LEN

LHAG.DE represents the quote of Lufthansa's shares (LHAG) traded on Xetra (DE). LEN represents English as in Language - English, for news in German use LDE.

Comment

People who like this

0 Show 2 · 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
ws · Nov 09, 2017 at 03:32 AM 0
Share

So what symbol should I use to get news in English from Reuters original? What kind of string should I use in blank area below?

ek.get_news_headlines(' ', date_from='2017-11-05T09:00:00', date_to='2017-11-08T18:00:00')

avatar image
ws · Nov 09, 2017 at 03:32 AM 0
Share

So what symbol should I use to get news in English from Reuters original? What kind of string should I use in blank area below?

ek.get_news_headlines(' ', date_from='2017-11-05T09:00:00', date_to='2017-11-08T18:00:00')

avatar image
REFINITIV
Answer by pierre.faurel · Nov 09, 2017 at 03:56 AM

You can do this :

ek.get_news_headlines('R:LHAG.DE and Language:LEN', date_from='2017-11-05T09:00:00', date_to='2017-11-08T18:00:00')
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
ws · Nov 09, 2017 at 04:03 AM 0
Share

Thanks for your quick response;

how ever what I really want to do is to get major news headlines not limitied to specific stock name, Lufthansa.

for example : how to get major news on FOMC, FED, US goverments comments?

what kind of ticker I should use to fill the 1 st argument in get_news_headlines?

@pierre.faurel,

@Zhenya Kovalyov


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

Related Questions

How do I apply short-term and long-term filters in Python?

Is it possible to retrieve news history with or without sentiment score since 1990 ?

Getting all historical news text for specific companies

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

Eikon Data API for News

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • 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
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges