# LinkedIn Company & Profile Scraper (`tacps126/linkedin-companies`) Actor

Scrape public LinkedIn company and profile pages. Companies: industry, size, headcount, HQ and address, website, type, specialties, followers, posts. People: headline, location, current company, experience, education, followers, websites, posts. No login.

- **URL**: https://apify.com/tacps126/linkedin-companies.md
- **Developed by:** [Tapaswai Choudhary](https://apify.com/tacps126) (community)
- **Categories:** Lead generation, Social media
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 90.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.80 / 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/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

## LinkedIn Company & Profile Scraper

Turn a list of companies and people into clean data from their **public LinkedIn pages**. For companies you get **firmographics**: industry, company size band, **employees on LinkedIn**, headquarters and full address, **website**, company type, specialties, follower count, logo and the latest public posts. For people you get **headline, location, current company, full experience with dates and descriptions, education, followers, connections, websites** and recent posts and articles. Paste LinkedIn links or just the names from the links. No LinkedIn account or cookies needed. Export to JSON, CSV or Excel, send to Google Sheets or your CRM, or call it as an API.

**Built for** sales and lead-generation teams enriching account lists, recruiters mapping employers, investors and analysts screening companies, and anyone who needs clean company data at scale.

### Why this scraper

- **Names or links.** `microsoft`, `linkedin.com/company/openai/`, `williamhgates` or a full link with tracking junk all work. School pages too.
- **People, not just companies.** Every role with company, dates, duration, location and description; every school with dates.
- **The fields you enrich with.** Industry, size band, LinkedIn headcount, HQ, street address and postal code, website, type (public, private, partnership), specialties.
- **Recent posts.** The latest public posts with text, link, date and likes, for signals and personalization. Turn it off to keep rows lean.
- **Clean website links.** The real company website, not a LinkedIn redirect.
- **No login.** Reads only what LinkedIn shows to anyone.

### How to use it

1. Add **Companies** and/or **People** (links or names).
2. Press **Start**. Download from the **Output** tab, or connect an integration.

#### Example input

```json
{
  "companies": ["microsoft", "https://www.linkedin.com/company/openai/", "stripe"],
  "profiles": ["williamhgates", "https://www.linkedin.com/in/satyanadella/"],
  "includePosts": true
}
```

### What you get

#### Companies (`type: "company"`)

| Field | Description |
|-------|-------------|
| `name`, `url`, `slug` | Company name, LinkedIn page, the name in the link |
| `industry`, `companyType`, `specialties` | Industry, type (Public Company, Privately Held...), specialties list |
| `companySize`, `employeesOnLinkedin` | Size band ("10,001+ employees") and people on LinkedIn who list it |
| `headquarters`, `address` | HQ as shown and `{street, city, region, postalCode, country}` |
| `website`, `logo`, `followers`, `founded` | Website, logo image, follower count, founding year when shown |
| `description` | The About text |
| `recentPosts` | `[{text, url, publishedAt, likes}]` |
| `input`, `scrapedAt` | What you entered and when it was read |

#### People (`type: "profile"`)

| Field | Description |
|-------|-------------|
| `name`, `url`, `username` | Name, profile link, the name in the link |
| `headline`, `about`, `location`, `countryCode` | Headline, About text, location |
| `currentCompany`, `companies`, `jobTitles` | Current employer and the companies listed with start years |
| `experience` | `[{title, company, linkedinUrl, startDate, endDate, current, duration, location, description}]` |
| `education` | `[{school, degree, linkedinUrl, startDate, endDate}]` |
| `followers`, `connections`, `badges`, `photo` | Audience size, badges such as Top Voice, photo link |
| `websites`, `languages`, `awards` | Links and extras when shown |
| `articles`, `recentPosts` | Their latest articles and posts |

Company example (shortened):

```json
{
  "name": "Microsoft",
  "industry": "Software Development",
  "companySize": "10,001+ employees",
  "employeesOnLinkedin": 231109,
  "headquarters": "Redmond, Washington",
  "address": { "street": "1 Microsoft Way", "city": "Redmond", "region": "Washington", "postalCode": "98052", "country": "US" },
  "website": "https://news.microsoft.com/",
  "companyType": "Public Company",
  "followers": 29523292,
  "url": "https://www.linkedin.com/company/microsoft"
}
```

### Pricing

Pay per result: one charge per company or profile returned, plus a tiny start fee. Pages that can't be read are free. See the **Pricing** tab for exact rates, and set a maximum charge per run to cap spend.

On Apify's **free plan** each run returns up to 50 results, enough to try it out. Any paid Apify plan removes the limit.

### FAQ

**Do I need a LinkedIn account?** No. The Actor reads only what LinkedIn shows to visitors who are not signed in.

**Can I get emails or phone numbers?** No. Public LinkedIn pages do not show them.

**Can I list a company's employees?** No. Give the profiles you want; it does not search for people.

**What if a company page is gone?** The run notes it in the log and moves on; you are not charged for it.

**Is it legal?** The Actor collects publicly available information. Profiles are personal data: under GDPR and similar laws you need a lawful reason to process them. You're responsible for how you use the data under the laws and terms that apply to you.

### Support

Missing a field or a company that won't load? Open an issue on the **Issues** tab with the link and what you expected.

# Actor input Schema

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

LinkedIn company links (linkedin.com/company/...) or the name from the link (for example `microsoft`). School pages work too.

## `profiles` (type: `array`):

LinkedIn profile links (linkedin.com/in/...) or the name from the link (for example `williamhgates`).

## `startUrls` (type: `array`):

Any other LinkedIn company, school or profile links; the kind is read from each link.

## `includePosts` (type: `boolean`):

Add the latest public posts and articles shown on each page (text, link, date, likes).

## `maxItems` (type: `integer`):

Maximum number of companies and people to return.

## `maxConcurrency` (type: `integer`):

How many pages to read at once.

## `proxyConfiguration` (type: `object`):

Keep the default setting for reliable results.

## `debug` (type: `boolean`):

More detail in the run log.

## Actor input object example

```json
{
  "companies": [
    "microsoft",
    "https://www.linkedin.com/company/openai/"
  ],
  "profiles": [
    "williamhgates"
  ],
  "includePosts": true,
  "maxItems": 1000,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "debug": false
}
```

# Actor output Schema

## `results` (type: `string`):

The produced items (default dataset items).

# 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": [
        "microsoft",
        "https://www.linkedin.com/company/openai/"
    ],
    "profiles": [
        "williamhgates"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tacps126/linkedin-companies").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": [
        "microsoft",
        "https://www.linkedin.com/company/openai/",
    ],
    "profiles": ["williamhgates"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("tacps126/linkedin-companies").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": [
    "microsoft",
    "https://www.linkedin.com/company/openai/"
  ],
  "profiles": [
    "williamhgates"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call tacps126/linkedin-companies --silent --output-dataset

```

## MCP server setup

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

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/oHvuLNXOo24jpTPvA/builds/ZboaJZb20vmfS4q1M/openapi.json
