# メール件数レスポンス

[`GET /email-count`](/api/finder#email-count) が `data` に返します。件数は、Tomba がそのドメインについて持っているアドレスが対象です。`type=personal` または `type=generic` を指定すると、`total` と部署別・役職レベル別の件数にはその種類のアドレスのみが含まれます。

## フィールド

| フィールド                                                         | 型    | 説明                                                                                                                          |
| ------------------------------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| `total`                                                       | integer | リクエストした `type` のアドレス数。                                                                                         |
| `personal_emails`                                             | integer | 個人アドレスの数。                                                                                                        |
| `generic_emails`                                              | integer | 汎用（ロール）アドレスの数。                                                                                                  |
| `department.<name>`                                           | integer | 部署ごとのアドレス数。すべての[部署](/attributes/person#departments)が含まれ、アドレスがない部署は `0` になります。 |
| `seniority.junior`, `seniority.senior`, `seniority.executive` | integer | 役職レベルごとのアドレス数。                                                                                         |

レスポンスには、トップレベルに `website_id`（Tomba 内部のドメイン ID）も含まれます。

不明なドメイン、Web メールのドメイン、使い捨てのドメインでは、すべての件数が `0` になります。

## 例

`GET /email-count?domain=stripe.com`:

```json
{
    "data": {
        "total": 1250,
        "personal_emails": 1100,
        "generic_emails": 150,
        "department": {
            "engineering": 410,
            "finance": 35,
            "hr": 22,
            "it": 18,
            "marketing": 64,
            "operations": 51,
            "management": 88,
            "sales": 120,
            "legal": 12,
            "support": 47,
            "communication": 9,
            "executive": 15,
            "accounting": 6,
            "administrative": 4,
            "diversity": 0,
            "facilities": 2,
            "pr": 5,
            "security": 14,
            "software": 30,
            "warehouse": 0,
            "healthcare": 0,
            "education": 1
        },
        "seniority": {
            "junior": 180,
            "senior": 420,
            "executive": 37
        }
    },
    "website_id": 1024
}
```
