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?

Best Answer

  • 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?