# Anymail Finder

> Find and verify people's work email addresses, one at a time or in bulk, with Anymail Finder.

App · 12 actions. Web page: https://docs.lodol.com/docs/integrations/anymail-finder

## Actions

### Create bulk search

Start searching for many email addresses at once from rows of data. Starting is free; downloading the results in Anymail Finder uses credits.

**Inputs**

- Rows (`data`, list, required): The rows to search, each a list of values. The first row holds the column names unless Has header row is off.
- Name (`file_name`, text): A name to know the search by.
- Has header row (`has_header`, true/false): Whether the first row holds column names. On unless you turn it off.
- Domain column (`domain_field_index`, number): The column, counting from 0, that holds company domains. At least 0.
- Company name column (`company_name_field_index`, number): The column, counting from 0, that holds company names. At least 0.
- Full name column (`full_name_field_index`, number): The column, counting from 0, that holds full names. At least 0.
- First name column (`first_name_field_index`, number): The column, counting from 0, that holds first names. At least 0.
- Last name column (`last_name_field_index`, number): The column, counting from 0, that holds last names. At least 0.
- LinkedIn column (`linkedin_url_field_index`, number): The column, counting from 0, that holds LinkedIn profile addresses. At least 0.
- Email column (`email_field_index`, number): The column, counting from 0, that holds email addresses to verify. Map only this column to verify instead of search. At least 0.
- Decision maker roles (`decision_maker_category`, list): To find decision makers at each company, the roles to look for, most important first; up to 5. One or more of: `ceo`, `engineering`, `finance`, `hr`, `it`, `logistics`, `marketing`, `operations`, `buyer`, `sales`.
- Finished address (`webhook_url`, text): A web address Anymail Finder tells when the search has finished, such as a Lodol webhook trigger's address.

**Outputs**

- `data` (object): The response from Anymail Finder.

**Example output**

```json
{
  "data": {
    "counts": {
      "failed": 0,
      "found_unknown": 0,
      "found_valid": 0,
      "not_found": 0,
      "total": 0
    },
    "created_at": "2025-01-08T13:25:36.457Z",
    "credits_needed": 0,
    "decision_maker_category": "finance,ceo",
    "file_name": "tech_ceos",
    "id": "blk_xxxxxxxx",
    "paid": false,
    "started_running_at": "2025-01-08T13:25:36.457Z",
    "status": "queued"
  }
}
```

### Create local business search

Find businesses of a kind around a place, and their email addresses. Starting is free; downloading the results in Anymail Finder uses credits.

**Inputs**

- Kind of business (`query`, text, required): What to look for, such as restaurants.
- Latitude (`latitude`, number, required): The latitude of the centre of the area. From -90 to 90.
- Longitude (`longitude`, number, required): The longitude of the centre of the area. From -180 to 180.
- Radius (km) (`radius_km`, number, required): How far from the centre to look, from 1 to 25 kilometres. From 1 to 25.
- Find company addresses (`find_company_emails`, true/false, required): Whether to look for each business's own addresses.
- Decision maker roles (`find_decision_maker_categories`, list, required): The roles to look for at each business. Leave empty to look for none. One or more of: `ceo`, `engineering`, `finance`, `hr`, `it`, `logistics`, `marketing`, `operations`, `buyer`, `sales`.
- Name (`file_name`, text): A name to know the search by.
- Most businesses (`result_limit`, number): Stop after finding this many businesses. At least 1.

**Outputs**

- `data` (object): The response from Anymail Finder.

**Example output**

```json
{
  "data": {
    "counts": {
      "failed": 0,
      "found_unknown": 0,
      "found_valid": 0,
      "not_found": 0,
      "total": 0
    },
    "created_at": "2025-01-08T13:25:36.457Z",
    "credits_needed": 0,
    "file_name": "my_geo_lead_search",
    "find_company_emails": true,
    "find_decision_maker_categories": [
      "ceo"
    ],
    "id": "blk_xxxxxxxx",
    "latitude": 40.7127753,
    "longitude": -74.0059728,
    "paid": false,
    "query": "restaurants",
    "radius_km": 2,
    "result_limit": 100,
    "started_running_at": "2025-09-15T13:50:42.000Z",
    "status": "queued"
  }
}
```

### Find company emails

Find up to 20 email addresses at a company. It uses 1 credit when addresses are found.

**Inputs**

- Company domain (`domain`, text): The company's website domain, such as microsoft.com. Give this or the company name; the domain gives better results.
- Company name (`company_name`, text): The company's name, if you don't have its domain.
- Kind of addresses (`email_type`, text): Which kind of addresses to return. One of: `any`, `generic` (Shared, such as info@), `personal` (People's own).

**Outputs**

- `data` (object): The response from Anymail Finder.

**Example output**

```json
{
  "data": {
    "credits_charged": 1,
    "email_status": "valid",
    "emails": [
      "john.doe@microsoft.com"
    ],
    "input": {},
    "mx_domain": "outlook.com",
    "mx_host": "microsoft-com.mail.protection.outlook.com",
    "valid_emails": [
      "john.doe@microsoft.com"
    ]
  }
}
```

### Find decision maker's email

Find the person in a role, such as the CEO, at a company and their email address. It uses 2 credits when a deliverable address is found.

**Inputs**

- Company domain (`domain`, text): The company's website domain, such as microsoft.com. Give this or the company name; the domain gives better results.
- Company name (`company_name`, text): The company's name, if you don't have its domain.
- Roles (`decision_maker_category`, list, required): The roles to look for, most important first; up to 5. The first one found is returned. One or more of: `ceo`, `engineering`, `finance`, `hr`, `it`, `logistics`, `marketing`, `operations`, `buyer`, `sales`.

**Outputs**

- `data` (object): The response from Anymail Finder.

**Example output**

```json
{
  "data": {
    "credits_charged": 2,
    "decision_maker_category": "ceo",
    "email": "satyan@microsoft.com",
    "email_status": "valid",
    "input": {},
    "mx_domain": "outlook.com",
    "mx_host": "microsoft-com.mail.protection.outlook.com",
    "person_first_name": "Satya",
    "person_full_name": "Satya Nadella",
    "person_job_title": "Chairman and CEO",
    "person_last_name": "Nadella",
    "person_linkedin_url": "https://www.linkedin.com/in/satyanadella/",
    "valid_email": "satyan@microsoft.com"
  }
}
```

### Find email from LinkedIn

Find a person's email address from their LinkedIn profile. It uses 1 credit when a deliverable address is found.

**Inputs**

- LinkedIn profile (`linkedin_url`, text, required): The address of their LinkedIn profile, such as https://www.linkedin.com/in/satyanadella/.

**Outputs**

- `data` (object): The response from Anymail Finder.

**Example output**

```json
{
  "data": {
    "credits_charged": 1,
    "email": "satyan@microsoft.com",
    "email_status": "valid",
    "input": {},
    "mx_domain": "outlook.com",
    "mx_host": "microsoft-com.mail.protection.outlook.com",
    "person_company_name": "Microsoft",
    "person_full_name": "Satya Nadella",
    "person_job_title": "Chairman and CEO",
    "valid_email": "satyan@microsoft.com"
  }
}
```

### Find person's email

Find a person's work email address from their name and company, or their LinkedIn profile. It uses 1 credit when a deliverable address is found.

**Inputs**

- Company domain (`domain`, text): The company's website domain, such as microsoft.com. Give this or the company name; the domain gives better results.
- Company name (`company_name`, text): The company's name, if you don't have its domain.
- Full name (`full_name`, text): The person's full name, such as John Doe. Or give the first and last name.
- First name (`first_name`, text): The person's first name.
- Last name (`last_name`, text): The person's last name.
- LinkedIn profile (`linkedin_url`, text): The address of their LinkedIn profile. On its own it is enough; with a name and company it is tried if they find nothing.

**Outputs**

- `data` (object): The response from Anymail Finder.

**Example output**

```json
{
  "data": {
    "credits_charged": 1,
    "email": "satyan@microsoft.com",
    "email_status": "valid",
    "input": {},
    "mx_domain": "outlook.com",
    "mx_host": "microsoft-com.mail.protection.outlook.com",
    "person_company_name": "Microsoft",
    "person_full_name": "Satya Nadella",
    "person_job_title": "Chairman and CEO",
    "valid_email": "satyan@microsoft.com"
  }
}
```

### Get account

See how many credits are left and which account the key belongs to.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Anymail Finder.

**Example output**

```json
{
  "data": {
    "credits_left": 8698,
    "email": "john.doe@microsoft.com"
  }
}
```

### Get bulk search

Get where a bulk search is and how many addresses it has found.

**Inputs**

- Bulk search ID (`search_id`, text, required): The bulk search's ID, from Create bulk search.

**Outputs**

- `data` (object): The response from Anymail Finder.

**Example output**

```json
{
  "data": {
    "counts": {
      "failed": 0,
      "found_unknown": 0,
      "found_valid": 0,
      "not_found": 0,
      "total": 0
    },
    "created_at": "2025-01-08T13:25:36.457Z",
    "credits_needed": 0,
    "decision_maker_category": "finance,ceo",
    "file_name": "tech_ceos",
    "id": "blk_xxxxxxxx",
    "paid": false,
    "started_running_at": "2025-01-08T13:25:36.457Z",
    "status": "completed"
  }
}
```

### Get local business search

Get where a local business search is and how many addresses it has found.

**Inputs**

- Search ID (`search_id`, text, required): The search's ID, from Create local business search.

**Outputs**

- `data` (object): The response from Anymail Finder.

**Example output**

```json
{
  "data": {
    "counts": {
      "failed": 0,
      "found_unknown": 0,
      "found_valid": 0,
      "not_found": 0,
      "total": 0
    },
    "created_at": "2025-01-08T13:25:36.457Z",
    "credits_needed": 0,
    "file_name": "my_geo_lead_search",
    "find_company_emails": true,
    "find_decision_maker_categories": [
      "ceo"
    ],
    "id": "blk_xxxxxxxx",
    "latitude": 40.7127753,
    "longitude": -74.0059728,
    "paid": false,
    "query": "restaurants",
    "radius_km": 2,
    "result_limit": 100,
    "started_running_at": "2025-09-15T13:50:42.000Z",
    "status": "completed"
  }
}
```

### Look up person by email

Find the name, job, company and LinkedIn profile of the person behind an email address. It uses 2 credits when the person is found.

**Inputs**

- Email (`email`, text, required): The person's email address.

**Outputs**

- `data` (object): The response from Anymail Finder.

**Example output**

```json
{
  "data": {
    "credits_charged": 2,
    "input": {},
    "person_company_name": "Microsoft",
    "person_full_name": "Satya Nadella",
    "person_job_title": "Chairman and CEO",
    "person_linkedin_url": "https://www.linkedin.com/in/satyanadella",
    "person_status": "found"
  }
}
```

### Report bad email

Tell Anymail Finder that an address it found doesn't work, such as after a bounce.

**Inputs**

- Email (`email`, text, required): The address that doesn't work.
- What happened (`additional_info`, text, required): Why the address is bad, in up to 500 characters.
- Bounce message (`bounce_message`, text): The mail server's bounce message, if you have it.

**Outputs**

- `data` (object): The response from Anymail Finder.

**Example output**

```json
{
  "data": {
    "input": {}
  }
}
```

### Verify email

Check whether an email address can receive email. It uses 0.2 credits.

**Inputs**

- Email (`email`, text, required): The email address to check.

**Outputs**

- `data` (object): The response from Anymail Finder.

**Example output**

```json
{
  "data": {
    "credits_charged": 0.2,
    "email_status": "valid",
    "input": {},
    "mx_domain": "google.com",
    "mx_host": "aspmx.l.google.com"
  }
}
```
