Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Using API we were able to get the pages in pdf format. Is there any other format (XML,JSON)

Abhineet Kumar September 5, 2022

with the help of confluence python module and function available here  https://atlassian-python-api.readthedocs.io/confluence.html  and using API we were able to get the pages in pdf format. Is there any other format (XML, JSON) available to retrieve the content.

1 answer

0 votes
Sven Schatter _K15t_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
September 8, 2022

Hi @Abhineet Kumar,

You can use the Get Content endpoint with the expand parameters body.storage or body.view to retrieve the content in different formats.

If you decide to retrieve the storage format, you can use the Convert content body endpoint to transform it into view format. This can be useful if you want to process the storage format (e.g. add or remove macros, transform links, etc.) before turning it into HTML.

Hope this helps!

Cheers,
Sven

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events