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

How can I pull today's news using Eikon API?

Hi, I have been trying to pull yesterday's + today's news using Eikon API but was unable to do so as it returns me an empty dataframe. Kindly advice on how this could be done pls.

This was the code that i had used:

headlines = ek.get_news_headlines("R:Economy AND PMI", Count = 10, today()-1, today(), False, False)

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apinews
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.

Hello @rahman.abrahim

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
18.2k 21 13 21

Hi @rahman.abrahim

Your query seems to match no headline.


I am assuming that this is the sample query of your interests.



ahs1.png (69.8 KiB)
ahs2.png (44.9 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 @chavalit.jintamalit, thank you for the reply. I have tried the sample query above, however, it has returned me with this issue.

AttributeError: 'DataFrame' object has no attribute 'convert_dtypes'

Any idea how i can solve this?

Hi @rahman.abrahim

I think it may be related to the Eikon Desktop/Proxy version and API version.

This is the version I am using:


My Eikon Data API version is 1.1.7

Please try to update the version using pip install --upgrade eikon command

ahs1.png (75.1 KiB)

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.