question

Upvotes
Accepted
1 0 1 4

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

#technology#productnewsrkd-apipostmanhtml
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.

hi @thomas.j.tan ,

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 on the left side of the appropriate reply? This will guide all community members who have a similar question.

Thanks,
AHS

@thomas.j.tan

Hi,

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

Thanks,

AHS

1 Answer

· Write an Answer
Upvote
Accepted
24.6k 54 17 14

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.

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.