Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,359,847
Community Members
 
Community Events
168
Community Groups

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

Edited

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 Sep 08, 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
Community showcase
Published in Confluence

Watch 4 Confluence apps compete for Best App Demo in September's Appy Hours

Calling all collaborators! Appy Hours on the Atlassian Community is a monthly event where 4 Partner and app vendor presenters go head-to-head with 5-minute demos for the title of Best App Demo. I...

490 views 0 12
Read article

Atlassian Community Events