CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 13:31:10 GMT
content-type: text/html; charset=utf-8
cache-control: private
set-cookie: prov=bfdb57da-ceeb-4c32-9561-9007b7684838; expires=Mon, 27 Jul 2026 13:31:10 GMT; domain=.stackexchange.com; path=/; secure; httponly
x-clacks-overhead: GNU Terry Pratchett
strict-transport-security: max-age=31536000; includeSubDomains
x-request-guid: b6625aeb-0b48-45e7-8cd8-278d16842085
x-providence-cookie: bfdb57da-ceeb-4c32-9561-9007b7684838
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
cf-cache-status: DYNAMIC
set-cookie: __cf_bm=HPgHCVLKgxxDMRQZlHmi25XyHMoPqmNjfMM6Kx8UGXg-1753623070-1.0.1.1-j7I9ixli15rP_isc2gpLy8hPDnDa3J05JcG9Uobadh42Q6xHizXWfCiYZ9g539Vz8Xqs5qQYpJDJbk1TBfPKUI3g5fXrySuPKg_l1ASOiYc; path=/; expires=Sun, 27-Jul-25 14:01:10 GMT; domain=.api.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: __cflb=02DiuEqtkS4jGaTk6jRLVowZ76Z4qeo48dmfQ5viAdoa4; SameSite=None; Secure; path=/; expires=Mon, 28-Jul-25 12:31:10 GMT; HttpOnly
set-cookie: _cfuvid=OgTBWZa2pr8F7S_6JY5U6xCC5fCi7wghgKBsDTB.7HI-1753623070798-0.0.1.1-604800000; path=/; domain=.api.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 965c7edecf6f5917-BLR
content-encoding: gzip
Usage of /posts/{ids}/comments [GET] -
Stack Exchange API
It is possible to create moderately complex queries using
https://stackoverflow.com/oauth/dialog?client_id=1&key=U4DMV*8nvpm3EOpvf69Rxw((&redirect_uri=https%3a%2f%2fapi.stackexchange.com%2fdocs%2foauth_landing
U4DMV*8nvpm3EOpvf69Rxw((
Usage of /posts/{ids}/comments GET
Discussion
Gets the comments on the posts identified in ids, regardless of the type of the posts.
This method is meant for cases when you are unsure of the type of the post id provided. Generally, this would be due to obtaining the post id directly from a user.
{ids}
can contain up to 100 semicolon delimited ids. To find ids programmatically look for post_id
, answer_id
, or question_id
on
post, answer, and question objects respectively.
The sorts accepted by this method operate on the following fields of the comment object:
- creation –
creation_date
- votes –
score
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
about blog terms of use contact us feedback always welcome
site design / logo © 2025 Stack Exchange, Inc; user contributions licensed under CC BY-SA