# Asset Type Stats Timeline

GET /easm/assets/stats/type-timeline: Time series of your asset counts per type.

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

Last updated: 2026-09-27

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

Time series of your asset counts per type.

## Authentication

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

## Query Parameters

| Parameter | Required | Description | Example |
|---|---|---|---|
| `interval` | Optional | One of: `daily`, `weekly`, `monthly`. | `weekly` |

## Response Fields

An array of objects:

| Field | Type | Description |
|---|---|---|
| `date` | string | date |
| `types` | array of object |  |

## 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 |
|---|---|
| `[].date` | string |
| `[].types` | array<object> |
| `[].types[].name` | string |
| `[].types[].count` | number |

## Examples

### 200 · OK

```bash
curl 'https://api.deepinfo.com/v1/easm/assets/stats/type-timeline?interval=weekly' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Accept: application/json'
```

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

```json
[
  {
    "date": "2025-07-16",
    "types": [
      {
        "name": "domain",
        "count": 2
      },
      {
        "name": "subdomain",
        "count": 3
      }
    ]
  },
  {
    "date": "2025-07-09",
    "types": [
      {
        "name": "domain",
        "count": 5
      },
      {
        "name": "subdomain",
        "count": 6
      }
    ]
  }
]
```

### 400 · Invalid Parameter (invalid interval=invalid_value)

```bash
curl 'https://api.deepinfo.com/v1/easm/assets/stats/type-timeline?interval=invalid_value' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Accept: application/json'
```

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

```json
{
  "code": 10400,
  "parameters": [
    {
      "param": "interval",
      "details": [
        "Select a valid choice."
      ]
    }
  ],
  "solution": "https://docs.deepinfo.com/reference/"
}
```
