# st.findPersonByEmail

> The API Reference is also the SDK and CLI reference. Consecutive code fences marked `tab=HTTP`, `tab=Node`, `tab=Python` and `tab=CLI` are the same call on each surface (a fence marked `tab=HTTP,CLI` is the same text for both), and a block between `:::surface <names>` and `:::` applies only to the surfaces it names. Identifiers in the text are written as in Node and in HTTP JSON (camelCase); the Python SDK spells methods, parameters and result attributes in snake_case (`sendMessage` → `send_message`, `reconnectionLink` → `reconnection_link`), while names inside HTTP JSON stay camelCase.

This action allows you to find the LinkedIn profile of the person behind an email address and, if needed, open that profile in the same workflow.

:::surface node,python
In the SDK this is the `findPersonByEmail` method. It takes `email`; `label` and `then` exist only in workflow JSON. The result below is returned in `data`, without `then`. To open the found profile in the same workflow, pass the workflow with its `then` to [`customWorkflow`](/sdks/custom-workflow) – see [Finding a profile by email](/docs/finding-profile-by-email#opening-the-found-profile).
:::

:::surface cli
The command is `linkedin person find-by-email`, with the email address as its argument. To open the found profile in the same workflow, pass the workflow with its `then` to [`linkedin workflow run`](/cli/workflows) – see [Finding a profile by email](/docs/finding-profile-by-email#opening-the-found-profile).
:::

> The lookup is paid with enrichment credits that you buy on the [platform](https://app.linkedapi.io/enrichment). It uses **10 credits**, and only when a profile is found – see [Enrichment credits](#enrichment-credits).

## Constraints

> ⏺️ **Root Start:** allowed.

> ⬆️ **Parent Actions:** N/A.

> ⬇️ **Child Actions:** [st.openPersonPage](/docs/action-st-open-person-page), with no `then.personUrl` of its own. It runs only when a profile is found, on that profile.

## Parameters

```json tab=HTTP
{
  "actionType": "st.findPersonByEmail",
  "label": "lookup1",
  "email": "jane.doe@acme.com",
  "then": {
    "actionType": "st.openPersonPage",
    "basicInfo": true
  }
}
```

```typescript tab=Node
const workflow = await linkedapi.findPersonByEmail.execute({
  email: "jane.doe@acme.com"
});

const { data, errors } = await linkedapi.findPersonByEmail.result(workflow.workflowId);
```

```python tab=Python
from linkedapi import FindPersonByEmailParams

workflow = linkedapi.find_person_by_email.execute(
    FindPersonByEmailParams(email="jane.doe@acme.com")
)

result = linkedapi.find_person_by_email.result(workflow.workflow_id)
```

```bash tab=CLI
linkedin person find-by-email jane.doe@acme.com --json
```

In AI assistants, the MCP tool is `find_person_by_email`. The n8n action is **Find person by email**; the Make module is **Find a person by email**.

- `label` (optional) – custom label for tracking this action in workflow completion.
- `email` (required) – the email address to look up, at most 254 characters. Surrounding spaces are trimmed. Professional addresses work best; personal ones (such as gmail.com) are accepted but rarely found.
- `then` (optional) – [st.openPersonPage](/docs/action-st-open-person-page) with its usual parameters and child actions, such as [st.findPersonEmail](/docs/action-st-find-person-email). It gets the found profile's URL, so `then.personUrl` must not be set. It runs only when `providerStatus` is `found`.

The provider receives only the email address. The lookup itself opens no LinkedIn page and counts against no account [limit](/docs/admin-limits). A `then` child counts under its own limits: `st.openPersonPage` counts one `stPersonProfileViews` for the found profile, and an `st.findPersonEmail` under it counts as described on [its page](/docs/action-st-find-person-email#parameters).

Two kinds of request are rejected before the workflow starts:

- invalid parameters, a `then` with any action other than `st.openPersonPage`, or this action placed under another action, with `invalidWorkflow`;
- fewer than 10 enrichment credits, with `insufficientEnrichmentCredits`.

## Result options

None of the outcomes below is a failure of the action, and what it found is in `providerStatus`.

1. **Profile found:**

:::surface http
**Completion:**
:::

:::surface node,python
**Completion** – `result()` returns its `data` in `data` (`then` comes only from a custom workflow):
:::

:::surface cli
**Completion** – with `--json` the CLI prints its `data` as `data` (`then` comes only from `linkedin workflow run`):
:::

```json
{
  "actionType": "st.findPersonByEmail",
  "label": "lookup1",
  "success": true,
  "data": {
    "personUrl": "https://www.linkedin.com/in/jane-doe",
    "providerStatus": "found",
    "then": {
      "actionType": "st.openPersonPage",
      "success": true,
      "data": {
        "name": "Jane Doe",
        "publicUrl": "https://www.linkedin.com/in/jane-doe",
        ...
      }
    }
  }
}
```

2. **Nothing found:**

```json
{
  "actionType": "st.findPersonByEmail",
  "label": "lookup1",
  "success": true,
  "data": {
    "personUrl": null,
    "providerStatus": "notFound"
  }
}
```

- `label` – included only if specified in the action parameters.
- `data.personUrl` – the LinkedIn profile URL of the person behind the address, in the `https://www.linkedin.com/in/<slug>` form. `null` unless `providerStatus` is `found`.
- `data.providerStatus` – enum with the following values:
  - `found` – the profile was found. This is the only status that uses credits.
  - `notFound` – no profile is known for this address.
  - `insufficientCredits` – you ran out of enrichment credits before this lookup.
  - `unavailable` – the provider could not answer. Try again later.
- `data.then` – the result of the `st.openPersonPage` child, present only when you passed `then` and a profile was found. It is the same as on [its page](/docs/action-st-open-person-page). If the child fails with an error of its own, the error is reported there and `data.personUrl` is still returned. An account-level failure, such as a signed-out account or an unsupported interface language, fails the whole workflow instead, and the lookup's credits are given back.

## Enrichment credits

The full picture – packs, refunds, running out – is in [Enrichment credits](/docs/enrichment-credits).

- A lookup uses **10 credits** when `providerStatus` is `found`. Every other status uses none.
- Credits are bought in packs on the [platform](https://app.linkedapi.io/enrichment) and never expire. The same credits pay for [st.findPersonEmail](/docs/action-st-find-person-email), which uses 1 credit per lookup that finds an address.
- A workflow that does not complete – it fails, or you cancel it – gives back the credits its lookup used, because its result was not delivered.
- Spending credits requires an active subscription or trial, like any workflow. Credits bought without one stay on your account until you subscribe.

> 💡 For worked examples, see [Finding a profile by email](/docs/finding-profile-by-email).
