It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get changes in page history via REST API



I'm currently monitoring Confluence activity via the rest API.  I am able to collect dates, users, and page ids of all activity with a specific date range.  In addition to this, I need to pull the changes made to a page related to that activity.

Current I'm able to pull both the HTML of the new version as a result of the change and the HTML of the previous version via the below API call.


Using this information, I could design a Python script using difflib that could decipher the differences in the HTML, but this is too computationally expensive to run on many large confluence pages.

On the Confluence web application, there's a page to view the difference between two versions via this link: pages/diffpagesbyversion.action.  This page highlights the additions and reductions in the page.

Given that this information is available via the web application, I was wondering if there was an API call to pull just the difference between two versions?  

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

5,966 views 4 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you