Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get all versions of all pages inside a space using a single API?

BAVITHRA R October 24, 2021

I have a API for fetching all versions of a page, but i want to get all versions of all pages inside a space by using single API.

2 answers

2 accepted

0 votes
Answer accepted
Pramodh M
Community Champion
October 24, 2021

Hi @BAVITHRA R 

You need a series of API's to achieve this It's not possible with a Single API

First, get all the pages in Space with below API

https://developer.atlassian.com/cloud/confluence/rest/api-group-space/#api-wiki-rest-api-space-spacekey-content-type-get

Then for each Page get the version from the below API

https://developer.atlassian.com/cloud/confluence/rest/api-group-content-versions/#api-wiki-rest-api-content-id-version-get

Thanks,
Pramodh

Kishan Sharma
Community Champion
October 24, 2021

Correct, this is not possible to do with a single API.

Like Pramodh M likes this
0 votes
Answer accepted
Dominic Lagger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2021

Hi @BAVITHRA R 

This is not possible with a single API call. You have to loop over all pages to get their versions. 

Regards, Dominic

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events