question

Upvotes
Accepted
27 1 0 3

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

#product#contentnewsnews-filter
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
81.1k 264 53 76

@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.


1716266130246.png (41.0 KiB)
1716266227135.png (39.8 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

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

Upvote
18.2k 84 39 63

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.