Usage of /questions/{ids}/comments GET

Discussion

Gets the comments on a question.

If you know that you have an question id and need the comments, use this method. If you know you have a answer id, use /answers/{ids}/comments. If you are unsure, use /posts/{ids}/comments.

{ids} can contain up to 100 semicolon delimited ids. To find ids programmatically look for question_id on question objects.

The sorts accepted by this method operate on the following fields of the comment object:

  • creationcreation_date
  • votesscore
creation is the default sort.

It is possible to create moderately complex queries using sort, min, max, fromdate, and todate.

This method returns a list of comments.

Try It

Stack Overflow [edit]