question

Upvotes
Accepted
16 2 5 7

Are RDP images publicly available?

We have a Back-End application that makes use of the RDP API to retrieve headlines and stories and we can see that the associated images can be retrieved through the following API call:

GET https://api.refinitiv.com/data/news/v1/images/{imageId}

However, this link does not seem to be publicly accessible so it is impossible for our Front-End to display those images (without authentication at the FE side). Is there a publicly accessible image link? (We are trying to avoid storing the images at the BE side)

rdp-apinewsrdp
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.

Hello @pevangelidis

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS

@pevangelidis

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

Upvotes
Accepted
32.2k 40 11 20

Hello @pevangelidis ,

Would like to better understand the question in order to try to help:

The endpoint images is part of RDP News and are available, was there, perhaps, a connectivity glitch, can you please re-try to see if the issue was intermittent?

The images endpoint access requires permissions for RDP news and a valid image ID for images to be pulled on request. I just tested:

https://api.refinitiv.com/data/news/v1/images/2021-11-11T112442Z_1_CD0_RTRLXPP_2_LYNXPACKAGER.JPG

via Postman, was able to retrieve the image on my side, please try the same, let us know if you are able to access it?

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
16 2 5 7

Hello @zoya faberov ,

We do have access to the images when we are authenticated with your OAuth2 mechanism but this is not our issue. Our application consists of the following components:

  • Back End application: The BE authenticates to RDP API, consumes and stores articles with their image links.
  • Front End: The FE makes requests to our BE and displays the text and the images of the articles.

The issue here is that the FE does not authenticate to the RDP API as we don’t want our Password Credentials to be public. So, if we use the image links as returned from RDP API (e.g. https://api.refinitiv.com/data/news/v1/images/2021-11-11T112442Z_1_CD0_RTRLXPP_2_LYNXPACKAGER.JPG) the images will not be displayed. It seems that we cannot show any images without an intermediate stage where our BE hosts them. Is there any suggestion from your side so as to avoid it?

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
32.2k 40 11 20

Hello @pevangelidis ,

RDP requires authentication, that is facilitated via authentication via token. I can see two design options:

1. As you discuss, storing the required images locally.

2. Back end application will be responsible for authenticating, requesting token via RDP service (for example, every 270 sec, as it is good for 300 sec) and making the valid token available to the front end application, as well as the image link.

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.