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
9 3 5 13

The way to get news with the query it shows.

Hi,

I followed Eikon Python api, but it gave me different data. please help me.

1703028087809.png

I would like to get these news, so i put that query in my python code, but it gives me the latest news, not what i wanted.


Here is what i did and what it provided.

1703028071616.png

please let me know, what is wrong..

eikoneikon-data-apirefinitiv-dataplatform-eikon#product
1703028071616.png (74.7 KiB)
1703028087809.png (198.7 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.

Upvote
Accepted
82.7k 279 53 77

@jwlee08

Thank you for reaching out to us.

The queries are diffrerent.

1703055962368.png

You can use the following code in Eikon Data API.

df = ek.get_news_headlines('( Topic:NEWS1 OR Topic:SREP OR Topic:EXCLSV ) NOT ( AA OR Topic:TOPNP OR \\\"Table\\\" OR \\\"Brief\\\" OR Topic:TAL OR Topic:MKTREP ) AND Language:LEN AND Source:RTRS',count=100)
df

1703055962368.png (51.4 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.

Thank you so much! and how to get it by order?

I can only get them order by the latest..

1703067423571.pngand if there is a way i can find it in API document. please let me know.

I have already search for it in 'Eikon API document', however i can't find the way to get them by order desc.


and Thank you for your help!

1703067423571.png (263.1 KiB)
Upvotes
82.7k 279 53 77

@jwlee08

According to this discussion, you can use the M:1RS news code for the most read news.

However, the behavior may not be similar to the news monitor.

You may contact the helpdesk team directly to check for other news codes.


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.

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.