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.
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.
Hello @Jenna.Tabunda ,
Thank you for your participation in the forum.
Is the reply below satisfactory in resolving your query?
If yes, please click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.
Otherwise please post again offering further insight into your question.
Thanks,
-AHS
Hello @Jenna.Tabunda ,
Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
-AHS
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.
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.
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:nBw1WBgsZaHow 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?
Thanks, can we also retrieve news story using URN via the endpoint https://api.refinitiv.com/data/news/v1/headlines?
You cannot get news from Reuters website! The /data/news/v1/stories/{storyId} endpoint provides the story body.
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