# LinkedIn Company Insights: Headcount by Department & Seniority (`peoplesearch/linkedin-company-insights-headcount`) Actor

How many people work at any company, by department (engineering, sales, marketing, product, data and more), by seniority and by country, from LinkedIn company pages, websites or names. No login or cookies. $10 per 1,000 companies, free when nobody is on record.

- **URL**: https://apify.com/peoplesearch/linkedin-company-insights-headcount.md
- **Developed by:** [PeopleSearch.im](https://apify.com/peoplesearch) (community)
- **Categories:** Lead generation, Business, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.00 / 1,000 companies

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/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

## LinkedIn Company Insights: Headcount by Department & Seniority

List companies and get, for each one, how many people work there and **how the team is split**: by department (engineering, sales, marketing, product, design, data, customer success, operations, finance, HR, legal, IT, consulting), by seniority (C-level, VP, director or head, manager, founder or owner) and, if you ask, by country.

Sales teams use it to size an account before they call ("40 engineers, 17 in sales, a 3-person marketing team"). Investors and analysts use it to compare how companies are built. Recruiters use it to see where a company is heavy and where it is thin.

There is no LinkedIn login, no cookie and no browser session involved. The counts come from the people a licensed B2B database holds at each company, and a company with nobody on record costs nothing.

### What it does

- **Takes companies the way you have them**: a LinkedIn company page (`linkedin.com/company/ramp`, the most exact), a website (`linear.app`) or a name. Up to 500 companies per run. Or pick the dataset of another run in **Companies from a dataset** (a company scraper, a Google Maps or LinkedIn Jobs scraper, a CRM export on Apify), so it can run after that scraper as an integration (set the field to `{{resource.defaultDatasetId}}` in the integration's input).
- **Matches a name exactly.** A name is counted at the LinkedIn company page of exactly that name when there is one, so "Monograph" never counts Monograph Capital.
- **Counts each department by its job titles.** Engineering counts the people whose current title holds engineer, developer, programmer or DevOps; Sales counts sales, account executive, account manager and business development; and so on. Each title is also searched in its other spellings.
- **Counts each seniority level** the same way: C-level (CEO, CTO, CFO and every Chief), VP, director or head, manager, founder or owner. Assistants to a chief and Product Owners are left out of the levels they only name.
- **Counts by country, state or city** for the places you list.
- **Gives shares** of the total for each department, and names the largest department.

A person can count in two departments (a Sales Engineer is in Sales and in Engineering), so the departments need not add up to the total.

### Input

| Field | What it is |
|---|---|
| `companies` | LinkedIn company pages, websites or names, up to 500. |
| `datasetId` | Or a dataset of another run whose rows name companies. |
| `departments` | The departments to count. Default all 13. |
| `seniority` | Also count by seniority. Default on. |
| `countries` | Countries, states or cities to count in. Optional. |

```json
{
    "companies": ["linear.app", "https://www.linkedin.com/company/ramp"],
    "countries": ["United States", "France"]
}
```

### Output

One row per company. The numbers below are placeholders that show the shape.

```json
{
    "inputCompany": "example.com",
    "matchedBy": "website",
    "companyPage": null,
    "companyWebsite": "example.com",
    "employeesOnRecord": 420,
    "topDepartment": "engineering",
    "departments": { "engineering": 120, "sales": 64, "marketing": 18, "product": 12, "design": 9, "data": 11, "customer_success": 30, "operations": 22, "finance": 10, "hr": 8, "legal": 3, "it": 2, "consulting": 4 },
    "seniority": { "c_level": 6, "vp": 9, "director": 31, "manager": 70, "founder_owner": 3 },
    "countries": { "United States": 310, "France": 12 },
    "engineeringCount": 120,
    "engineeringShare": 28.6,
    "salesCount": 64,
    "salesShare": 15.2
}
```

Every department and level also has its own `...Count` column (and each department a `...Share`, in percent of the total) for spreadsheets. The run's `OUTPUT` record says how each company was matched and why any was not counted.

### What it costs

You pay per company counted, nothing per month:

| What | Price |
|---|---|
| One company's breakdown | $0.01 |
| A company with nobody on record | Free |
| The run start | $0.00005 |

So 1,000 companies cost $10. On Apify's Silver plan a company costs $0.009, and on Gold and above $0.008; Apify applies the price of your plan by itself. On Apify's free plan a run counts up to 5 companies.

### Questions

**Is this the company's official employee count?**
It counts the people the database holds at the company, which follows who lists the company as their current employer on LinkedIn. It is the right figure for comparing teams and companies; a company's own stated size can differ.

**Why does a department look small?**
It counts titles that carry the department's words. People with titles that say nothing of their department ("Associate", "Partner") are in the total but in no department.

**Can a person be removed from results?**
This Actor returns counts only, never people. Anyone can ask to be left out of the database at peoplesearch.im/opt-out.

**Something missing or wrong?**
Open an issue on this Actor's Issues tab and it gets an answer. If the Actor did its job for you, a review on this page, good or bad, helps others decide whether it fits theirs.

LinkedIn is a trademark of LinkedIn Corporation. This Actor is not affiliated with or endorsed by LinkedIn.

### Related

Headcount shows how big each team is today. Whether the company is cutting it is what [Company Layoff Signals](https://apify.com/ailayoffs/company-layoff-signals) answers: its job cuts, whether it tied them to AI, and its US WARN notices. AI Layoffs publishes it, and the same owner runs both publishers.

### More tools by this publisher

The same licensed B2B database, pay per result, no login or cookies:

- [LinkedIn Company Details Scraper](https://apify.com/peoplesearch/linkedin-company-details): company websites, pages or names in, size, industry, HQ and description out.
- [LinkedIn Company Employees Finder](https://apify.com/peoplesearch/company-employees-finder): companies (website, LinkedIn page or name) in, their employees by job title out, with verified work emails.
- [LinkedIn Company Search](https://apify.com/peoplesearch/b2b-company-search): industries, places and sizes in, matching companies with LinkedIn pages out.
- [Decision Maker Email Finder](https://apify.com/peoplesearch/decision-maker-finder): company websites in, each one's founder, CEO, owner or department head out, with a verified email.
- [LinkedIn Jobs Hiring Manager & Recruiter Email Finder](https://apify.com/peoplesearch/linkedin-jobs-hiring-manager-finder): a LinkedIn Jobs scrape in, each hiring company's hiring manager and recruiter with verified emails out.
- [Google Maps Owner Email Finder](https://apify.com/peoplesearch/google-maps-owner-finder): a Google Maps Scraper dataset in, each business's owner with LinkedIn URL and verified email out.
- [B2B Leads Finder](https://apify.com/peoplesearch/b2b-leads-finder): job titles, places, industries and company sizes in, a lead list with verified emails out.
- [Apollo URL Scraper](https://apify.com/peoplesearch/apollo-url-scraper): an Apollo.io people search URL in, its leads with verified emails out, no Apollo login or credits.
- [LinkedIn Sales Navigator Scraper](https://apify.com/peoplesearch/linkedin-sales-navigator-scraper): a Sales Navigator search URL in, its leads with verified emails out, no cookies.
- [LinkedIn People Search + Email Finder](https://apify.com/peoplesearch/people-search-email-finder): who you want in plain English in, matching profiles with verified emails out.
- [LinkedIn People Search by Job Title & Company](https://apify.com/peoplesearch/linkedin-people-search-by-title): titles, companies, places, schools and skills in, LinkedIn profiles out.
- [LinkedIn Profile Scraper](https://apify.com/peoplesearch/linkedin-profile-scraper): LinkedIn profile URLs in, whole profiles out: positions, education, skills.
- [LinkedIn Profile Finder by Name](https://apify.com/peoplesearch/linkedin-profile-search-by-name): names and companies in, LinkedIn profile URLs out.
- [Email Finder by Name & Company](https://apify.com/peoplesearch/email-finder-by-name): names and companies in, verified work emails out, charged only when found.
- [Contact Enrichment](https://apify.com/peoplesearch/contact-enrichment): CRM contacts in, each one's LinkedIn profile, title and verified email out.
- [Company Email Finder](https://apify.com/peoplesearch/company-email-finder): company websites in, their verified inboxes and people's addresses out.

# Actor input Schema

## `companies` (type: `array`):

One company per line, up to 500 per run: its LinkedIn company page (linkedin.com/company/stripe, the most exact), its website (stripe.com) or its name (counted at the company page of exactly that name when there is one).

## `datasetId` (type: `string`):

The dataset of another run whose rows name companies: a company search or company scraper, a Google Maps or LinkedIn Jobs scraper, or a CRM export stored on Apify. Each row's LinkedIn company page, website or company name is read (in that order). Connected as an integration, set this field to {{resource.defaultDatasetId}}.

## `departments` (type: `array`):

The departments to count. Each counts the people currently at the company whose title holds its words (Engineering: engineer, developer, DevOps; Sales: sales, account executive, business development). Leave empty for all.

## `seniority` (type: `boolean`):

Also count C-level, VP, director or head, manager, and founder or owner titles.

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

Countries, states or cities to count the company's people in, one per line, such as United States, Germany or London.

## Actor input object example

```json
{
  "companies": [
    "linear.app",
    "https://www.linkedin.com/company/ramp"
  ],
  "seniority": true
}
```

# Actor output Schema

## `headcount` (type: `string`):

One row per company: people on record, the count and share of each department, the count of each seniority level and of each country you listed.

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

Each company as it was matched (LinkedIn page, website or name) and why any was not counted.

# 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 = {
    "companies": [
        "linear.app",
        "https://www.linkedin.com/company/ramp"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("peoplesearch/linkedin-company-insights-headcount").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 = { "companies": [
        "linear.app",
        "https://www.linkedin.com/company/ramp",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("peoplesearch/linkedin-company-insights-headcount").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 '{
  "companies": [
    "linear.app",
    "https://www.linkedin.com/company/ramp"
  ]
}' |
apify call peoplesearch/linkedin-company-insights-headcount --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,peoplesearch/linkedin-company-insights-headcount"
        }
    }
}
```

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/M0G1anvrvihvonuVe/builds/4wn5NZIkXkK9D163H/openapi.json
