To get the actual content I tried using Get Content by Id API : https://{{host}}/wiki/rest/api/content/:id?expand with providing value for expand parameter as body.view, body.storage, body.styled_view, in response it give data as value to body key however it returns data as html form.
For attachment using Get Attachments API : https://{{host}}/wiki/rest/api/content/:id/child/attachment? it returns, _links object with webui, download key value in response, using which we can get actual content for attachment.
Please help to get actual content of Page, Blogpost and Comments using Confluence Cloud REST API.
Thank you.
Are you looking for a plain text representation of the body content?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, but this doesn't exist as content entered into confluence is rich and saved as such. To convert downward would be a loss of information and we'd have to make make opinionated choices as to how elements would be converted. For example maybe we could convert to markdown, but what if there is a table? Markdown doesn't natively support tables and as such we'd have to use an esoteric variant. Probably not what you wanted to hear, but I hope this gives you some insight into why we wouldn't want to support this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Save the output of body.view to an output.html file, then use w3m -dump output.html to get a plaintext representation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.