APIs / Stack Overflow / Comments

Stack Overflow: Comments

Comments from Stack Overflow as JSON. 1 credit per successful call.

GET /v1/stackoverflow/comments

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
question_idintegerRequiredAny
sortstringOptionalcreation, votes
orderstringOptionalasc, desc
pageintegerOptionalAny
pagesizeintegerOptionalAny

Example request

cURLshell
curl "https://api.perceptlayer.com/v1/stackoverflow/comments?question_id=11227809" \
  -H "X-API-Key: $API_KEY"

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.