Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get body of the confluence cloud with rest api

Lyrics Lords
Contributor
March 22, 2023

Is there anyway to get body of the confluence cloud with rest api?

 

https://community.atlassian.com/t5/Confluence-questions/how-to-get-full-content-body-html-using-confluence-REST-API/qaq-p/710532

at this link @Cliff Berg tried to get content but failed.

 

Could you tell me how to get content of the page of confluence cloud?

Thanks

 

1 answer

1 accepted

1 vote
Answer accepted
Alex Koxaras -Relational-
Community Champion
March 23, 2023

Hi @Lyrics Lords 

Try the following:

https://YOURDOMAIN.atlassian.net/wiki/api/v2/pages/{PAGE_ID}?body-format=storage

Replace the YOURDOMAIN with your actual domain, and {PAGE_ID} with the id of the page.

Lyrics Lords
Contributor
March 23, 2023

wow great!!!

it work! thanks so much!

Like # people like this
Parth Vyas July 12, 2023

@Lyrics Lords @Alex Koxaras -Relational- ,
Is there a way to fetch the css details as well. ATM, I do get the HTML back but that looks more like a plain text with no CSS linkages.

Any help is appreciated.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events