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

No News Alert result

Hello Team,


The client is using the syntax in News Monitor:

AA AND Language:LEN AND 'NIO'

why does this code above returns results in News Monitor but does not return any result in API. Here's the script used:


start_dt = 2022-04-09 09:46:52.043681 # datetime object

end_dt = 2022-04-11 09:46:52.043681 # datetime objec

query = AA AND Language:LEN AND 'NIO'

headlines = ek.get_news_headlines(

query=query,

date_from=start_dt,

date_to=end_dt

)

Can you confirm how client can pull up News Topic Code All Alerts [AA] and keyword: NIO in API?

newsnews-filteralerts
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.

@Camillemm7

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

@Camillemm7

Hi,

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

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
17.1k 80 39 63

Hi @Camillemm7

I believe your query expression is fine. Did you try the command with a date range just to check if you get anything back?

headlines = ek.get_news_headlines("AA and Language:LEN and 'NIO'")

I do get back a default number of headlines. Perhaps there may be no headlines based on the date range you provided?

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.