APIs / Stack Overflow / Answers

Stack Overflow: Answers

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

GET /v1/stackoverflow/answers

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
question_idintegerRequiredAny
sortstringOptionalvotes, activity, creation
orderstringOptionalasc, desc
pageintegerOptionalAny
pagesizeintegerOptionalAny

Example request

cURLshell
curl "https://api.perceptlayer.com/v1/stackoverflow/answers?question_id=11227809&sort=votes" \
  -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.