Forums

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

Is there any way that I can hit the API to get all the spaces?

Paurnima Rajput April 1, 2025

Hi, I have generated API token, and I am trying to hit REST API get all the spaces from confluence, but I am not able to get any response.

2 answers

1 vote
Nikola Perisic
Community Champion
April 1, 2025

Welcome @Paurnima Rajput 

I would suggest using Postman with your API calls. And the API you are looking for is this one: https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space/#api-spaces-get

When you are setting up Postman, for Authentication select the basic authentication where you for username enter your email address and for password your Atlassian API key.

Paurnima Rajput April 2, 2025

Hi Nikola, thank you for the help. I am following same documentation. I am trying to make simply get call for /wiki/REST/api/space but I am getting some false data. getting same data even if I use any query parameters or different endpoints.

Nikola Perisic
Community Champion
April 2, 2025

@Paurnima Rajput when you say false data, what do you actually mean?

Paurnima Rajput April 2, 2025

@Nikola Perisic  it's just a dummy data, not the one which should suppose to return from confluence. 

Paurnima Rajput April 3, 2025

Hi @Nikola PerisicPerisic now I get to know, data I am getting is not false data but there is restriction so I can only be able to fetch upto top 250 records. I s the any way I can fetch more records. I tried pagination but it is not working.

Nikola Perisic
Community Champion
April 3, 2025

Hi @Paurnima Rajput 

There are limits indeed, and these are the ones:

Rate Limits

Confluence Cloud imposes rate limits based on the type of API authentication used:

  • OAuth 2.0 (3LO) and API tokens:

    • 60 requests per minute (user-based)

    • 100 requests per 10 minutes (for specific endpoints, e.g., search)

  • OAuth 2.0 (Forge or Connect apps):

    • 500 requests per 1 minute (per app and per instance)

    • User impersonation: 60 requests per minute

If you exceed these limits, you will receive a 429 Too Many Requests response, and you must wait before retrying.


2. Pagination Limits

  • Many API responses are paginated, meaning they return a limited number of results per request.

  • Default limit: 25 results per request

  • Maximum limit: 200 results per request

  • You need to use the start and limit parameters to paginate through large result sets.


3. Attachment and File Size Limits

  • Attachments:

    • Maximum size: 1 GB per file

    • API uploads may be subject to lower practical limits due to timeouts.

  • Page Body Content:

    • Maximum 5 MB per API request

    • Large pages should be split into multiple requests.


4. Webhook Limits

  • Maximum 100 webhooks per Confluence Cloud instance

  • If a webhook delivery fails, Confluence retries up to 5 times before disabling it.


5. Other Important Limits

  • Concurrent API Requests:

    • Some endpoints may have concurrency limits to prevent performance degradation.

  • Permission-Based Access:

    • API calls respect the user’s permissions, meaning you can only retrieve or modify content if you have the appropriate access.

  • Search API Rate Limits:

    • The search API has stricter rate limits (100 requests per 10 minutes) due to performance concerns.

0 votes
Adrian Hülsmann - B1NARY
Atlassian Partner
April 16, 2025

Hi @Paurnima Rajput

Depending on your use case, it might be worth looking at Breeze.

Besides review and approval workflows, it provides CSV data export functionality, giving you all spaces and their details.

If you'd like to discuss your use case, feel free to schedule an appointment with me via the demo link in the Marketplace listing.

All the best,
Adrian from B1NARY (we are the developers of Breeze)

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events