# Issue Type Stats

GET /easm/issues/stats/type: Counts issues per issue type (filter by severity, sort with ordering).

Source: https://docs.deepinfo.com/reference/easm/issue-type-stats/

Last updated: 2026-09-27

---
`GET https://api.deepinfo.com/v1/easm/issues/stats/type`

Counts issues per issue type (filter by `severity`, sort with `ordering`).

## Authentication

Send your API key in the `apikey` request header.

## Query Parameters

| Parameter | Required | Description | Example |
|---|---|---|---|
| `severity` | Optional |  |  |
| `type_id` | Optional |  |  |
| `type_category_id` | Optional |  |  |
| `ordering` | Optional |  |  |

## Response Fields

An array of objects:

| Field | Type | Description |
|---|---|---|
| `severity` | string | One of `Critical`, `High`, `Medium`, `Low`, `Information` |
| `type` | object |  |
| `affected_asset_count` | integer |  |

## Response Schema

_Inferred from examples._ Built from the saved 2xx example response: the fields it contains, with the types seen there. It is not a contract. The response body is an array; `[]` marks its elements.

| Field | Type |
|---|---|
| `[].severity` | string |
| `[].type` | object |
| `[].type.id` | string |
| `[].type.name` | string |
| `[].type.category` | object |
| `[].type.category.id` | string |
| `[].type.category.name` | string |
| `[].type.severity` | string |
| `[].affected_asset_count` | number |

## Examples

### 200 · OK

```bash
curl 'https://api.deepinfo.com/v1/easm/issues/stats/type' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Accept: application/json'
```

`Content-Type: application/json` · `deepinfo-request-id: 00000000-0000-4000-8000-0000356d0001`

```json
[
  {
    "severity": "Critical",
    "type": {
      "id": "000000000000000e16fe0001",
      "name": "Expired SSL certificate",
      "category": {
        "id": "000000000000000e1c170001",
        "name": "SSL/TLS"
      },
      "severity": "Critical"
    },
    "affected_asset_count": 13
  },
  {
    "severity": "High",
    "type": {
      "id": "000000000000000e16fe0002",
      "name": "Missing DMARC record",
      "category": {
        "id": "000000000000000e1c170002",
        "name": "DNS"
      },
      "severity": "High"
    },
    "affected_asset_count": 14
  }
]
```
