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 noel.randewich · Nov 13, 2020 at 06:37 PM · pythonnews

Eikon API reading string as company RIC in headline query

HI,

The Eikon API seems to be interpreting 'Apple" as the Apple RIC, 'AAPL.O", and seems returning me any news headline that has that RIC associated with it. If I write 'Apple' (without the quotes) in an Eikon news search box, it does the same. It changes "Apple" to the RIC 'AAPL.O. I seem to be getting the same result with 'Trump", which I believe Eikon is interpreting as the topic code POTUS.

Could you show me how I might tweak the line below to return ONLY stories with the exact string "Apple" appearing in the headline, regardless of whether the story has the RIC AAPL.O associated with it? I only want stories with "Apple" in the headline.

df = ek.get_news_headlines('Language:LEN AND NS:RTRS AND Apple', date_from = "2019-11-13", count=100)

Thank you!



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.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Alex Putkov. · Nov 13, 2020 at 09:37 PM

To search for news headlines containing the exact text, enclose the text in quotes. E.g. in Eikon News Monitor app you can use

Language:LEN AND Source:RTRS AND "APPLE"

To use this search expression in Eikon Data APIs library for Python you need to escape the quotes:

ek.get_news_headlines(r"Language:LEN AND Source:RTRS AND \"APPLE\"", 
                      date_from = "2019-11-13", count=100)
Comment
noel.randewich

People who like this

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

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

Articles over period of time

News Source and Historical News

Interaction between API python and Eikon app

Is a news stream available in the Eikon Scripting API?

Details on new Sentiment indicator on news stories, and how to access in 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