Usage of questions/{id}/comments

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/{id}/comments. If you are unsure, use /posts/{id}/comments.


Parameters

  • id – A single primary key identifier or a vectorized, semicolon-delimited list of identifiers.
    • This is a vectorized parameter, multiple ids can be sent a single request if delimited with a semi-colon
    • string
  • fromdate – Unix timestamp of the minimum creation date on a returned item.
    • unix epoch date, range [0, 253,402,300,799]
  • max – Maximum of the range to include in the response according to the current sort.
    • integer or unix epoch date
  • min – Minimum of the range to include in the response according to the current sort.
    • integer or unix epoch date
  • order – How the current sort should be ordered.
    • one of desc (default), or asc
  • page – The pagination offset for the current collection. Affected by the specified pagesize.
    • 32-bit signed integer
  • pagesize – The number of collection results to display during pagination. Should be between 0 and 100 inclusive.
    • 32-bit signed integer
  • sort – How a collection should be sorted.
    • one of creation (default), or votes
  • todate – Unix timestamp of the maximum creation date on a returned item.
    • unix epoch date, range [0, 253,402,300,799]

Try it