Do I have News API included in my subscription? if so, where can I get the API key from?
Hi @Varun_KC, Thank you for reaching out!
You can get the API Key (a.k.a as App Key) from two places. If you have access to Workspace, you can search for App Key Generator then give a meaning name to your app and by choosing the relevant API you can get your App key.
App Key Generator
The other option is via the API playground where you have the App Key Generator on the top left-hand corner.
Regarding the access to News API, you should have it in general, but you can contact your LSEG Account Manager or CSM for details related to your access as this forum is for developers seeking technical help with APIs.
Please continue on this thread if you need help further : )
@Varun_KC
If you are using the LSEG Data Library for Python to retrieve news through the LSEG Workspace Desktop, an application key is an optional.
You can call the ld.open_session() to establish a desktop session without specifying an application key.
import lseg.data as ld ld.open_session() ld.news.get_headlines("LEN")
The news example is on GitHub.
Hello @Varun_KC
Please contact your LSEG Representative or Account Manager to verify if you have a News data subscription.
If you are using the Data Platform APIs (RDP), you can get the news via HTTP REST from /data/news/v1/headlines and /data/news/v1/stories endpoints (see Introduction to the Request-Response API tutorial and Data Platform API Playground pages). If you are using the https://developers.lseg.com/en/api-catalog/lseg-data-platform/lseg-data-library-for-python , it supports the Data Platform connection too. Please see how to configure your RDP credential on "Platform - LSEG Data Platform" section of the Data Library for Python Quickstart page. Then you can use the code like my colleague has mentioned above.