ld.news.get_headlines

Teddy
Teddy Newcomer
edited 8:41AM in Eikon Data APIs

I was using python library to fetch news by ld.news.get_headlines(query='"Elon Musk" AND Language:LEN AND Source:"X"', count=10). However it returned LDError: Error code 400 | Query cannot return any result.

Since I was trying to retrieve social media posts (explicitly X posts), is there a function to do it?

Answers

  • Hello @Teddy

    I can replicate the same issue on my end with both Desktop and Platform session.

    ld_error.png

    I see that the Workspace's New Monitor App can filter the X news source as follows:

    news_monitor.png

    I will contact the Data Library team to confirm if this news data source X is available to query via the API.