# Company Departures - People Who Left, by Domain (`b2bdata/departures-by-company`) Actor

Former employees by company domain: give company domains, get one row per person who left, with previous title, year or month they left, and current title and company when on file. Free plan: 100 domains per run. Pay per departure delivered. No login or cookies.

- **URL**: https://apify.com/b2bdata/departures-by-company.md
- **Developed by:** [Open Enrich](https://apify.com/b2bdata) (community)
- **Categories:** Lead generation, Marketing, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 departure delivereds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Company Departures - People Who Left, by Domain

Former employees by company domain: give a list of company domains, get one row per person who left each company, with the title they held there, the year and month they left, where they work now, and the profile URL. No login, no cookies. You pay for each departure row you receive; phone and email add-ons are optional.

**No login | Domains, URLs or emails in | One departed person per row | Previous title and month left | Where they are now | Unknown domains = free | JSON/CSV export**

> **Departures, not rosters.** Most employee tools list who works at a company today. This one lists who left, which is the signal behind churn watching, competitor hiring pools, alumni networks and "champion moved on" outreach. A person who was promoted inside the company, or whose profile still shows an open position there, is not a departure and is never delivered or charged. It does not return email addresses, only whether one is on file. For current employees use [people-at-company](https://apify.com/b2bdata/people-at-company).

[See all actors by b2bdata](https://apify.com/b2bdata)

***

### 💳 Pricing and plans

One event, `departure`, charged once per departed person delivered. Prices per 1,000 departures (set on the Pricing tab):

| Event | When it is charged | Free plan | Gold plan |
|---|---|---|---|
| `departure` | A departed person's row is delivered to your dataset | $1.896 | $1.396 |

Bronze and Silver prices are on the Pricing tab. Higher Apify plans only lower the price. Unknown domains, domains with nobody who left in your window, people still listed at the company, failed lookups, unreadable rows and notices are free. An empty run costs only the $0.0005 start fee.

**Opt-in add-ons.** Switch on `includePhones` (event `phone-found`, $4.996 per 1,000 people with a phone on the Free plan) or `includeEmails` (event `email-found`, $0.963 per 1,000 people with a work email on the Free plan). They are charged after the person row and only for people who have one; everyone else costs nothing extra.

**Plan-credit math.** The free plan's $5 monthly credit covers about 2,630 departures at the Free price.

#### Success-only billing

You are charged only for a departure row you receive. A domain with no company on file, or with nobody who left in your window, gets one free notice row (`reason: "no_departures"`). A hosting or platform domain shared by too many companies gets a free notice (`domain_too_broad`). An entry that is not a domain, a repeat, or a lookup that fails is listed in `MISSES` with its position and a reason and costs nothing.

#### The free plan

Free Apify accounts get up to 100 domains looked up per run, and as many runs as their Apify credit covers. Nothing is stored on our side. When a list is longer, the first 100 valid domains are looked up and one free notice row (`reason: "free_plan_limit"`) says how many were not looked up; they are not charged. Run again with the rest, or use a paid Apify plan for no per-run limit.

#### Keep a run small while you test

Two caps protect you. `maxPeoplePerDomain` (default 100, maximum 1,000) stops any one company from using up the run, and a large employer can have thousands of departures. `limit` (default 100, maximum 10,000) caps the whole run. Try one domain with `limit: 5`, read the rows, then scale up.

***

### ⚡ Why this former employees actor?

- **Start from the domain.** `stripe.com`, `https://www.stripe.com/about` and `jane@stripe.com` all become `stripe.com`. No company-name matching and no LinkedIn URL needed.
- **A real departure, not a closed position.** A person who moved up inside the company, or who left and came back, is excluded.
- **Previous title and month left.** Read from each person's profile, so you see what they did at the company, not only that they left.
- **Where they went.** Current title and company, when the profile has one.
- **Success-only.** Unknown domains, bad entries, repeats and notices are free.

***

### 🎯 Use cases: who left, and where did they go

- **Churn and instability signal.** Departures from an account in the last year, by title.
- **Competitor hiring pool.** People who left a competitor, with their previous role and new employer.
- **Alumni and champion tracking.** Find the person who used your product at a customer and has moved on.
- **Agent workflows.** An AI agent holds company domains and needs who left each one since a given year.

***

### 🚀 Quick start: departures for a list of domains

#### 1. One domain, last year's leavers

```json
{ "items": ["stripe.com"], "limit": 5 }
```

#### 2. Left since 2024, now in the US or UK, now in leadership

```json
{ "items": ["openai.com", "shopify.com"], "leftAfterYear": 2024, "countries": ["us", "gb"], "titleRoles": ["cxo", "vp", "director"], "limit": 100 }
```

Each entry becomes its bare domain before the lookup.

***

### ⚙️ Inputs

| Key | Type | Default | What it does |
|---|---|---|---|
| `items` | array of strings | required | Company domains, website URLs or email addresses. A company name is not a domain and is listed in `MISSES` as `invalid_domain`. The same domain written twice is looked up once. Free plan: 100 domains per run. |
| `leftAfterYear` | integer | last year | Keep people whose position at the company ended in this year or later. A run in 2026 without it uses 2025. Range 1990 to the current year. |
| `titleRoles` | array of strings | all | Keep only people whose current role has one of these seniority levels: `cxo`, `vp`, `director`, `manager`, `founder`, `other`. It does not filter the role they had at the company they left. People with no current job on file are dropped when this is set. |
| `countries` | array of strings | North America, Europe, Asia | Two-letter country codes of the person's profile location, up to 60. When set, it replaces the default regions. |
| `includePreviousRole` | boolean | true | Adds `previousTitle`, `leftYear` and `leftMonth` from each person's profile. Off is faster and returns the departure and current job only. |
| `maxPeoplePerDomain` | integer | 100 | Most departures delivered for one domain. Maximum 1,000. |
| `limit` | integer | 100 | Most departures delivered in the whole run, which also caps what is charged. Maximum 10,000. Domains not reached are listed in `MISSES`. |
| `includePhones` | boolean | false | Add-on: adds a `phone` to each person who has one on record. Charged per person with a phone ($4.996 per 1,000 on the Free plan). People without one cost nothing extra. |
| `includeEmails` | boolean | false | Add-on: adds a `workEmail` to each person who has one on record. Charged per person with an email ($0.963 per 1,000 on the Free plan). People without one cost nothing extra. |
| `includeAudit` | boolean | false | Adds an `audit` object to each row. |

Any other field stops the run before a lookup with `remove unsupported fields: ...`. Nothing is charged.

***

### 📤 Output

One result row per departed person. Rows for one domain stay together, domains keep input order. Empty values are left out.

| Key | Type | Meaning, and when it is missing |
|---|---|---|
| `companyDomain` | string | The domain they left, from your entry, cleaned |
| `fullName`, `firstName`, `lastName` | string | The person's name |
| `previousTitle` | string | Title of the position at that company, from the profile. Missing when the profile could not be read or no position there could be matched |
| `leftYear` | integer | Year that position ended, from the profile. Same condition as `previousTitle` |
| `leftMonth` | string | Month that position ended, `YYYY-MM`, as the profile states it. Same condition as `previousTitle` |
| `currentTitle` | string | Title of the person's current job. Missing when no current job is on file |
| `currentCompany` | string | Employer of that job |
| `currentCompanyDomain` | string | Employer's website domain, when it declares one |
| `currentSeniority` | string | `cxo`, `vp`, `director`, `manager`, `founder` or `other`, grouped from the current title |
| `headline` | string | The profile headline |
| `location` | string | Place on the profile |
| `country` | string | Two-letter country code |
| `hasWorkEmail` | boolean | An address on another domain is on record. Missing when that could not be checked |
| `hasPersonalEmail` | boolean | A personal mailbox is on record. Missing when that could not be checked |
| `lowSignal` | boolean | `true` for a thin profile: under 10 connections and no start year |
| `profileUrl` | string | Public profile URL |
| `slug` | string | Profile slug |
| `updatedAt` | string | When the profile was last refreshed in the data |
| `phone` | string | Only with `includePhones`: a phone number on record. Present only when one is found |
| `workEmail` | string | Only with `includeEmails`: a work email on record. Present only when one is found |
| `audit` | object | Only with `includeAudit`: `requestId`, `latencyMs`, `inputRaw` |

Example output (the shape is real, the values are illustrative):

```json
{
  "companyDomain": "stripe.com",
  "fullName": "Ann Example",
  "firstName": "Ann",
  "lastName": "Example",
  "previousTitle": "Account Executive",
  "leftYear": 2025,
  "leftMonth": "2025-03",
  "currentTitle": "Sales Manager",
  "currentCompany": "Acme",
  "currentCompanyDomain": "acme.com",
  "currentSeniority": "manager",
  "headline": "Sales leader",
  "location": "Dublin, Ireland",
  "country": "IE",
  "hasWorkEmail": true,
  "hasPersonalEmail": false,
  "lowSignal": false,
  "profileUrl": "https://linkedin.com/in/ann-example",
  "slug": "ann-example",
  "updatedAt": "2025-05-19T12:31:22Z"
}
```

#### How precise is "left"?

- **The filter is by year.** `leftAfterYear: 2025` keeps people whose position ended in 2025 or later. The data does not support a day-exact cut-off, so you cannot ask for "after 1 March".
- **The month comes from the profile.** `leftMonth` is the end month the person typed on their own profile, so it is as accurate as they are. Many profiles carry no end month; those rows have a year only, or no previous role fields.
- **A left date is not proof of a move.** The data holds a closed position. We remove people who still have a current position at the same domain, and people whose profile shows an open position there. A person on a sabbatical or between jobs is still delivered, without a current job.
- **Previous role matching is by company name.** The position is matched to your domain by the company's name or public id (`stripe.com` finds "Stripe" and "Stripe, Inc."). When a company trades under a different name than its domain, `previousTitle`, `leftYear` and `leftMonth` can be missing; the departure itself is still delivered.
- **Regions.** A search needs a region or country. By default it covers people located in North America, Europe and Asia. People whose profile names no country (about one in six) and people in Africa, South America and Oceania appear only when you list their countries in `countries`.
- **Order.** Rows come in country order, not by date or relevance. With a cap you receive the first rows in that order, not a random sample.
- **Current job is a heuristic.** A profile can list many current positions. We pick the most recently started one that has a title or a company.

#### Other records in the run

- **`MISSES`** (key-value store): `[{index, input, reason}]` for every entry without a result row. Reasons: `no_departures`, `domain_too_broad`, `invalid_domain`, `duplicate_input` (the same domain as an earlier entry; `duplicateOf` names it), `not_looked_up_limit` (the run `limit` was reached first), or `Upstream HTTP <code>`.
- **`errors-departures-by-company`** (key-value store): lookups that failed for a technical reason. A failed previous-role lookup never drops a row: the row is delivered without `previousTitle`.
- **`RUN_SUMMARY`**: counts (requested, looked up, delivered, repeats skipped, people still listed at the company, rows without a previous role) and, per domain, how many departures were delivered.
- **Notice rows** (`type: "notice"`) appear for a domain with no departures, a platform domain, a free-plan list longer than 100 (`free_plan_limit`), a reached `limit` (`limit_reached`), a reached spend limit (`charge_limit_reached`) or invalid input (`invalid-input`). Notices are never charged.

#### What is NOT returned

- Email addresses or phone numbers, unless you switch on the `includeEmails` and `includePhones` add-ons (for a verified address use [email-finder](https://apify.com/b2bdata/email-finder))
- Current employees (use [people-at-company](https://apify.com/b2bdata/people-at-company))
- A full career history or education (use [linkedin-profile-by-url](https://apify.com/b2bdata/linkedin-profile-by-url))
- Why a person left

***

### 🛡️ Reliable results

**Our data promise.** We work to keep the data current, and we stand behind it. If a person has moved on, a company is missing or a row looks wrong, open the Issues tab with your run link. We review every report and sort it out with you, case by case.

- **No data is free and visible.** Every domain without a row is in `MISSES` with its position and a reason and is never charged.
- **Repeats are charged once.** The same domain written twice is one lookup, and a person is one row per company they left.
- **Each row is saved as it is delivered.** A run that stops, or a lookup that fails halfway through a company, keeps what it already produced.
- **Bounded pace.** Lookups run at about 60 a minute, and each page of 100 departures also reads 100 profiles, so a long list takes time. The run timeout is one hour.
- **Typos fail early.** An unsupported input field, a bad year, a bad country code or a limit above its maximum stops the run before any charge.

***

### 🤖 For AI agents (MCP)

This actor runs through the Apify MCP server. Prompt to copy:

> "Use b2bdata/departures-by-company with items=\["stripe.com"], leftAfterYear=2025 and limit=20. Return fullName, previousTitle, leftMonth, currentTitle, currentCompany and profileUrl."

**When to use it.** You hold company domains and need the people who left each one since a given year.
**When not to.** You need current employees (use b2bdata/people-at-company), email addresses (use b2bdata/email-finder) or a full profile (use b2bdata/linkedin-profile-by-url).
**Input contract.** `items` array of domains, URLs or emails; optional `leftAfterYear` (default last year), `titleRoles`, `countries`, `includePreviousRole`, `maxPeoplePerDomain` 1-1,000 (default 100), `limit` 1-10,000 (default 100).
**Output contract.** One row per departed person with `companyDomain`, `fullName`, `profileUrl` and, when on file, `previousTitle`, `leftYear`, `leftMonth`, `currentTitle`, `currentCompany`. Output is deterministic and schema-stable. Domains without data are a free notice row and listed in `MISSES`.
**Smoke test.** `limit: 1` on a well-known domain returns one row.
**Error cases.** `No valid domains` means no entry was a domain. `remove unsupported fields`, a bad `leftAfterYear`, `countries` or `titleRoles` value or a bad number ends the run SUCCEEDED with one free `invalid-input` notice row and nothing charged.

***

### 🔌 Integrations: send results anywhere

1. **API.** Fetch rows from the run's default dataset: `GET /v2/datasets/{datasetId}/items?format=csv`.
2. **Webhook** on run success to push rows to your own endpoint.
3. **n8n, Make, Zapier.** Use the native Apify nodes: run the actor, then read the dataset.
4. **Google Sheets, Airtable, HubSpot, Salesforce, Clay.** Join on `companyDomain` and map `fullName`, `previousTitle` and `profileUrl` to contact fields.

***

### 🕐 Schedule examples

- **Monthly account watch.** A schedule with a saved task that points at your customer-domain list and `leftAfterYear` set to the current year.
- **Competitor watch.** A weekly run on competitor domains, comparing the new rows against last week's dataset.

***

### 🔗 Related actors

- `b2bdata/people-at-company`: the people who work at a company today, by domain. [Open](https://apify.com/b2bdata/people-at-company)
- `b2bdata/linkedin-profile-by-url`: the full profile for a person. [Open](https://apify.com/b2bdata/linkedin-profile-by-url)
- `b2bdata/email-finder`: a work email for a person at a domain. [Open](https://apify.com/b2bdata/email-finder)
- `b2bdata/linkedin-people-search`: search people across companies by title and location. [Open](https://apify.com/b2bdata/linkedin-people-search)

[See all actors by b2bdata](https://apify.com/b2bdata)

***

### ❓ FAQ

#### Data and coverage

**How do I find people who left a company?**
Put the company's domain in `items` and run. You get one row per person who left in or after `leftAfterYear`, with their previous title and where they work now.

**How recent are the departures?**
The filter is by calendar year, not by day. `leftAfterYear` defaults to last year. The month comes from the person's own profile and is missing on many rows.

**Why did I get fewer people than the company lost?**
Rows stop at `maxPeoplePerDomain` (default 100) and at `limit` (default 100 for the whole run). Only people located in North America, Europe and Asia are searched unless you set `countries`, and people with no country on their profile are not found.

**Why is previousTitle missing on some rows?**
The person's profile could not be read, or no position at that company could be matched by name. The departure is still real and still delivered.

**Do I get email addresses?**
Only if you switch on `includeEmails`, which adds a work email for people who have one. `hasWorkEmail` and `hasPersonalEmail` say whether an address is on record. For a verified address use `b2bdata/email-finder`.

**Do I need a LinkedIn account or cookies?**
No. It is a lookup without login, cookies or an account to ban.

#### Pricing

**What do I pay when a domain has no departures?**
No result charge: unknown domains, bad entries, repeats, people still listed at the company and notices are free.

***

### ⚖️ Legal

Use for B2B prospecting only. Comply with all applicable laws including GDPR, CCPA, and CAN-SPAM.

***

### 🛟 Support

Use the **Issues** tab on this actor's Apify page for bugs, questions and feature requests. We answer within 48 hours on working days. Please include the run ID and the input you used. Published on Apify by b2bdata. Not affiliated with, endorsed by, or sponsored by any company or person named in the examples above.

# Changelog

This Actor's version history is a separate document: https://apify.com/b2bdata/departures-by-company/changelog.md

# Actor input Schema

## `items` (type: `array`):

Company domains to list former employees for. Example: \["stripe.com", "https://www.openai.com/about", "jane@microsoft.com"]. A website URL or an email address is reduced to its domain; a company name is not a domain and is listed in the MISSES record as invalid_domain. Each domain is looked up once; repeats are listed in MISSES as duplicate_input. A domain with no company on file, or nobody who left in the window, returns one free notice row. Free plan: 100 domains per run.

## `leftAfterYear` (type: `integer`):

Keep people whose position at the company ended in this calendar year or later. Example: 2024. Omit for last year (a run in 2026 uses 2025). The match is by year: a person who left in December of the year before is not in, one who left in January of that year is. Range 1990 to the current year.

## `titleRoles` (type: `array`):

Keep only people whose CURRENT role has one of these seniority levels, for example people who left and are now VPs: \["cxo", "vp"]. It does not filter the role they had at the company they left. Leave empty for everyone. Levels: cxo, vp, director, manager, founder, other. People with no current job on file are dropped when this is set.

## `countries` (type: `array`):

Two-letter country codes of the person's profile location, up to 60. Example: \["us", "gb", "au"]. Omit to search North America, Europe and Asia. People whose profile names no country, and people in Africa, South America and Oceania, are only found when you list their countries here.

## `includePreviousRole` (type: `boolean`):

On (default): each person's profile is read to add previousTitle, leftYear and leftMonth from their position at the company. Off: faster, and rows carry only the departure itself and the current job. A person whose profile still shows an open position at that company is dropped, free.

## `maxPeoplePerDomain` (type: `integer`):

Most departures delivered for any one domain, so a large employer cannot use up your run. Default 100, maximum 1000.

## `limit` (type: `integer`):

Most departures delivered in the whole run, which also caps what is charged. Domains not reached are listed in MISSES and are not charged. Default 100, maximum 10000.

## `includePhones` (type: `boolean`):

Adds a phone number to each person who has one on record. Charged per person with a phone: $0.005 on the Free plan ($4.996 per 1,000), less on higher plans. People without a phone cost nothing extra. Off by default.

## `includeEmails` (type: `boolean`):

Adds a work email to each person who has one on record. Charged per person with an email: $0.00096 on the Free plan ($0.963 per 1,000), less on higher plans. People without an email cost nothing extra. Off by default.

## `includeAudit` (type: `boolean`):

Adds requestId, latencyMs and inputRaw to each row under audit. Omit for clean rows.

## Actor input object example

```json
{
  "items": [
    "stripe.com"
  ],
  "includePreviousRole": true,
  "maxPeoplePerDomain": 100,
  "limit": 100,
  "includePhones": false,
  "includeEmails": false,
  "includeAudit": false
}
```

# Actor output Schema

## `departures` (type: `string`):

One row per departed person: name, previous title, year and month left, current title and company, profile URL

## `summary` (type: `string`):

Counts, departures per domain and stop reason for this run

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "items": [
        "stripe.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("b2bdata/departures-by-company").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "items": ["stripe.com"] }

# Run the Actor and wait for it to finish
run = client.actor("b2bdata/departures-by-company").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "items": [
    "stripe.com"
  ]
}' |
apify call b2bdata/departures-by-company --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,b2bdata/departures-by-company"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/9qVs1sOTL56lN0YEM/builds/KpehBUNP1aumuNIjc/openapi.json
