Hello,
Thank you!
@ryan.liu
Thank you for reaching out to us.
Are you using the Eikon Data API? This API is outdated. It is better to use the LSEG Data Library for Python instead. Please refer to this Upgrade from using Eikon Data API to the Data library article. The examples are on GitHub.
You can use the news module in the content layer to get the raw responses. For example:
response = news.headlines.Definition(query = 'Topic:TECH', count = 10).get_data() response.data.raw
The raw response will contain {"_qcode": "B:278"} which represents Topic:TECH.
If you are using the LSEG Workspace, you can contact the Workspace support team via LSEG Support to get the list of news topics or codes.