question

Upvotes
Accepted
1 4 4 6

how to access the URL for a news story using the URN or URI that is returned by the /headlines and /storyID endpoint.

Hi, I would like to understand how to access the URL for a news story using the URN or URI that is returned by the /headlines and /storyID endpoint.

rdp-apirefinitiv-data-platformnews
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
24.5k 63 15 21

Yes, use like this: /data/news/v1/stories/{storyId}

i.e.

https://api.refinitiv.com/data/news/v1/stories/urn:newsml:reuters.com:20211102:nPn8ZDgfDa:1

the response will be an JSON message which will also contain the actual news story.

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
24.5k 63 15 21

Hi @Jenna.Tabunda,

Are you looking for an external URL which when opened in a browser, will provide you with the story? If so, there is none - the story content is provided in the body of the response message when invoking the /storyID endpoint.

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
1 4 4 6

Hello @Gurpreet , I am referring to the below RDP endpoints:

https://api.refinitiv.com/data/news/v1/headlines

https://api.refinitiv.com/data/news/v1/stories


Is there a way to retrieve a news story using the URN or URI using the above RDP endpoints? \

refer to the below sample URN:

urn:newsml: reuters.com:20211102:nBw1WBgsZa


How can we retrieve the news story of this URN using https://api.refinitiv.com/data/news/v1/headlines and https://api.refinitiv.com/data/news/v1/stories endpoints?


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
1 4 4 6

Thanks, can we also retrieve news story using URN via the endpoint https://api.refinitiv.com/data/news/v1/headlines?

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
24.5k 63 15 21

No. You can only get a storyID from /headlines.

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
1 4 4 6
I am using the /headlines RDP endpoint to get the URN of a headline/story: Screen Shot 2021-11-02 at 8.26.31 AM.png
Next I copy and paste the URN obtained above into the stories/{storyid} RDP endpoint, but I do not see how I can construct a URL that links to the new story on the Reuters website: Screen Shot 2021-11-02 at 8.27.04 AM.png
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
24.5k 63 15 21

@Jenna.Tabunda ,

You cannot get news from Reuters website! The /data/news/v1/stories/{storyId} endpoint provides the story body.

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.

Upvote
32.2k 41 11 20

Hello @Jenna.Tabunda ,

To give a quick example of the steps with details, as suggested by @Gurpreet ,

Run a headline request, and select/copy a valid storyId

"storyId": "urn:newsml:reuters.com:20201020:nL1N2HB2GF:6"

Next, request the story with this storyId using RDP news stories endpoint:

https://api.refinitiv.com/data/news/v1/stories/urn:newsml:reuters.com:20201020:nL1N2HB2GF:6

Hope this helps


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.