---
title: "Stack Overflow API: Comments | Perceptlayer"
description: "Comments from Stack Overflow as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/stackoverflow/comments
---

[APIs](https://perceptlayer.com/apis) / [Stack Overflow](https://perceptlayer.com/apis/stackoverflow) / 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.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `question_id` | integer | Required | Any |
| `sort` | string | Optional | creation, votes |
| `order` | string | Optional | asc, desc |
| `page` | integer | Optional | Any |
| `pagesize` | integer | Optional | Any |

## Example request

cURL shell 

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

[Run this endpoint in the playground](https://perceptlayer.com/apis/stackoverflow?try=comments#playground) with your own parameters. 1 credit per successful call; failed calls are free.
