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

...d /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.
Best Answer
-
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.
0
Answers
-
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.
0 -
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?
0 -
Thanks, can we also retrieve news story using URN via the endpoint https://api.refinitiv.com/data/news/v1/headlines?
0 -
No. You can only get a storyID from /headlines.
0 -
I am using the /headlines RDP endpoint to get the URN of a headline/story:
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:0 -
You cannot get news from Reuters website! The /data/news/v1/stories/{storyId} endpoint provides the story body.
0 -
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
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 688 Datastream
- 1.4K DSS
- 624 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 557 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 276 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 692 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 105 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 10 Wealth Management Web Services
- 91 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛