Get news from company by PermId

Hi all,


I'm looking to leverage the refinitiv.data API (the .content.news package) to fetch latest news for a specific company.

I would like to usethe company's PermID to filter the data, any idea how that query would look like ?

Also i can't find a good documentation for the refintiv.data.content.news package, any suggestions ?

Thanks

Best Answer

  • Jirapongse
    Answer ✓

    @adam.leroux

    Thank you for reaching out to us.

    I checked the News User Guide and found the news query supports PermID with the "P:" prefiex.

    1716266130246.png

    For example:

    1716266227135.png

    I hope that this information is of help.

Answers

  • Hi,

    thanks for you answer, it looks great !

    Just have one issue with it, i've been trying

    news.headlines.Definition(query="P:4297144968",count=100).get_data

    but i get the following error :

    ScopeError: Error code -1 | Insufficient scope for key=/data/news/v1/headlines, method=GET, Required scopes: {'trapi.data.news.read

    Any idea what that might be caused by ?


    Thanks

  • Hi @adam.leroux

    The above ScopeError indicates you are not permissioned to receive news headlines data. You will need to reach out to your LSEG Account Manager and discuss that you require access to this data.

    thanks.