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

Upvote
Accepted

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

Hi

I am working on a project that requires me to filter out news story using story text. For example, I want the same results as the query R:8031.T NOT "mitsui" NOT "company limited" AND Language:LEN returns on EIKON new Monitor. How can i reproduce it in EIKON API for Python? Also, note that i am using "filter by headline and story text" in the EIKON app. Is there a way to do the same in API?

Regards

Kairav

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apinewsnews-filter
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
39.4k 77 11 27

Filter by story text is not currently available through Eikon Data APIs. To apply a filter with the keywords to headlines only use double backslash to escape the quotes character.

ek.get_news_headlines('R:8031.T NOT \\"mitsui\\" NOT \\"company limited\\" AND Language:LEN')
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.

This is unfortunate and inconvenient. Are there plans to change this in a future release? Thanks.

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.