# 人员响应

由 [`GET /email-finder`](/api/finder#email-finder)、[`GET /enrich`](/api/finder#email-enrichment)、[`GET /linkedin`](/api/finder#linkedin-finder) 和 [`GET /author-finder`](/api/finder#author-finder) 在 `data` 中返回，并由 [`GET /domain-search`](/api/finder#domain-search) 在 `data.emails[]` 中返回。使用 `full=true` 时，LinkedIn 查找器会在 `data` 中返回人员数组。

## 字段

当查找或数据丰富请求未找到地址时，`data.email` 为 `null`，其他字段为 `null`、`false` 或 `0`。域名搜索则返回空的 `data.emails` 数组。

| 字段                   | 类型            | 返回方           | 说明                                                                                                                                                                                               |
| ----------------------- | --------------- | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `email`                 | string 或 null  | 全部                   | 邮箱地址。                                                                                                                                                                                        |
| `first_name`            | string 或 null  | 全部                   | 名字。                                                                                                                                                                                               |
| `last_name`             | string 或 null  | 全部                   | 姓氏。                                                                                                                                                                                                |
| `full_name`             | string 或 null  | 全部                   | 名字和姓氏。                                                                                                                                                                                      |
| `gender`                | string 或 null  | 全部                   | `male` 或 `female`。                                                                                                                                                                                       |
| `country`               | string 或 null  | 全部                   | 2 位字母国家代码（ISO 3166-1 alpha-2）。                                                                                                                                                             |
| `position`              | string 或 null  | 全部                   | 职位。                                                                                                                                                                                                |
| `department`            | string 或 null  | 全部                   | 请参阅[部门](#departments)。未知时为空或 `null`。                                                                                                                                            |
| `type`                  | string 或 null  | 全部                   | `personal` 或 `generic`。请参阅[邮箱类型](#email-types)。                                                                                                                                                 |
| `twitter`               | string 或 null  | 全部                   | Twitter（X）个人资料 URL。                                                                                                                                                                                  |
| `linkedin`              | string 或 null  | 全部                   | LinkedIn 个人资料 URL。                                                                                                                                                                                     |
| `phone_number`          | boolean         | 全部                   | 当 Tomba 有此人的电话号码时为 `true`。                                                                                                                                                      |
| `score`                 | integer         | 全部                   | 该地址正确的置信度，范围为 0 到 100，依据其最近一次验证结果以及列出该地址的公开来源数量。                                                                |
| `verification.status`   | string 或 null  | 全部                   | Tomba 对该地址最近一次检查的结果：`valid`、`accept_all`、`invalid` 或 `unknown`，含义见[状态值](/attributes/verifier#status-values)。如果 Tomba 尚未检查过该地址，则为 `null`。 |
| `verification.date`     | string 或 null  | 全部                   | Tomba 最近一次检查该地址的时间，采用 RFC 3339 格式。                                                                                                                                                  |
| `sources`               | array           | 全部                   | 出现该地址的公开网页。请参阅[来源响应](/attributes/sources)。                                                                                                                      |
| `phone_data`            | array           | 除作者查找器外的全部 | 电话号码，在您设置 `enrich_mobile=true` 时返回。请参阅[电话响应](/attributes/phone)。                                                                                                                |
| `seniority`             | string 或 null  | 域名搜索         | `junior`、`senior` 或 `executive`。                                                                                                                                                                       |
| `website_url`           | string 或 null  | 查找器、数据丰富   | 公司域名。                                                                                                                                                                                           |
| `company`               | string 或 null  | 查找器、数据丰富   | 公司名称。                                                                                                                                                                                             |
| `pattern`               | string 或 null  | 查找器、数据丰富   | 该地址的格式，例如 `{first}.{last}`。请参阅[模式](/attributes/format#patterns)。                                                                                                             |
| `accept_all`            | boolean 或 null | 查找器、数据丰富   | 当该域名接收发往任意地址的邮件（catch-all）时为 `true`。                                                                                                                                          |
| `disposable`, `webmail` | boolean         | 邮箱数据丰富      | 该地址的域名是否属于一次性邮箱或网页邮箱服务商。                                                                                                                                         |
| `info`                  | object          | 作者查找器         | 文章及其作者候选人。请参阅[作者查找器](#author-finder)。                                                                                                                               |

## 取值

### 邮箱类型

| `type`     | 含义                                                           |
| ---------- | ----------------------------------------------------------------- |
| `personal` | 该地址属于某一个人，例如 `jane.doe@stripe.com`。 |
| `generic`  | 团队共用的角色地址，例如 `support@stripe.com`。  |

### 部门

`accounting`, `administrative`, `communication`, `diversity`, `education`, `engineering`, `executive`, `facilities`, `finance`, `healthcare`, `hr`, `it`, `legal`, `management`, `marketing`, `operations`, `pr`, `sales`, `security`, `software`, `support`, `warehouse`.

域名搜索的 `department` 参数接受相同的取值。

## 作者查找器

[`GET /author-finder`](/api/finder#author-finder) 为文章作者返回上述字段，另外还返回 `data.info`，其中包含文章以及在页面上找到的每个作者候选人。只要页面能够读取，即使未找到地址也会返回 `info`。

| 字段                 | 类型   | 说明                                               |
| --------------------- | ------ | --------------------------------------------------------- |
| `info.url`            | string | 文章 URL。                                          |
| `info.title`          | string | 文章标题。                                            |
| `info.description`    | string | 文章描述。                                      |
| `info.og_image`       | string | 文章 Open Graph 图片的 URL。                    |
| `info.article_domain` | string | 托管该文章的域名。                            |
| `info.publisher_name` | string | 发布媒体名称。                                  |
| `info.publish_date`   | string | 发布日期，与页面上显示的一致。              |
| `info.candidates`     | array  | 页面上被署名为作者的人员，最佳匹配排在最前。 |

每个候选人都有以下字段。除姓名字段、`name_confidence`、`score` 和 `count` 外，其他字段为空时会被省略。

| 字段                                                                                      | 类型             | 说明                                                                          |
| ------------------------------------------------------------------------------------------ | ---------------- | ------------------------------------------------------------------------------------ |
| `full_name`, `first_name`, `last_name`                                                     | string           | 候选人的姓名。                                                                |
| `email`                                                                                    | string           | 页面上为该候选人公布的地址。                                     |
| `job_title`                                                                                | string           | 页面上的职位。                                                             |
| `bio`                                                                                      | string           | 页面上的个人简介。                                                             |
| `image`                                                                                    | string           | 候选人照片的 URL。                                                      |
| `gravatar`                                                                                 | boolean          | 当 `image` 来自 Gravatar 时为 `true`。                                             |
| `author_url`                                                                               | string           | 候选人在该发布媒体上的作者页面。                                      |
| `website`                                                                                  | string           | 候选人自己的网站。                                                         |
| `linkedin`, `twitter`, `facebook`, `github`, `instagram`, `youtube`, `mastodon`, `bluesky` | string           | 在页面上找到的候选人社交媒体主页的账号名。                               |
| `sources`                                                                                  | 由 string 组成的 array | 姓名在页面上的出现位置，例如 `json-ld`、`meta-author` 或 `byline`。 |
| `name_confidence`                                                                          | number           | 该文本为人名的置信度，范围为 0 到 1。                             |
| `score`                                                                                    | number           | 排名分数，范围为 0 到 1。候选人按此分数排序。                              |
| `count`                                                                                    | integer          | 该姓名在页面上出现的次数。                                         |

## 示例

`GET /email-finder?domain=stripe.com&first_name=Jane&last_name=Doe`:

```json
{
    "data": {
        "email": "jane.doe@stripe.com",
        "first_name": "Jane",
        "last_name": "Doe",
        "full_name": "Jane Doe",
        "website_url": "stripe.com",
        "company": "Stripe",
        "pattern": "{first}.{last}",
        "department": "engineering",
        "type": "personal",
        "position": "Software Engineer",
        "country": "US",
        "gender": "female",
        "twitter": null,
        "linkedin": null,
        "score": 100,
        "accept_all": false,
        "phone_number": false,
        "verification": {
            "date": "2025-01-15T10:32:00+01:00",
            "status": "valid"
        },
        "sources": [
            {
                "uri": "https://stripe.com/blog/engineering",
                "website_url": "stripe.com",
                "extracted_on": "2024-06-01T09:14:07+01:00",
                "last_seen_on": "2025-01-10T17:02:44+01:00",
                "still_on_page": true
            }
        ],
        "phone_data": []
    }
}
```
