Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted

API to get "Most Read" News

Hi,


A client would like to get "Most Read" news like she can do in News Monitor. I understand that Eikon Data API cannot do this as mentioned in How to query mostly read news for a certain ticker via Eikon API? - Forum | Refinitiv Developer Community

capture.png


Anyway, is there any API/workaround that can query news based on "Most Read"? Please advise.


Thanks and Regards,

Vetit S.

eikon-data-apirefinitiv-dataplatform-eikonelektronrdp-api
capture.png (142.3 KiB)
icon clock
10 |1500

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

1 Answer

· Write an Answer
Upvotes
Accepted
78.2k 246 52 72

@vaetit.sirasupprakchai1

I found that the M:1RS code represents most read news.

df = ek.get_news_headlines("M:1RS AND CRU",count=10)

However, the output is different from the news monitor.

1635836805142.png




1635836805142.png (33.6 KiB)
icon clock
10 |1500

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

hi Jirapongse,


thank you for the answer. M:1RS is useful indeed but it gives the output of most read news from all. is it possible to have most read news within a time period? I tried to give a date range from xxx to xxx but there is no output, which means M:1RS only works for all news.

So I wonder if it is possible to have some code to get most-read news within 24hours, 1 day, one month, or other periods? thank you


Cheers,

Ginger



@Ginger J. Xing

Old threads with accepted answers are not monitored by forum moderators. To ask a new question, please always start a new thread (Ask a new question).

The get_news_headlines method supports the date_from and date_to parameters.

get_news_headlines(query='Topic:TOPALL and Language:LEN', count=10, date_from=None, date_to=None, raw_output=False, debug=False)

    date_from: string or datetime, optional
        Beginning of date range.
    
        String format is: '%Y-%m-%dT%H:%M:%S'. e.g. '2016-01-20T15:04:05'.
    
    date_to: string or datetime, optional
        End of date range.
    
        String format is: '%Y-%m-%dT%H:%M:%S'. e.g. '2016-01-20T15:04:05'.

You can use these parameters to specify a period.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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