# First Sales Hire Finder: First-Time Roles by Company (`b2bdata/first-time-role-detector`) Actor

Spot companies that just made a first hire in a function. Give company domains and roles (sales, marketing, security): get the first person on record to hold each role, their start year and whether anyone holds it now. Free plan: 100 domains per run. Pay per result. No login or cookies.

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

## Pricing

from $5.60 / 1,000 first role holder delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

## First Sales Hire Finder: First-Time Roles by Company

Find the first person on record to hold a role at a company: first sales hire, first marketing hire, first security hire. Give company domains and title keywords, get one row per company and role with the first holder's name, title and start year, whether they still hold it, and whether anyone holds it today. No login, no cookies. You pay only for a row you receive.

**No login | Company domains and role keywords in | One row per company and role | Former staff included | Honest coverage flag | JSON/CSV export**

> **What this does that other actors in the fleet do not.** `new-exec-hires` lists C-level and VP people who recently started, and `people-at-company` lists current staff. This actor answers a different question: who was the first in a function, even if they have left, and has the company filled the role since. Use it to spot companies that just opened a sales, marketing or security function.

> **Read this first: "first" means first on record, and dates are years.** The answer comes from public profiles that are on file. A person who removed their profile, or whose position carries no start date, cannot be named. The data holds the start YEAR of a role, never the month, so two people can tie (`tiedForFirst` counts them). Every row has a `coverage` field that says when the search of former staff was cut short.

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

***

### 💳 Pricing and plans

One event, `first-hire`, charged once per row delivered. Prices per 1,000 rows (set on the Pricing tab):

| Event | When it is charged | Free plan | Gold plan |
|---|---|---|---|
| `first-hire` | A company-and-role row with a named first holder is delivered | $7.496 | $5.596 |

Bronze and Silver prices are on the Pricing tab. Higher Apify plans only lower the price. Companies with no match, roles with too many people, failed lookups and notices are free. An empty run costs only the $0.0005 start fee.

**Opt-in add-ons.** `includePhones` adds a phone number ($4.996 per 1,000 found on the Free plan) and `includeEmails` adds a work email ($0.963 per 1,000 found on the Free plan). Each is charged once per person, only when the number or email is in the row; off by default.

**Plan-credit math.** The free plan's $5 monthly credit covers about 667 rows at the Free price.

#### Success-only billing

You are charged only for a row that names a first holder. A domain that is not on file, a hosting domain, a role with no people or no start dates, a role with more than 200 current people, a repeat and a failed lookup are listed in `MISSES` (and, where it helps, as one free notice row) and cost nothing.

#### The free plan

Free Apify accounts get up to 100 company domains looked up per run, and as many runs as their Apify credit covers. Nothing is stored on our side. Domains beyond 100 are listed in `MISSES` as free and one free notice row (`reason: "free_plan_limit"`) says so. Use a paid Apify plan for no per-run limit.

#### Keep a run small while you test

`limit` (default 100 rows, maximum 10,000) caps the whole run and the spend. Try two domains and one role first, read the rows, then scale up.

***

### ⚡ Why this first hire actor?

- **First, not newest.** It looks at current staff and at former staff with dated positions, so a first sales hire who left two years ago is still found.
- **Is the role filled today?** `hasCurrentHolder` and `currentHolders` tell you whether the company has someone in the function now, which is the difference between "just hired their first" and "lost their only one".
- **Honest about gaps.** People without a start year are counted in `holdersWithoutStartYear` and never named. `coverage` says `partial` when the former-staff search was cut.
- **Several roles per run.** Up to 5 keywords; each gets its own row per company.
- **Success-only.** No match, oversized roles, repeats and notices are free.

***

### 🎯 Use cases: sell into a function that has just been created

- **Sell to the first owner.** A company whose first sales, marketing or security hire started this year is choosing its first tools and vendors.
- **Spot a lost function.** `hasCurrentHolder: false` shows a company that once had the role and has nobody in it now.
- **Time outreach.** Run the same domains monthly and watch which companies get a first holder.
- **Agent workflows.** An AI agent holds a list of domains and needs "who started this function here".

***

### 🚀 Quick start: first sales hire at three companies

#### 1. One role, a few domains

```json
{ "items": ["linear.app", "posthog.com", "vercel.com"], "roles": ["sales"], "limit": 10 }
```

#### 2. Two roles at once

```json
{ "items": ["https://www.sentry.io/about", "retool.com"], "roles": ["marketing", "security"], "limit": 20 }
```

#### 3. With contact add-ons

```json
{ "items": ["supabase.com"], "roles": ["sales"], "includeEmails": true, "includePhones": true }
```

***

### ⚙️ Inputs

| Key | Type | Default | What it does |
|---|---|---|---|
| `items` | array of strings | required | Company domains, website URLs or emails (reduced to the domain). A company name is not a domain and is listed in `MISSES` as `invalid_domain`. At most 500. Free plan: 100. |
| `roles` | array of strings | required | 1 to 5 title keywords, 3 to 64 characters, any capitalisation. A person counts when their title contains the keyword, so `sales` also matches "Salesforce Administrator". Use `human resources`, not `hr`. |
| `limit` | integer | 100 | Most rows delivered in the whole run, which also caps what is charged. Maximum 10,000. |
| `includePhones` | boolean | false | Add-on. Adds a `phone` to the first-holder person when one is on file, charged $4.996 per 1,000 found on the Free plan. |
| `includeEmails` | boolean | false | Add-on. Adds a work `email` when one is on file, charged $0.963 per 1,000 found on the Free plan. The address is one on record for the person: for a former holder it can be from a later employer. |
| `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 company and role, in your input order. Empty values are left out.

| Key | Type | Meaning, and when it is missing |
|---|---|---|
| `signalType` | string | Always `first_role_holder` |
| `role` | string | The keyword you gave, as you wrote it |
| `companyDomain`, `companyName` | string | The domain and the company on file for it. `companyName` is missing when no company record was found |
| `fullName`, `firstName`, `lastName` | string | The first holder |
| `jobTitle` | string | The holder's title in that first position |
| `seniority` | string | Title bucket (manager, director, cxo...). Only when the holder was found on the current roster |
| `startYear` | integer | Year the first position started. The only start information in the data |
| `startPrecision` | string | Always `year` |
| `endYear` | integer | Year the holder left. Missing while the holder is still in the role |
| `status` | string | `current` or `former` |
| `foundIn` | string | `roster` (current staff) or `work_history` (read from the person's dated career history) |
| `tiedForFirst` | integer | People who share the earliest start year. When more than 1, the one who has left is shown |
| `hasCurrentHolder` | boolean | Whether anyone with a matching title is at the company now |
| `currentHolders` | integer | Distinct people with a matching title now |
| `holdersFound` | integer | Distinct current and former people found |
| `holdersWithoutStartYear` | integer | Found people with no start year; counted, never named |
| `coverage` | string | `complete`, or `partial` when the former-staff search was cut (see "How to read the rows") |
| `location`, `country`, `headline` | string | The holder's profile place (country as two-letter code) and headline |
| `profileUrl`, `slug` | string | Public profile URL and slug |
| `hasWorkEmail`, `hasPersonalEmail` | boolean | Whether an address is on record. Not the address |
| `updatedAt` | string | When the profile was last refreshed in the data |
| `phone` | string | Only with `includePhones`, and only when a number is on file. Charged once per person as `phone-found` |
| `email` | string | Only with `includeEmails`, and only when a work email is on file. Charged once per person as `email-found` |
| `audit` | object | Only with `includeAudit`: `requestId`, `latencyMs`, `inputRaw` |

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

```json
{
  "signalType": "first_role_holder",
  "role": "sales",
  "companyDomain": "acme.com",
  "companyName": "Acme Co",
  "fullName": "Ann Example",
  "firstName": "Ann",
  "lastName": "Example",
  "jobTitle": "Sales Representative",
  "startYear": 2019,
  "startPrecision": "year",
  "endYear": 2021,
  "status": "former",
  "foundIn": "work_history",
  "tiedForFirst": 1,
  "hasCurrentHolder": true,
  "currentHolders": 3,
  "holdersFound": 4,
  "holdersWithoutStartYear": 0,
  "coverage": "complete",
  "location": "Dublin, Ireland",
  "country": "IE",
  "profileUrl": "https://linkedin.com/in/ann-example",
  "slug": "ann-example"
}
```

#### How to read the rows

- **How the first holder is chosen.** Current staff whose title contains the keyword come from the company's roster. Former staff come from a search for people who once worked at the company and held a matching title; each is checked against their dated career history for a matching position at that company. The earliest start year wins. A person who was promoted inside the company counts from the earlier position.
- **Matching is on the title text.** `sales` also matches "Salesforce Administrator", and a title in another language is missed. Pick the keyword you would search for.
- **What `coverage: "partial"` means.** The former-staff search reads up to 10 people per group of regions and checks up to 20 career histories per company, in two groups of regions that together cover every continent except Antarctica. When more people exist, when no company record was found for the domain, or when a lookup failed, the row is marked partial. The named holder is real, but an earlier one may exist.
- **Large roles are refused.** A role with more than 200 current people (for example `sales` at a very large company) is not a first-hire question. The company gets a free notice (`role_too_large`) instead of a row. Try a narrower keyword.
- **Start years.** In our checks on four well-known domains, 60 of 63 current people with a matching title had a start year (2026-11-16). Those without one are counted and never named.
- **Profiles can lag.** The data is a snapshot refreshed on a schedule. A hire after the last refresh is not in it. Profiles that were removed are left out.

#### Other records in the run

- **Notice rows** (`type: "notice"`, free): `unknown_domain`, `domain_too_broad`, `role_too_large`, `no_holders`, `no_start_dates`, `free_plan_limit`, `limit_reached`, `time_limit`. Each has a `reason` and a `message`.
- **`MISSES`** (key-value store): every domain or role that produced no row, with its index and a reason.
- **`RUN_SUMMARY`**: counts per domain, past lookups, skipped rows and the stop reason.

#### What is NOT returned

- The exact month a role started, or a hire's start date to the day.
- People whose profile is not on file, or whose matching position has no start date.
- Any email or phone unless you switch on the add-ons.
- Companies you did not list: there is no search by industry or country.

***

### 🛡️ Reliable results

- **Success-only billing.** A row is charged only when a first holder is named.
- **Charge first, deliver after.** A charged row is always delivered; the run stops cleanly at your spend cap.
- **One holder, one count.** The same person under several profile records, or in the roster and in the work history, is one holder.
- **A person who is first in two roles gets one row per role,** each charged once.
- **Typos fail early.** An unsupported field, a role keyword outside 3 to 64 characters or a limit above its maximum stops the run before any charge.
- **Time limit.** A run stops starting new domains in its last 3 minutes and lists the rest as free.

***

### 🤖 For AI agents (MCP)

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

> "Use b2bdata/first-time-role-detector with items=\["linear.app", "posthog.com"], roles=\["sales"] and limit=10. Return companyDomain, fullName, startYear, status and hasCurrentHolder."

**When to use it.** You have company domains and want to know who first held a function there and whether it is filled.
**When not to.** You need every current employee (use b2bdata/people-at-company), recent C-level hires (use b2bdata/new-exec-hires), or companies you have not named.
**Input contract.** `items` (domains) and `roles` (1 to 5 keywords) are required; `limit` 1-10,000 (default 100).
**Output contract.** One row per company and role with `fullName`, `startYear`, `status`, `hasCurrentHolder`, `coverage`, `profileUrl`. Output is schema-stable. No match is a free notice row.
**Smoke test.** `{"items": ["linear.app"], "roles": ["sales"], "limit": 1}` returns one row.
**Error cases.** Missing `items` or `roles`, an unsupported field, a keyword under 3 characters or a bad number ends the run SUCCEEDED with one free 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`, `role`, `startYear` and `profileUrl`.

***

### 🕐 Schedule examples

- **Monthly first-hire watch.** A saved task with your target-account domains and `roles: ["sales", "marketing"]`, run monthly; compare `startYear` and `hasCurrentHolder` with last month.
- **Quarterly market scan.** One task per industry list with `roles: ["security"]`.

***

### 🔗 Related actors

- `b2bdata/new-exec-hires`: C-level and VP people who recently started a role, by country or domain. [Open](https://apify.com/b2bdata/new-exec-hires)
- `b2bdata/people-at-company`: every current employee of a company by domain, filtered by seniority. [Open](https://apify.com/b2bdata/people-at-company)
- `b2bdata/decision-makers-by-company`: the decision makers at each company on a list. [Open](https://apify.com/b2bdata/decision-makers-by-company)
- `b2bdata/recruiter-finder`: recruiters and talent leads at a company. [Open](https://apify.com/b2bdata/recruiter-finder)

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

***

### ❓ FAQ

#### Data and coverage

**How do I find the first sales hire at a company?**
Give the company domain in `items` and `sales` in `roles`. You get one row with the earliest-starting person whose title contains sales, their start year and whether they still hold it.

**Does it include people who left the company?**
Yes, when their profile is on file and shows the matching position with dates. The row says `status: "former"` and carries `endYear`.

**Is the first holder really the company's first hire?**
Not always. It is the first person on record with a dated matching position. Someone who removed their profile, or whose position has no start date, cannot be found. `holdersWithoutStartYear` shows the undated ones.

**Why did I get no row for a big company?**
A role with more than 200 current people matching the keyword is refused with a free notice, because a large team has no single first hire to find. Try a narrower keyword such as `head of sales`.

**What does `coverage: "partial"` mean?**
The search of former staff was cut: more people than the actor reads, no company record for the domain, or a failed lookup. The named holder is real, but an earlier one may exist.

#### Pricing

**What do I pay when nothing matches?**
Only the $0.0005 start fee per run. Misses, oversized roles, repeats and notices are free.

***

### 🛟 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/first-time-role-detector/changelog.md

# Actor input Schema

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

Company domains to look at, for example \["linear.app", "https://www.posthog.com/about", "jane@vercel.com"]. A website URL or email is reduced to its domain; a company name is not a domain and is listed in MISSES as invalid_domain. At most 500 per run. Free plan: 100 domains per run.

## `roles` (type: `array`):

Title keywords, 3 to 64 characters each, up to 5, for example \["sales", "marketing", "security"]. A person counts when their title contains the keyword (any capitalisation), so "sales" also matches "Salesforce Administrator". You get one row per company and keyword. Use "human resources", not "hr".

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

Most rows delivered in the whole run, which also caps what is charged. One row is one company and one role. Default 100, maximum 10,000. Companies not reached are listed in MISSES and are not charged.

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

Adds a direct phone number to each first-hire person who has one. Charged $4.996 per 1,000 numbers found on the Free plan (less on paid plans), once per person. People without a phone cost nothing extra.

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

Adds a work email to each first-hire person who has one. Charged $0.963 per 1,000 emails found on the Free plan (less on paid plans), once per person. People without a work email cost nothing extra.

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

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

## Actor input object example

```json
{
  "items": [
    "linear.app",
    "posthog.com"
  ],
  "roles": [
    "sales"
  ],
  "limit": 100,
  "includePhones": false,
  "includeEmails": false,
  "includeAudit": false
}
```

# Actor output Schema

## `firstHolders` (type: `string`):

One row per company and role: first holder, start year, status, who holds the role now and coverage

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

Counts per domain, misses 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": [
        "linear.app",
        "posthog.com"
    ],
    "roles": [
        "sales"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("b2bdata/first-time-role-detector").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": [
        "linear.app",
        "posthog.com",
    ],
    "roles": ["sales"],
}

# Run the Actor and wait for it to finish
run = client.actor("b2bdata/first-time-role-detector").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": [
    "linear.app",
    "posthog.com"
  ],
  "roles": [
    "sales"
  ]
}' |
apify call b2bdata/first-time-role-detector --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,b2bdata/first-time-role-detector"
        }
    }
}
```

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/vHxXZyEUVfRa7PSDm/builds/Ue0PFVmSqzSxYU5L3/openapi.json
