---
updatedAt: 2026-02-27T11:32:02.000Z
agentTools:
  projectIndex: https://gtidocs.readme.io/llms.txt
---

# Get comments from a vulnerability

Returns a list of [Comments](https://gtidocs.readme.io/reference/comment-object) objects.

## Examples

Get 3 community comments from a vulnerability.

```python
import requests
import urllib

object_id = "vulnerability--cve-2022-30190"
limit =3
url = f"https://www.virustotal.com/api/v3/collections/{object_id}/comments?limit={limit}"
headers = {"accept": "application/json","x-apikey": <api-key>}
response = requests.get(url, headers=headers)
```

# OpenAPI definition

```json
{
  "info": {
    "title": "Vulnerability Intelligence",
    "version": "3.0"
  },
  "openapi": "3.1.0",
  "tags": [
    {
      "name": "Vulnerabilities"
    }
  ],
  "paths": {
    "/collections/{id}/comments": {
      "get": {
        "tags": [
          "Vulnerabilities"
        ],
        "deprecated": false,
        "description": "",
        "operationId": "get-vulnerability-comments",
        "parameters": [
          {
            "description": "Your API key",
            "in": "header",
            "name": "x-apikey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Vulnerability's ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Maximum number of comments to retrieve",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 10,
              "format": "int32",
              "type": "integer",
              "maximum": 40,
              "minimum": 0
            }
          },
          {
            "description": "Continuation cursor",
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "properties": {},
                  "type": "object"
                }
              }
            },
            "description": "200"
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "properties": {},
                  "type": "object"
                }
              }
            },
            "description": "400"
          }
        },
        "security": [],
        "summary": "Get comments from a vulnerability"
      }
    }
  },
  "security": [],
  "servers": [
    {
      "url": "https://www.virustotal.com/api/v3"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "headers": [],
    "proxy-enabled": false,
    "samples-enabled": true
  }
}
```