I'm using the API https://confluence.com/rest/api/space?limit=2000 to fetch the list of all spaces in Confluence. But this API returns only 500 spaces. I'm aware since Confluence 5.5 there is a limit on number of results returned (i.e. 500). Is there a way to get all the spaces?
The Atlassian set a hard limit, to protect the Confluence server for "accidentally" overload. If you want to get all the spaces you need to use the start properties, as much as you got size: 500
E.g.: https://confluence.com/rest/api/space?start=500&limit=500 and https://confluence.com/rest/api/space?start=1000&limit=500 and so on.
Or you can use type property to filter the global and personal spaces.
E.g.: https://confluence.com/rest/api/space?type=global&start=1&limit=500 or https://confluence.com/rest/api/space?type=personal&start=1&limit=500 and so.
Cheers,
Tamás
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.