Forums

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

Fetching multiple content details in a request

Ömer - OBSS August 27, 2021

Hi everybody,

We are trying to access content details which is contains content history and versions, with Confluence REST API. We can do this for a page without any problems, but we need to navigate through all the content on space. In this case, it is very expensive to make a separate request for each content. We are looking for a way that details more than one page at the same time with a request. We couldn't find a way to do this in the REST documentation. 

We can do this on Jira side with JQL Search rest resource to access multiple issues history with same request. Jira can give the history of up to 100 issues via single REST call when you expand the changelog.

We need to similar method on the Confluence side.

I would be very happy if there are any methods you can recommend.

Thanks!

 

1 answer

0 votes
Kishan Sharma
Community Champion
August 27, 2021

Hi @Ömer - OBSS 

Using below REST API you can get all the pages in your space and loop over them to perform other operations.

https://<base-URL>/wiki/rest/api/space/{SPACE_KEY}/content?start=0&limit=9999&type=page

Or else you can also search via CQL refer below link -

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

Suggest an answer

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

Atlassian Community Events