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

Lyrics Lords 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 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
Site Admin
TAGS
AUG Leaders

Atlassian Community Events