Finding a person's email

To find the email address of a LinkedIn person, run st.findPersonEmail with their personUrl, or put it under st.openPersonPage to get the person's profile data in the same workflow. The address can come from the person's Contact info, from an email-finding provider, or both.

Choosing a source

The source parameter decides where the action looks and what it can cost:

sourceContact infoProviderCost
contactInfo (default)yesnofree
providernoalways1 credit if an address is found
contactInfoThenProvideryesonly when Contact info has no email (or, with requireWorkEmail: true, no work email)1 credit if the provider finds an address
allyesalways1 credit if the provider finds an address

LinkedIn shows Contact info mostly to your 1st-degree connections, and it often holds a personal address. The provider finds work addresses from the person's name and their current company's website. For a work address at the lowest cost, use contactInfoThenProvider with requireWorkEmail: true: the provider is called only for people whose Contact info has no work address.

Provider lookups are paid with enrichment credits.

Finding the email of one person

Workflow:

{
  "actionType": "st.findPersonEmail",
  "personUrl": "https://www.linkedin.com/in/person1",
  "source": "contactInfoThenProvider",
  "requireWorkEmail": true
}

Completion:

json
{
  "actionType": "st.findPersonEmail",
  "success": true,
  "data": {
    "emails": [
      { "address": "jane@gmail.com", "source": "contactInfo", "type": "personal" },
      { "address": "jane.doe@acme.com", "source": "provider", "type": "work", "status": "valid" }
    ],
    "providerStatus": "found"
  }
}

Here the person's Contact info had only a personal address, so requireWorkEmail sent them to the provider, which found the work address. The lookup used 1 credit.

The action opens the profile itself. To get the person's profile data as well, put st.findPersonEmail under st.openPersonPage without its own personUrl, as in the next example.

Finding emails for search results

To find emails for the people a search returns, put st.openPersonPage with st.findPersonEmail as its child under st.doForPeople. basicInfo: true here only adds each person's profile data to the result; the lookup works without it. Each person is looked up separately, and each successful provider lookup uses its own credit.

Workflow:

{
  "actionType": "st.searchPeople",
  "term": "Head of Sales",
  "limit": 10,
  "then": {
    "actionType": "st.doForPeople",
    "then": {
      "actionType": "st.openPersonPage",
      "basicInfo": true,
      "then": {
        "actionType": "st.findPersonEmail",
        "source": "provider"
      }
    }
  }
}

Completion (abridged to two people):

json
{
  "actionType": "st.searchPeople",
  "success": true,
  "data": [
    {
      "name": "Jane Doe",
      "publicUrl": "https://www.linkedin.com/in/janedoe",
      ...
      "then": [
        {
          "actionType": "st.openPersonPage",
          "success": true,
          "data": {
            "name": "Jane Doe",
            ...
            "then": {
              "actionType": "st.findPersonEmail",
              "success": true,
              "data": {
                "emails": [
                  { "address": "jane.doe@acme.com", "source": "provider", "type": "work", "status": "valid" }
                ],
                "providerStatus": "found"
              }
            }
          }
        }
      ]
    },
    {
      "name": "John Roe",
      "publicUrl": "https://www.linkedin.com/in/johnroe",
      ...
      "then": [
        {
          "actionType": "st.openPersonPage",
          "success": true,
          "data": {
            "name": "John Roe",
            ...
            "then": {
              "actionType": "st.findPersonEmail",
              "success": true,
              "data": { "emails": [], "providerStatus": "notFound" }
            }
          }
        }
      ]
    }
  ]
}

The first person cost 1 credit, and the second cost nothing.

When credits run out

The workflow starts as long as you have at least 1 credit. Without any, it is rejected with insufficientEnrichmentCredits before it starts. Once your credits run out in the middle of a list:

  • every remaining lookup that would call the provider ends with providerStatus: "insufficientCredits", and the provider is not called;
  • the workflow still runs to the end, and the rest of each person's data comes back as usual;
  • Contact info addresses are still returned for contactInfoThenProvider and all;
  • the company page is not opened just to reach the provider. It can still open to classify a Contact info address that is not at a known mail service, and that view counts as usual.

A lookup that finds nothing gives its credit back, so the next person in the list can use it.

Reading the result

  • emails – the addresses found, possibly none. Contact info entries come first.
    • type: work when the domain matches the current company's website, personal for a mail service such as gmail.com, otherwise unknown.
    • status on provider entries: valid when the provider is sure the mailbox exists, probable when the address is likely but not confirmed.
  • providerStatus says why the provider was or was not called, and whether a credit was used. Only found uses a credit.

Every value is listed on st.findPersonEmail.

Limits

Each person's profile counts as one stPersonProfileViews: opened by st.findPersonEmail itself when it starts the workflow, or by st.openPersonPage when it is the parent. The action also opens the person's current company page when it needs the company's website: to classify a Contact info address that is not at a known mail service, or to give the provider a domain. Each opening counts as one stCompanyPageViews. When that limit is reached, the page is not opened and the lookup ends with companyPageLimitReached. See Limits.

💡 To go the other way – from an email address to the LinkedIn profile – see Finding a profile by email.

This page provides examples of workflows and their completions. For detailed documentation on constraints, parameters, and possible results of specific actions, always refer to the corresponding action documentation pages.