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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,551,671
Community Members
 
Community Events
184
Community Groups

How to get changes in page history via REST API

Hi,

 

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.

rest/api/content/search?expand=body.view,history.previousVersion.content.body.view&start=0&limit=25&cql=<dateRangeCQL>

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?  

1 answer

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 20, 2023

Hi @Jack_Moore ,

unfortunately there's not a specific REST API to retrieve that information. You can retrieve specific content version and then compare json (https://community.atlassian.com/t5/Confluence-questions/Confluence-API-get-page-content-from-historical-versions/qaq-p/1398857)

Fabio

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events