@Nandish_BP
Thank you for reaching out to us.
For LSEG Workspace users, clients can use the LSEG Data Libraries (Python, .NET, or Typescript) to pull news headlines and stories through the running LSEG Workspace application.
There are examples available on GitHub.
For example, the following Python code retrieves 100 English news headlines related to LSEG.L.
ld.news.get_headlines("LSEG.L and LEN", start="2026-01-01", end="2026-05-22", count=100, order_by= ld.news.SortOrder.old_to_new)
The ld.news.get_headlines method accepts the following parameters.
get_headlines(query: str, count: int = 10, start: 'OptDateTime' = None, end: 'OptDateTime' = None, order_by: Union[str, lseg.data.content.news.headlines._sort_order.SortOrder] = <SortOrder.new_to_old: 'newToOld'>) -> pandas.core.frame.DataFrame Retrieves news headlines. Parameters ---------- query: str The user search query for news headlines. count: int, optional Count to limit number of headlines. start: str or timedelta, optional Beginning of date range. String format is: '%Y-%m-%dT%H:%M:%S'. e.g. '2016-01-20T15:04:05'. end: str or timedelta, optional End of date range. String format is: '%Y-%m-%dT%H:%M:%S'. e.g. '2016-01-20T15:04:05'. order_by: str or SortOrder Sort order for headline items.
The first parameter (query) accepts a news query which typically the same news query used in the news monitor app.
Hi Jirapongse
Please assist follow up from client: Is there a way for us to call the function ld.news.get_headlines() to get all the articles for the relevant query for the given date range, as opposed to a limited number of headlines (default value for this in the function is 10)?
The count can be more than 10.
Moreover, the client can refer to this LSEG Data Library for Python: News Pagination article.