# Apify Actor

每个 Actor 都会针对输入列表中的每一项调用一个 Tomba 端点，并将结果写入该运行的默认数据集。如何启动运行以及运行的费用，请参阅 [Apify](/integrations/apify/introduction)。

## Actor 的运行方式

这些 Actor 使用 Tomba 自己的凭据调用 Tomba，因此任何输入都不需要 Tomba API 密钥，您也不需要 Tomba 账户。

- **并行请求**：最多可同时运行 `maxConcurrency` 个请求，请求之间不设间隔。当 Tomba 的[速率限制](/rate-limits)返回 `429` 时，该请求会被重试。
- **重试**：因 `429`、`5xx` 状态、网络错误或超时而失败的请求最多重试 `maxRetries` 次，采用指数退避，从 1 秒开始，上限为 30 秒。如有 `Retry-After` 响应头，则改由它决定等待时间。其他错误不会重试；该输入会生成一个带有 `error` 字段的条目。
- **缓存**：成功的响应会存储在您 Apify 账户中的命名键值存储 `tomba-cache-<actorId>` 中（每个 Actor 各一个），并在 `cacheTtlHours` 设定的时长内供相同的请求（相同的端点和参数）复用。缓存的结果不收费，并带有 `cached: true`。如果无法打开该存储，运行会继续，但只在本次运行内缓存结果。
- **恢复**：已处理的输入会记录在该运行默认键值存储的 `TOMBA_STATE` 记录中。当 Apify 迁移或重启该运行时，会跳过这些输入。
- **Max cost per run**：每次请求之前，Actor 都会检查该运行的 **Max cost per run** 是否还能容纳该请求的费用。如果不能，Actor 不再发起新请求，等正在运行的请求完成后退出。尚未处理到的输入不会生成条目。
- **输入清理**：域名会被去除首尾空白、转为小写，并去掉 `http://`、`https://`、`www.` 以及任何路径。邮箱地址会被去除首尾空白并转为小写。重复的输入会在发出任何请求之前被移除。
- **条目即时写入**：每个输入的条目会在其请求完成后立即写入数据集，因此中止的运行会保留已经生成的条目。

### 运行选项

每个 Actor 都接受以下输入，位于输入表单的 **Run options** 下。

| 输入            | 类型              | 默认值 | 说明                                                                                               |
| ---------------- | ----------------- | ------- | --------------------------------------------------------------------------------------------------------- |
| `maxConcurrency` | integer，1 到 50  | `10`    | 同时运行的请求数。                                                                       |
| `maxRetries`     | integer，0 到 10  | `3`     | 遇到 `429`、`5xx` 状态、网络错误或超时后的重试次数。                                     |
| `useCache`       | boolean           | `true`  | 复用缓存的结果。设为 `false` 时，每个请求都会发送到 Tomba。                                               |
| `cacheTtlHours`  | integer，0 到 720 | `24`    | 缓存结果的有效时长。设为 `0` 会关闭跨运行缓存；结果仍会在单次运行内复用。 |

### 收费

Apify 会向您的 Apify 账户收取 `tomba-request` 事件的费用；事件价格见各 Actor 的 Store 页面。

- 当 Tomba 返回的 JSON 响应包含非空的 `data` 且没有 `errors` 对象时，请求会被收费。否定的回答也是一种结果，因此无法送达的验证结果或没有邮箱地址的域名同样会被收费。[积分消耗](/usage-and-quotas#credit-costs)中的“收费条件”列不适用于这些 Actor。
- 收费的请求按[积分消耗](/usage-and-quotas#credit-costs)中的 Tomba 积分计费，每个积分对应 1 个事件，电话数据的额外积分也包括在内。技术查询对每个包含技术信息的域名收取 1 个事件，尽管该端点本身不消耗积分。
- 错误状态、数据为空或为 `null` 的响应、带有 `errors` 对象的响应、非 JSON 的响应以及缓存的结果均不收费。

每个条目都有 `charged` 和 `cached`。如果 Actor 的请求可能消耗多于 1 个积分，其条目还会带有 `chargedCredits`，即该条目收取的事件数；返回电话数据的 Actor 还会添加 `phoneNumbers`，即该条目中的电话号码数量。

## 实时 API

每个 Actor 还可以在 Apify Standby 模式下运行，这是一个在响应中而非数据集中返回条目的 HTTP 服务器。在 Apify 中该 Actor 的 **API** 选项卡上找到其 Standby URL，并发送您的 Apify API 令牌。

```bash
curl "https://<standby-url>/?email=jane.doe@stripe.com" \
  -H "Authorization: Bearer $APIFY_TOKEN"

curl -X POST "https://<standby-url>/" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"emails": ["jane.doe@stripe.com", "john.doe@shopify.com"]}'
```

- 带查询参数的 `GET /` 会根据这些参数构建输入；每个 Actor 的参数列在其对应的章节中。列表参数可以重复（`?domain=stripe.com&domain=shopify.com`），也可以用逗号分隔（`?domains=stripe.com,shopify.com`）。布尔参数接受 `true`、`false`、`1`、`0`、`yes` 或 `no`。
- `POST /` 接受与运行相同的 JSON 输入，最大 1 MB。
- 不带查询参数的 `GET /` 返回 `{"status": "ready", "usage": "…"}`。
- 响应为 `{"items": [...]}`，其中的条目与运行写入数据集的条目相同。收费方式与运行相同。

| 状态 | 出现条件                                                                                     |
| ------ | ---------------------------------------------------------------------------------------- |
| `200`  | 请求已处理。没有结果的输入会成为带有 `error` 字段的条目。      |
| `400`  | 查询参数、JSON 请求体或输入无效。`error` 字段会指明是哪一项。 |
| `402`  | Standby 运行已达到其最高收费额。之后的每个请求都会收到此状态。        |
| `404`  | 路径不是 `/`。                                                                      |
| `405`  | 方法不是 `GET` 或 `POST`。                                                        |

运行选项无法按请求设置：每个请求都使用[运行选项](#run-options)中的默认值。Standby 请求不使用恢复状态。

## 域名搜索

[`tomba-io/domain-search`](https://apify.com/tomba-io/domain-search) 针对每个域名或公司名称调用 [`GET /v1/domain-search`](/api/finder#domain-search)，每次获取一页结果。多个搜索并行运行；同一搜索的各页从 `page` 开始依次请求，直到 Actor 获得 `maxEmailsPerDomain` 个地址、某一页返回的地址少于 `limit` 个，或到达最后一页为止。

| 输入                | 类型                           | 必填                 | 默认值    | 说明                                                                                                                                                  |
| -------------------- | ------------------------------ | ------------------------ | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `domains`            | 由 string 组成的 array               | `domains` 或 `companies` | —          | 要搜索的域名，例如 `stripe.com`。                                                                                                                     |
| `companies`          | 由 string 组成的 array               | `domains` 或 `companies` | —          | 要搜索的公司名称，例如 `Stripe`。Tomba 会将每个名称解析为域名。                                                                             |
| `maxEmailsPerDomain` | integer，1 到 100              | 否                       | `10`       | 每个域名或公司名称要收集的地址数。                                                                                                             |
| `limit`              | string：`10`、`20` 或 `50`    | 否                       | `10`       | 每页的地址数。每页按其 `limit` 收费，因此当 `limit` 高于 `maxEmailsPerDomain` 时，您需要为 Actor 丢弃的地址付费。                         |
| `page`               | integer，1 或更大             | 否                       | `1`        | 要请求的第一页。                                                                                                                                       |
| `department`         | string                         | 否                       | —          | 只返回某一部门的人员，例如 `engineering` 或 `sales`。输入表单中列出了可接受的值。                                            |
| `country`            | string                         | 否                       | —          | 2 个字母，例如 `US` 或 `gb`；小写会转换为大写。只返回该国家/地区的人员。                                                 |
| `enrichMobile`       | boolean                        | 否                       | `false`    | 在 `emails[].phone_data` 中返回每个人的电话号码。带有电话数据的地址会额外收费；请参阅[积分消耗](/usage-and-quotas#credit-costs)。       |
| `webhookUrl`         | string                         | 否                       | —          | 以 `http://` 或 `https://` 开头的 URL，在每次请求分页时作为 `webhook_url` 发送给 Tomba；请参阅 [Webhook](/webhook)。缓存的结果不会再次发送。 |
| `includeCompanyInfo` | boolean                        | 否                       | `true`     | 在条目中包含 `organization`。                                                                                                                          |
| `outputFormat`       | string：`detailed` 或 `simple` | 否                       | `detailed` | 保存在 `SUMMARY` 记录中。它不会改变输出。                                                                                                 |

每个域名或公司名称会生成一个条目，包含输入（`domain` 或 `company`）、`organization`（请参阅[公司响应](/attributes/company)）、`emails`（请参阅[人员响应](/attributes/person)）、来自最后一页的 `meta`、`pages`、`chargedRequests`（收费的页数）、`chargedCredits`、`phoneNumbers`、`charged` 和 `cached`（所有页都来自缓存时为 `true`）。对于公司名称，如果响应中报告了 Tomba 解析出的 `domain`，条目中也会包含它。如果第一页没有返回结果或失败，条目中包含输入和 `error` 字段；如果是之后的某一页出现这种情况，条目会保留已收集的地址。批量运行还会将输入数量、请求数量和设置作为 `SUMMARY` 记录保存在默认键值存储中。

实时 API 参数：`domain`、`domains`、`company`、`companies`、`maxEmailsPerDomain`、`includeCompanyInfo`、`page`、`limit`、`department`、`country`、`enrichMobile`、`webhookUrl`。

## 邮箱查找器

[`tomba-io/email-finder`](https://apify.com/tomba-io/email-finder) 针对每个请求对象调用一次 [`GET /v1/email-finder`](/api/finder#email-finder)。

| 输入          | 类型                         | 必填 | 默认值 | 说明                                                                                                                                  |
| -------------- | ---------------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `requests`     | 由 object 组成的 array，1 到 1,000 个 | 是      | —       | 每个对象包含 `domain` 或 `company`（公司名称），以及 `fullName`，或同时包含 `firstName` 和 `lastName`。                                   |
| `maxResults`   | integer，1 到 1,000          | 否       | `50`    | 要处理的请求数。超出此数量的请求会被跳过。                                                                                 |
| `enrichMobile` | boolean                      | 否       | `false` | 在 `phone_data` 中返回该人员的电话号码。带有电话数据的结果会额外收费；请参阅[积分消耗](/usage-and-quotas#credit-costs)。 |
| `webhookUrl`   | string                       | 否       | —       | 以 `http://` 或 `https://` 开头的 URL，作为 `webhook_url` 发送给 Tomba；请参阅 [Webhook](/webhook)。                                         |

每个请求会生成一个条目：响应的 `data` 字段（请参阅[人员响应](/attributes/person)），加上以 `domain`、`firstName`、`lastName`、`fullName` 和 `inputCompany`（即输入的 `company`，因为 `company` 是响应字段）表示的输入、值为 `tomba_email_finder` 的 `source`、`phoneNumbers`、`chargedCredits`、`charged` 和 `cached`。如果未找到地址或请求失败，条目中包含输入字段和 `error` 字段，而不是数据字段。缺少必填字段的请求不会发送给 Tomba，并会生成一个带有 `error` 字段的条目。

实时 API 参数：`domain`、`company`、`firstName` 或 `first_name`、`lastName` 或 `last_name`、`fullName` 或 `full_name`、`enrichMobile`、`webhookUrl`、`maxResults`。一个 `GET` 请求执行一次搜索。

## 作者查找器

[`tomba-io/author-finder`](https://apify.com/tomba-io/author-finder) 针对每个 URL 调用一次 [`GET /v1/author-finder`](/api/finder#author-finder)。

| 输入        | 类型                | 必填 | 默认值 | 说明                                                                                          |
| ------------ | ------------------- | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `urls`       | 由 string 组成的 array    | 是      | —       | 文章 URL。                                                                                        |
| `maxResults` | integer，1 到 1,000 | 否       | `50`    | 要处理的 URL 数量。超出此数量的 URL 会被跳过。                                                 |
| `webhookUrl` | string              | 否       | —       | 以 `http://` 或 `https://` 开头的 URL，作为 `webhook_url` 发送给 Tomba；请参阅 [Webhook](/webhook)。 |

每个 URL 会生成一个条目。找到作者时，条目为响应的 `data` 对象（请参阅[作者查找器](/attributes/person#author-finder)），加上 `input_url`、值为 `tomba_author_finder` 的 `source`、`chargedCredits`、`charged` 和 `cached`。如果未找到作者或请求失败，条目中包含 `input_url`、值为 `null` 的 `email` 和 `error` 字段。

实时 API 参数：`url`、`urls`、`webhookUrl`、`maxResults`。

## 邮箱数据丰富

[`tomba-io/email-enrichment`](https://apify.com/tomba-io/email-enrichment) 针对每个邮箱地址调用一次 [`GET /v1/enrich`](/api/finder#email-enrichment)。

| 输入          | 类型                         | 必填 | 默认值 | 说明                                                                                                                                  |
| -------------- | ---------------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `emails`       | 由 string 组成的 array，1 到 1,000 个 | 是      | —       | 要丰富数据的邮箱地址。                                                                                                                   |
| `maxResults`   | integer，1 到 1,000          | 否       | `50`    | 要处理的地址数。超出此数量的地址会被跳过。                                                                               |
| `enrichMobile` | boolean                      | 否       | `false` | 在 `phone_data` 中返回该人员的电话号码。带有电话数据的结果会额外收费；请参阅[积分消耗](/usage-and-quotas#credit-costs)。 |
| `webhookUrl`   | string                       | 否       | —       | 以 `http://` 或 `https://` 开头的 URL，作为 `webhook_url` 发送给 Tomba；请参阅 [Webhook](/webhook)。                                         |

每个地址会生成一个条目：响应的 `data` 字段（请参阅[人员响应](/attributes/person)），加上 `email`、值为 `tomba_email_enrichment` 的 `source`、`phoneNumbers`、`chargedCredits`、`charged` 和 `cached`。如果未找到人员或请求失败，条目中包含 `email`、`source` 和 `error` 字段，而不是数据字段。

实时 API 参数：`email`、`emails`、`enrichMobile`、`webhookUrl`、`maxResults`。

## 邮箱验证器

[`tomba-io/email-verifier`](https://apify.com/tomba-io/email-verifier) 针对每个邮箱地址调用一次 [`GET /v1/email-verifier`](/api/verifier#email-verifier)。

| 输入          | 类型                         | 必填 | 默认值 | 说明                                                                                                                                           |
| -------------- | ---------------------------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| `emails`       | 由 string 组成的 array，1 到 1,000 个 | 是      | —       | 要验证的邮箱地址。                                                                                                                            |
| `maxResults`   | integer，1 到 1,000          | 否       | `50`    | 达到此数量的地址获得验证结果后停止。带有 `error` 字段的条目不计入，已在运行的请求仍会生成条目。 |
| `enrichMobile` | boolean                      | 否       | `false` | 在 `phone_data` 中返回与该地址关联的电话号码。每个电话号码都会额外收费；请参阅[积分消耗](/usage-and-quotas#credit-costs)。    |
| `webhookUrl`   | string                       | 否       | —       | 以 `http://` 或 `https://` 开头的 URL，作为 `webhook_url` 发送给 Tomba；请参阅 [Webhook](/webhook)。                                                  |

每个地址会生成一个条目，包含响应的 `email` 对象（请参阅[邮箱验证响应](/attributes/verifier)）、`sources`、`input`（您发送的地址）、`phoneNumbers`、`chargedCredits`、`charged` 和 `cached`；使用 `enrichMobile` 时还包含 `phone_data`。如果请求失败或未返回数据，条目中包含 `input` 和 `error` 字段。

实时 API 参数：`email`、`emails`、`enrichMobile`、`webhookUrl`、`maxResults`。

## LinkedIn 查找器

[`tomba-io/linkedin-finder`](https://apify.com/tomba-io/linkedin-finder) 针对每个个人资料 URL 调用一次 [`GET /v1/linkedin`](/api/finder#linkedin-finder)。

| 输入          | 类型                                | 必填 | 默认值 | 说明                                                                                                                                                                                                        |
| -------------- | ----------------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `linkedinUrls` | 由唯一 string 组成的 array，1 到 1,000 个 | 是      | —       | 包含 `linkedin.com/in/` 的个人资料 URL，例如 `https://www.linkedin.com/in/jane-doe`、`https://linkedin.com/in/jane-doe` 或 `https://uk.linkedin.com/in/jane-doe?trk=public`。公司页面会被拒绝。 |
| `maxResults`   | integer，1 到 10,000                | 否       | `50`    | 要处理的 URL 数量。超出此数量的 URL 会被跳过。                                                                                                                                                               |
| `enrichMobile` | boolean                             | 否       | `false` | 在 `phone_data` 中返回该个人资料的电话号码。带有电话数据的结果会额外收费；请参阅[积分消耗](/usage-and-quotas#credit-costs)。                                                                      |
| `full`         | boolean                             | 否       | `false` | 返回 Tomba 为该个人资料存储的所有地址，而不只是最佳地址，每个地址一个条目。每个地址都会收费；请参阅[积分消耗](/usage-and-quotas#credit-costs)。                                  |
| `webhookUrl`   | string                              | 否       | —       | 以 `http://` 或 `https://` 开头的 URL，作为 `webhook_url` 发送给 Tomba；请参阅 [Webhook](/webhook)。                                                                                                               |

找到地址时，每个地址会生成一个条目：响应的数据（请参阅[人员响应](/attributes/person)），加上 `linkedin_url`、值为 `tomba_linkedin_finder` 的 `source`、`phoneNumbers`、`chargedCredits`、`charged` 和 `cached`。使用 `full` 时，请求的费用会分摊到其各条目的 `chargedCredits` 中。如果未找到地址或请求失败，条目中包含值为空字符串的 `email`、`linkedin_url`、`source` 和 `error` 字段。

实时 API 参数：`url`、`urls`、`linkedinUrl`、`linkedinUrls`、`enrichMobile`、`full`、`webhookUrl`、`maxResults`。

## 电话查找器

[`tomba-io/phone-finder`](https://apify.com/tomba-io/phone-finder) 针对每个搜索对象调用一次 [`GET /v1/phone-finder`](/api/phone#phone-finder)。

| 输入        | 类型                | 必填 | 默认值 | 说明                                                                                                                                                                                                                                                                                           |
| ------------ | ------------------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `searches`   | 由 object 组成的 array    | 是      | —       | 每个对象包含 `email`、`domain` 或 `linkedin`（LinkedIn 个人资料 URL）。同一对象中的所有字段会一起发送，包含 `domain` 的搜索消耗的积分更少；请参阅[积分消耗](/usage-and-quotas#credit-costs)。3 个字段都不包含的对象会被跳过，且不生成条目。 |
| `maxResults` | integer，1 到 1,000 | 否       | `50`    | 找到此数量的有效电话号码后停止。已在运行的请求仍会生成条目。                                                                                                                                                                                                     |
| `full`       | boolean             | 否       | `false` | 在每次搜索时以 `full=true` 发送给 Tomba。                                                                                                                                                                                                                                                         |
| `webhookUrl` | string              | 否       | —       | 以 `http://` 或 `https://` 开头的 URL，在每次搜索时作为 `webhook_url` 发送给 Tomba；请参阅 [Webhook](/webhook)。                                                                                                                                                                                  |

每次搜索会生成一个条目：输入的 `email`、`domain` 和 `linkedin`（未设置时为 `null`）、响应的 `data` 字段（请参阅[电话响应](/attributes/phone)）、`source`、`chargedCredits`、`charged` 和 `cached`。这里的 `source` 是一个对象，包含 `search_type`（`email`、`linkedin` 或 `domain`，按此优先顺序）和 `search_value`。如果号码无效，条目中还会包含 `error` 字段。如果请求失败或未返回数据，条目中包含输入字段、值为 `null` 的 `valid` 和 `error` 字段。

实时 API 参数：`email`、`domain`、`linkedin`、`full`、`webhookUrl`、`maxResults`。一个 `GET` 请求执行一次搜索。

## 电话验证器

[`tomba-io/phone-validator`](https://apify.com/tomba-io/phone-validator) 针对每个号码调用一次 [`GET /v1/phone-validator`](/api/phone#phone-validator)。

| 输入          | 类型                         | 必填 | 默认值 | 说明                                                                                                                                                                                                                                                              |
| -------------- | ---------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `phoneNumbers` | 由 object 组成的 array，1 到 1,000 个 | 是      | —       | 每个对象包含 `phoneNumber`（10 到 20 个字符，必填）和 `countryCode`（2 个字母，例如 `GB`）。对于没有 `+` 国家/地区前缀的号码，请设置 `countryCode`，否则请求会失败。数字和国家/地区代码都相同的号码只验证一次。 |
| `maxResults`   | integer，1 到 10,000         | 否       | `50`    | 达到此数量的号码获得验证结果后停止。已在运行的请求仍会生成条目。                                                                                                                                                                     |

每个号码会生成一个条目，包含 `phone_number`（您的输入）、`input_country_code`、值为 `tomba_phone_validator` 的 `source`、`charged` 和 `cached`，以及来自响应的以下字段（请参阅[电话响应](/attributes/phone)）：`valid`、`country_code`、`carrier`、`line_type`、`national_format`（来自 `local_format`）、`international_format`（来自 `intl_format`）、`e164_format`、`rfc3966_format`、`location`（地区的 `name`）和 `timezone`（来自 `timezones`）。由于响应中没有国家/地区名称，`country_name` 列保持为空。如果请求失败或未返回数据，条目中包含值为 `false` 的 `valid` 和 `error` 字段。

实时 API 参数：`phone`（可重复或用逗号分隔；URL 中未编码的前导 `+` 也会被接受）、`countryCode` 或 `country_code`（适用于每个号码）、`maxResults`。

## 邮箱计数

[`tomba-io/email-count`](https://apify.com/tomba-io/email-count) 针对每个域名调用一次 [`GET /v1/email-count`](/api/finder#email-count)。

| 输入        | 类型                | 必填 | 默认值 | 说明                                                                                                                           |
| ------------ | ------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `domains`    | 由 string 组成的 array    | 是      | —       | 要统计地址数量的域名，例如 `stripe.com`。                                                                                 |
| `maxResults` | integer，1 到 1,000 | 否       | `50`    | 达到此数量的域名获得计数后停止。带有 `error` 字段的条目不计入，已在运行的请求仍会生成条目。 |

每个域名会生成一个条目：响应的 `data` 字段（请参阅[邮箱计数响应](/attributes/email-count)），加上 `domain`、值为 `tomba_email_count` 的 `source`、`charged` 和 `cached`。如果请求失败或未返回数据，条目中包含 `domain`、`source` 和 `error` 字段。

实时 API 参数：`domain`、`domains`、`maxResults`。

## 相似域名查找器

[`tomba-io/similar-finder`](https://apify.com/tomba-io/similar-finder) 针对每个域名调用一次 [`GET /v1/similar`](/api/domain#similar)，并读取第一页结果。

| 输入        | 类型                                | 必填 | 默认值 | 说明                                                                                                                                        |
| ------------ | ----------------------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| `domains`    | 由唯一 string 组成的 array，1 到 1,000 个 | 是      | —       | 域名，例如 `stripe.com`、`bbc.co.uk` 或 `blog.stripe.com`。`https://www.stripe.com/pricing` 这样的 URL 会被简化为域名。         |
| `maxResults` | integer，1 到 10,000                | 否       | `50`    | 条目的最大数量。域名的结果会在达到上限时截断，在达到上限之后才完成请求的域名不会生成条目。 |

每个相似域名会生成一个条目，包含 `input_domain`、`similar_domain` 和 `website_url`（两者都是相似公司的域名）、`company_name`、`industries`、值为 `tomba_similar_finder` 的 `source`、`charged` 和 `cached`（请参阅[相似域名响应](/attributes/similar)）。没有结果的域名或失败的请求会生成一个条目，其中 `similar_domain` 为 `null`，并带有 `error` 字段。

实时 API 参数：`domain`、`domains`、`maxResults`。

## 技术查询

[`tomba-io/technology-finder`](https://apify.com/tomba-io/technology-finder) 针对每个域名调用一次 [`GET /v1/technology`](/api/domain#technology)。

| 输入        | 类型                                | 必填 | 默认值 | 说明                                                                                                                                        |
| ------------ | ----------------------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| `domains`    | 由唯一 string 组成的 array，1 到 1,000 个 | 是      | —       | 域名，例如 `stripe.com`、`bbc.co.uk` 或 `blog.stripe.com`。`https://www.stripe.com/pricing` 这样的 URL 会被简化为域名。         |
| `maxResults` | integer，1 到 10,000                | 否       | `50`    | 条目的最大数量。域名的结果会在达到上限时截断，在达到上限之后才完成请求的域名不会生成条目。 |

每项技术会生成一个条目，包含 `input_domain`、`technology_slug`、`technology_name`、`technology_icon`、`technology_website`、`technology_description`、`category_id`、`category_slug` 和 `category_name`（来自第一个类别）、`categories`（其所有类别的名称）、值为 `tomba_technology_finder` 的 `source`、`charged` 和 `cached`（请参阅[技术响应](/attributes/technology)）。没有技术信息的域名或失败的请求会生成一个条目，其中 `technology_name` 为 `null`，并带有 `error` 字段。

实时 API 参数：`domain`、`domains`、`maxResults`。

## 人员数据丰富

[`tomba-io/clearbit-person`](https://apify.com/tomba-io/clearbit-person) 针对每个邮箱地址调用一次 [`GET /v1/people/find`](/api/enrichment#person-api)。响应来自 Tomba 的数据，采用兼容 Clearbit 的格式。

| 输入        | 类型                | 必填 | 默认值 | 说明                                                    |
| ------------ | ------------------- | -------- | ------- | -------------------------------------------------------------- |
| `emails`     | 由 string 组成的 array    | 是      | —       | 要丰富数据的邮箱地址。                                     |
| `maxResults` | integer，1 到 1,000 | 否       | `50`    | 要处理的地址数。超出此数量的地址会被跳过。 |

每个地址会生成一个条目。有匹配时，条目为响应的 `data` 对象（请参阅[人员字段](/attributes/enrichment#person-fields)），加上 `email`、值为 `tomba_person_enrichment` 的 `source`、`charged` 和 `cached`。没有匹配或请求失败时，条目中包含 `email`、`source` 和 `error` 字段。

实时 API 参数：`email`、`emails`、`maxResults`。

## 公司数据丰富

[`tomba-io/clearbit-company`](https://apify.com/tomba-io/clearbit-company) 针对每个域名调用一次 [`GET /v1/companies/find`](/api/enrichment#company-api)。响应来自 Tomba 的数据，采用兼容 Clearbit 的格式。

| 输入        | 类型                | 必填 | 默认值 | 说明                                                |
| ------------ | ------------------- | -------- | ------- | ---------------------------------------------------------- |
| `domains`    | 由 string 组成的 array    | 是      | —       | 公司域名，例如 `stripe.com`。                     |
| `maxResults` | integer，1 到 1,000 | 否       | `50`    | 要处理的域名数。超出此数量的域名会被跳过。 |

每个域名会生成一个条目。有匹配时，条目为响应的 `data` 对象（请参阅[公司字段](/attributes/enrichment#company-fields)），加上 `domain`、值为 `tomba_company_enrichment` 的 `source`、`charged` 和 `cached`。没有匹配或请求失败时，条目中包含 `domain`、`source` 和 `error` 字段。

实时 API 参数：`domain`、`domains`、`maxResults`。

## 组合数据丰富

[`tomba-io/clearbit-combined`](https://apify.com/tomba-io/clearbit-combined) 针对每个邮箱地址调用一次 [`GET /v1/combined/find`](/api/enrichment#combined-api)，同时返回人员及其公司。响应来自 Tomba 的数据，采用兼容 Clearbit 的格式。

| 输入        | 类型                | 必填 | 默认值 | 说明                                                    |
| ------------ | ------------------- | -------- | ------- | -------------------------------------------------------------- |
| `emails`     | 由 string 组成的 array    | 是      | —       | 要丰富数据的邮箱地址。                                     |
| `maxResults` | integer，1 到 1,000 | 否       | `50`    | 要处理的地址数。超出此数量的地址会被跳过。 |

每个地址会生成一个条目。有匹配时，条目为响应的 `data` 对象，包含 `person` 和 `company`（请参阅[组合字段](/attributes/enrichment#combined-fields)），加上 `email`、值为 `tomba_enrichment` 的 `source`、`chargedCredits`、`charged` 和 `cached`。没有匹配或请求失败时，条目中包含 `email`、`source` 和 `error` 字段。

实时 API 参数：`email`、`emails`、`maxResults`。

## 公司搜索

[`tomba-io/company-search`](https://apify.com/tomba-io/company-search) 针对每个结果页调用一次 [`POST /v1/reveal/search`](/api/reveal#search-companies)。各页从 `page` 开始依次请求，每个包含公司的页面收取 1 个事件。当 Actor 获得 `maxResults` 家公司、到达最后一页，或收到短于每页数量的页面、空页面或错误时，分页停止。

| 输入        | 类型                  | 必填             | 默认值 | 说明                                                                                                                                                                                                                                                                                                              |
| ------------ | --------------------- | -------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `query`      | string                | `query` 或 `filters` | —       | 自然语言搜索，例如 `software companies in Berlin`。                                                                                                                                                                                                                                                         |
| `filters`    | object                | `query` 或 `filters` | —       | 以 `company`、`location_country`、`location_city`、`location_state`、`industry`、`size`、`type`、`keywords`、`founded`、`technologies`、`similar`、`revenue`、`sic` 或 `naics` 为键的筛选条件，每个都带有 `include` 和 `exclude` 数组。可接受的值请参阅[端点参考](/api/reveal#search-companies)。 |
| `source`     | 由 string 组成的 array      | 否                   | —       | 要返回的公司字段。为空时返回所有字段。                                                                                                                                                                                                                                                                      |
| `page`       | integer，1 或更大    | 否                   | `1`     | 要请求的第一个结果页。                                                                                                                                                                                                                                                                                           |
| `maxResults` | integer，1 到 100,000 | 否                   | `100`   | 公司的最大数量。                                                                                                                                                                                                                                                                                             |

每家公司会生成一个条目，包含响应中的公司字段、值为 `tomba_company_search` 的 `source`、`charged` 和 `cached`。如果第一页没有返回公司或失败，运行会生成一个包含 `query`、`page` 和 `error` 字段的条目；如果是之后的某一页出现这种情况，Actor 会保留已获得的公司。批量运行会将进度记录在默认键值存储的 `COMPANY_SEARCH_PROGRESS` 记录中，因此迁移或重启后的运行会从下一页继续。

实时 API 参数：`query`、`filters`（URL 编码的 JSON 对象）、`source`（可重复或用逗号分隔）、`page`、`maxResults`。
