# 兼容 Clearbit 的数据丰富

由 [`GET /people/find`](/api/enrichment#person-api)、[`GET /companies/find`](/api/enrichment#company-api) 和 [`GET /combined/find`](/api/enrichment#combined-api) 返回。这些端点使用 Clearbit 的字段名称；[Clearbit 迁移指南](/migration/clearbit/introduction)列出了它们的映射。如需 Tomba 自己的格式，请使用[邮箱数据丰富](/attributes/person)。

没有匹配结果时，这些端点返回状态 `200`，并以 `errors` 对象代替 `data`：Tomba 没有记录时类型为 `not_found`，地址或域名属于一次性邮箱或网页邮箱时类型为 `params_invalid`。读取 `data` 之前，请先检查是否存在 `errors`；请参阅[错误](/error-handling#error-format)。

## 人员字段

`GET /people/find` 在 `data` 中返回以下字段，并在 `meta.email` 中返回您查询的地址。

| 字段                                                | 类型           | 说明                                                                                                      |
| ---------------------------------------------------- | -------------- | ---------------------------------------------------------------------------------------------------------------- |
| `email`                                              | string         | 邮箱地址。                                                                                               |
| `name.fullName`, `name.givenName`, `name.familyName` | string         | 全名、名字和姓氏。                                                                                      |
| `gender`                                             | string 或 null | `male` 或 `female`。                                                                                              |
| `location`                                           | string 或 null | 2 位字母国家代码。Clearbit 在此处返回完整的位置。                                                  |
| `geo.country`                                        | string         | 国家名称，例如 `United States`。                                                                           |
| `geo.countryCode`                                    | string 或 null | 2 位字母国家代码。                                                                                         |
| `employment.domain`                                  | string         | 雇主的域名。                                                                                               |
| `employment.name`                                    | string 或 null | 雇主名称。                                                                                                 |
| `employment.title`                                   | string 或 null | 职位。                                                                                                       |
| `employment.role`                                    | string 或 null | 部门，例如 `engineering`。请参阅[部门](/attributes/person#departments)。                            |
| `linkedin.handle`                                    | string 或 null | LinkedIn 个人资料 URL。Clearbit 在此处返回账号名。                                                            |
| `twitter.handle`                                     | string 或 null | Twitter（X）个人资料 URL。Clearbit 在此处返回账号名。                                                         |
| `phone`                                              | boolean        | 当 Tomba 有此人的电话号码时为 `true`。                                                             |
| `verification.status`, `verification.date`           | string 或 null | Tomba 对该地址的最近一次检查结果，与[人员响应](/attributes/person#fields)中的相同。不是 Clearbit 字段。 |
| `indexedAt`                                          | string         | Tomba 最后一次更新该记录的时间，采用 RFC 3339 格式。                                                          |

始终为 `null`：`timeZone`、`utcOffset`、`bio`、`site`、`avatar`、`fuzzy`、`emailProvider`、`activeAt`、`inactiveAt`、`geo.city`、`geo.state`、`geo.stateCode`、`geo.lat`、`geo.lng`、`employment.subRole`、`employment.seniority`、`facebook.handle`、所有 `github` 字段、所有 `gravatar` 字段，以及除 `handle` 外的所有 `twitter` 字段。

## 公司字段

`GET /companies/find` 在 `data` 中返回以下字段，并在 `meta.domain` 中返回您查询的域名。

| 字段                                                                    | 类型                          | 说明                                                                                                                                  |
| ------------------------------------------------------------------------ | ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `name`                                                                   | string 或 null                | 公司名称。`legalName` 的值与之相同。                                                                                                |
| `domain`                                                                 | string                        | 域名。                                                                                                                                  |
| `description`                                                            | string 或 null                | 公司简介。                                                                                                            |
| `foundedYear`                                                            | string 或 null                | 成立年份。                                                                                                                                |
| `type`                                                                   | string 或 null                | 公司类型，形式与[公司响应](/attributes/company#values)中的 `company_type` 相同。                                      |
| `tags`                                                                   | 由 string 组成的 array 或 null      | 描述该公司的关键词。                                                                                                          |
| `location`                                                               | string 或 null                | 总部所在国家的 2 位字母国家代码。                                                                                                 |
| `geo.country`                                                            | string                        | 国家名称。                                                                                                                                |
| `geo.countryCode`                                                        | string 或 null                | 2 位字母国家代码。                                                                                                                     |
| `geo.city`, `geo.state`, `geo.postalCode`                                | string 或 null                | 城市、州或地区以及邮政编码。`geo.stateCode` 重复 `geo.state` 的值。                                                                 |
| `geo.streetAddress`                                                      | string 或 null                | 街道地址。`geo.streetNumber` 和 `geo.streetName` 重复该值。                                                                           |
| `site.phoneNumbers`                                                      | 由 string 组成的 array 或 null      | 公司的电话号码（如果 Tomba 有）。                                                                                                |
| `site.emailAddresses`                                                    | 由 string 组成的 array 或 null      | 该域名下的通用（角色）地址。                                                                                                      |
| `category.sicCode`, `category.sic4Codes`                                 | string 或 null，array 或 null | SIC 代码。请参阅 [SIC 代码](/attributes/sic)。                                                                                                 |
| `category.naicsCode`, `category.naics6Codes`, `category.naics6Codes2022` | string 或 null，array 或 null | NAICS 代码。请参阅 [NAICS 代码](/attributes/naics)。                                                                                           |
| `metrics.employees`                                                      | string 或 null                | 员工人数范围，与 `company_size` 相同。                                                                                                  |
| `metrics.annualRevenue`                                                  | string 或 null                | 预估年营收范围。`metrics.estimatedAnnualRevenue` 的值与之相同。                                                         |
| `metrics.trafficRank`                                                    | string 或 null                | 该域名在网络上的热度排名，以字符串形式表示的数字。数值越小越热门。Clearbit 在此处返回 `very_high` 之类的标签。 |
| `facebook.handle`, `linkedin.handle`, `twitter.handle`                   | string 或 null                | 公司社交媒体主页的账号名。                                                                                                           |
| `emailProvider`                                                          | string 或 null                | 根据域名的 MX 记录检测到的邮件服务商，例如 `Google`。                                                                       |
| `tech`                                                                   | 由 string 组成的 array 或 null      | 在网站上检测到的技术名称。请参阅[技术响应](/attributes/technology)。                                        |
| `techCategories`                                                         | 由 string 组成的 array 或 null      | 这些技术所属的类别。                                                                                                            |
| `whois`                                                                  | object                        | 域名注册信息，键名采用 snake_case。请参阅 [WHOIS](/attributes/company#whois)。不是 Clearbit 字段。                                     |
| `indexedAt`                                                              | string                        | Tomba 最后一次更新该记录的时间，采用 RFC 3339 格式。                                                                                      |

始终为 `null`：`domainAliases`、`timeZone`、`utcOffset`、`logo`、`ticker`、`identifiers.usEIN`、`category.sector`、`category.industryGroup`、`category.industry`、`category.subIndustry`、`geo.subPremise`、`geo.lat`、`geo.lng`、`facebook.likes`、除 `handle` 外的所有 `twitter` 字段、`metrics.alexaUsRank`、`metrics.alexaGlobalRank`、`metrics.marketCap`、`metrics.raised`、`metrics.fiscalYearEnd`、`parent.domain` 和 `ultimateParent.domain`。如需行业信息，请使用[域名搜索](/attributes/company)返回的 `industries`；如需徽标，请使用 [Logo API](/logo-api)。

## 组合字段

`GET /combined/find` 在 `data.person` 中返回人员字段，在 `data.company` 中返回该地址所属域名的公司字段，并在 `meta.email` 中返回该地址。如果 Tomba 没有该域名的记录，则每个 `company` 字段均为 `null`，且 `meta.email` 为空。

## 示例

`GET /people/find?email=jane.doe@stripe.com`:

```json
{
    "data": {
        "name": {
            "fullName": "Jane Doe",
            "givenName": "Jane",
            "familyName": "Doe"
        },
        "email": "jane.doe@stripe.com",
        "location": "US",
        "gender": "female",
        "timeZone": null,
        "utcOffset": null,
        "geo": {
            "city": null,
            "state": null,
            "stateCode": null,
            "country": "United States",
            "countryCode": "US",
            "lat": null,
            "lng": null
        },
        "bio": null,
        "site": null,
        "avatar": null,
        "employment": {
            "domain": "stripe.com",
            "name": "Stripe",
            "title": "Software Engineer",
            "role": "engineering",
            "subRole": null,
            "seniority": null
        },
        "facebook": { "handle": null },
        "github": {
            "handle": null,
            "id": null,
            "avatar": null,
            "company": null,
            "blog": null,
            "followers": null,
            "following": null
        },
        "twitter": {
            "handle": null,
            "id": null,
            "bio": null,
            "followers": null,
            "following": null,
            "statuses": null,
            "favorites": null,
            "location": null,
            "site": null,
            "avatar": null
        },
        "linkedin": { "handle": null },
        "gravatar": {
            "handle": null,
            "urls": null,
            "avatar": null,
            "avatars": null
        },
        "verification": {
            "date": "2025-01-15T10:32:00+01:00",
            "status": "valid"
        },
        "phone": false,
        "fuzzy": null,
        "emailProvider": null,
        "indexedAt": "2025-04-03T13:23:24+02:00",
        "activeAt": null,
        "inactiveAt": null
    },
    "meta": { "email": "jane.doe@stripe.com" }
}
```

`GET /companies/find?domain=stripe.com`:

```json
{
    "data": {
        "name": "Stripe",
        "legalName": "Stripe",
        "domain": "stripe.com",
        "domainAliases": null,
        "site": {
            "phoneNumbers": ["+1 415-555-0100"],
            "emailAddresses": ["support@stripe.com"]
        },
        "category": {
            "sector": null,
            "industryGroup": null,
            "industry": null,
            "subIndustry": null,
            "sicCode": null,
            "sic4Codes": ["7372"],
            "naicsCode": null,
            "naics6Codes": ["522320"],
            "naics6Codes2022": ["522320"]
        },
        "tags": ["payments", "billing", "fintech"],
        "description": "Stripe is a financial infrastructure platform for businesses.",
        "foundedYear": "2010",
        "location": "US",
        "timeZone": null,
        "utcOffset": null,
        "geo": {
            "streetNumber": "354 Oyster Point Blvd",
            "streetName": "354 Oyster Point Blvd",
            "subPremise": null,
            "streetAddress": "354 Oyster Point Blvd",
            "city": "South San Francisco",
            "postalCode": "94080",
            "state": "California",
            "stateCode": "California",
            "country": "United States",
            "countryCode": "US",
            "lat": null,
            "lng": null
        },
        "logo": null,
        "facebook": { "handle": "StripeHQ", "likes": null },
        "linkedin": { "handle": "stripe" },
        "twitter": {
            "handle": "stripe",
            "id": null,
            "bio": null,
            "followers": null,
            "following": null,
            "location": null,
            "site": null,
            "avatar": null
        },
        "whois": {
            "registrar_name": "SafeNames Ltd.",
            "created_date": "1995-09-12T04:00:00Z",
            "referral_url": "http://www.safenames.net"
        },
        "emailProvider": "Google",
        "type": "private",
        "ticker": null,
        "identifiers": { "usEIN": null },
        "metrics": {
            "alexaUsRank": null,
            "alexaGlobalRank": null,
            "trafficRank": "310",
            "employees": "5K-10K",
            "marketCap": null,
            "raised": null,
            "annualRevenue": "$1B-$10B",
            "estimatedAnnualRevenue": "$1B-$10B",
            "fiscalYearEnd": null
        },
        "indexedAt": "2025-04-03T13:23:24+02:00",
        "tech": ["Intercom", "Stripe"],
        "techCategories": ["Live chat", "CRM", "Payment processors"],
        "parent": { "domain": null },
        "ultimateParent": { "domain": null }
    },
    "meta": { "domain": "stripe.com" }
}
```
