For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Camillemm7 avatar image
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?

newsalertsnews-filter
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

nick.zincone avatar image
11.7k 57 39 60

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?

10 |1500

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