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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonnews
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
18k 21 12 20

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 5.0 MiB each and 10.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)
Click below to post an Idea Post Idea