question

Upvotes
Accepted
1 0 0 1

RKD News Story HTML to text

Client is using Postman. Client use RKD – RETRIEVE HEADLINES to get storyID, then use RETRIEVE NEWS to get the story for that storyID. The response is in HTML format. Client would like to know how to return the news story in text format. Alternatively, how to return a URL for the story, so that client can publish the URL on their website for end user to click on it, then open the story in text. Please note the client is looking at ASX news, which normally contains a URL to open a PDF document. Please see screenshots with specific example below.

1668575306742.png1668575306804.png

#technologyrkd-apinews#productpostmanhtml
1668575306742.png (78.9 KiB)
1668575306804.png (184.7 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.

1 Answer

Upvote
Accepted
17.5k 35 12 12

Hello @thomas.j.tan

I checked the RDK API News Services. The API provides News data for the consumer applications as JSON messages only. The application needs to parse the JSON data and get a news headline text, story text, and other attributes based on the HeadlineML/StoryML structure.

The client can find more detail about the HeadlineML/StoryML element structure in the RKD API Development Guide document.

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.