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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Confluence Cloud Rest API: Fetch page comments

I need to fetch all page comments include child comments.

I can only see this rest api to fetch page first level comments:


I am using java with confluence cloud rest api


any idea is greatly appreciated. 


2 answers

3 votes
Dario B Atlassian Team Sep 29, 2020

Hello @WidWid ,

Welcome to the Atlassian Community!

The endpoint your have found is the correct one. However, in order to get all the comments you should use:

  • wiki/rest/api/content/{ID}/child/comment?expand=body.view&depth=all

Another option could be:

  • wiki/rest/api/content/{ID}/child/comment?expand=children.comment


For further details please see:


I hope this helps.



0 votes
Dominic Lagger Community Leader Sep 29, 2020

Hi @WidWid 

I had a look in the REST API from confluence cloud and found the API, which you found: 

But here it is described:



Currently, this parameter is not used. Comments are returned at the root level only.

What I found is a way to get 2 level with this:


I'm not very familiar with comments, but comments are "content" as well. So you can get all first level comments and make a for each and set another REST call with the ContentID's you found. This you can do within Java. Do you know what I mean?

Regards, Dominic

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

107 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you