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 1

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.

1 Answer

· Write an Answer
Upvotes
Accepted
18.7k 85 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.