Additional Ouput Columns for get_news_headlines in Refinitiv Data Library

Hi, I'm running the following code for a group of ISINS:

for isin in ISIN_List:

query = rd.news.get_headlines("ISIN:"+isin+ " and Topic:CVRSY")

query


In the output it seems like the default columns are, "VersionCreated", "headline", "StoryId", and "sourceCode". I was wondering if there was any more info or metadata we could get in additional columns. Some specific asks would be a column for the ISIN associated with the headline, and a way to get all topics associated with the headline. We currently have the topic set to Controversies, but there is a view in the News Monitor itself that shows all topics that the headline is associated with so I'm wondering if I can get that through the API itself. Outside of these 2 just curious in general what other possible data there is

Best Answer

  • nick.zincone
    nick.zincone admin
    Answer ✓

    Hi @cole

    You can execute the New Headline call at the content layer within the library. For example:

    isin = 'US45766X2053'
    response = news.headlines.Definition(
    query=f"ISIN:{isin} and Topic:CVRSY"
    ).get_data()
    response.data.df

    Doing this, now allows you to get raw data from the platform which exposes metadata within your response. For example:

    response.data.raw

    1707773883181.png

Answers