# 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` で、`data` の代わりに `errors` オブジェクトを返します。Tomba にレコードがない場合のタイプは `not_found`、使い捨てまたは Web メールのアドレスやドメインの場合は `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 | [人物レスポンス](/attributes/person#fields)と同じく、Tomba がそのアドレスを最後にチェックした結果。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                | Web 上でのドメインの人気順位（文字列に入った数値）。値が小さいほど人気があります。Clearbit ではここに `very_high` などのラベルが返されます。 |
| `facebook.handle`, `linkedin.handle`, `twitter.handle`                   | string または null                | 企業のプロフィールのハンドル。                                                                                                           |
| `emailProvider`                                                          | string または null                | ドメインの MX レコードから検出したメールプロバイダー（`Google` など）。                                                                       |
| `tech`                                                                   | string の array または null      | Web サイトで検出したテクノロジーの名前。[テクノロジーレスポンス](/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) を使用してください。

## Combined のフィールド

`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" }
}
```
