# LinkedIn Company Scraper - No Cookies, Bulk Enrichment (`andrew_babo/linkedin-company`) Actor

Enrich LinkedIn company pages in bulk without a login: name, website, phone, employee count, followers, founded year, HQ and all locations, specialties, industries, company type and funding data. HTTP-first engine with a 30-day cache. Export CSV, Excel, JSON.

- **URL**: https://apify.com/andrew\_babo/linkedin-company.md
- **Developed by:** [Andrew Babo](https://apify.com/andrew_babo) (community)
- **Categories:** Lead generation, Business, SEO tools
- **Stats:** 716 total users, 4 monthly users, 99.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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 Scraper — No Cookies, Bulk Enrichment

Enrich a list of LinkedIn company pages into clean, structured company records. **No login, no account, no `li_at` cookie.** Plain HTTP against LinkedIn's public company pages — no browser — so it is fast and cheap per company.

### Measured head-to-head (real runs, not estimates)

Same 5 company pages, same day, sequential runs, cold cache on our side:

| | This actor | harvestapi/linkedin-company |
|---|---|---|
| Time | **6.5 s** | 8.6 s |
| Cost per 1,000 companies | **$0.29** | $4.01 |
| Employee count, website | 100% | 100% (identical values) |
| Follower count | 100% | 100% (within rounding) |
| `headquarter` | 100% | not returned |
| Blocked requests | 0 | 0 |

Roughly **14x cheaper for the same data**, and about 2 HTTP requests per company. Repeat runs hit the 30-day cache and cost close to nothing.

### Input

Give it URLs, slugs, or plain company names:

```json
{
  "companies": [
    "https://www.linkedin.com/company/apify/",
    "openai"
  ],
  "searches": ["Grab Singapore"],
  "maxItems": 1000,
  "speedMode": "turbo"
}
```

Names in `searches` are resolved to a LinkedIn company page before scraping.

### What you get

| Field | Notes |
|---|---|
| `name`, `universalName`, `linkedinUrl`, `logo` | Company identity |
| `tagline`, `description` | Short and long about text |
| `website`, `phone` | Real corporate site (not a LinkedIn redirect) |
| `industries`, `specialities`, `companyType` | Classification |
| `employeeCount`, `employeeCountRange`, `followerCount` | Size and reach |
| `foundedOn` | Founding year |
| `headquarter`, `locations` | Street, city, region, postal code, country |
| `fundingData`, `similarOrganizations`, `jobSearchUrl` | When available |
| `source`, `scrapedAt` | Where each record came from and when |

### Built-in 30-day cache

Company profiles barely change. Every scraped company is cached for 30 days (configurable) in the actor's key-value store, so re-running the same list is nearly free — you only pay for companies you have not seen recently.

### Honest limits without a cookie

Public company pages do not expose employee lists, contact emails, or LinkedIn's internal analytics. This actor returns only what LinkedIn shows to a logged-out visitor. `liAtCookie` is optional and not required.

### Proxy

Use Apify **residential** proxies. LinkedIn rate-limits per IP; the actor paces each session, warms up cookies, and rotates any IP that returns a `999`.

### Output

CSV, Excel, JSON, JSONL or API. Run statistics — companies scraped, cache hits, blocked requests, per-field coverage — are stored in the key-value store under `STATS`.

### Batch input and reported failures (new)

`companies` accepts a batch of URLs (25–200 per run is normal). Any input that produced no
company row is reported instead of silently dropped: see `NOT_FOUND` in the key-value store
and the `notFound` array inside `STATS`, each entry with its reason
(`notALinkedInCompanyUrl`, `noCompanyPageFound`, `pageUnavailableOrBlocked`, `runTimeLimitReached`).

`includeRunSummary` is now **off** by default, so the dataset holds company rows only.
`STATS` also reports `estimatedCostUsd` and `costPer1000Usd` for budget tracking.

Field shapes match harvestapi so you can swap actors without changing code:
`foundedOn` is `{ year, month, day }` and `employeeCountRange` is `{ start, end }`
(`employeeCountRangeText` keeps the printed form, e.g. `"201-500"`).

**Phone:** LinkedIn does not print a phone number on logged-out company pages at all — we
verified this across sample pages, including the `/about` tab. Providers that return one are
reading it through a logged-in session. With `liAtCookie` set, this actor picks it up too.

### For AI agents (MCP-ready)

This actor is built to be called by AI agents. It works out of the box with the
[Apify MCP Server](https://mcp.apify.com) — add it to Claude Desktop, Cursor or any MCP
client: the agent can enrich known companies on its own.

```json
{
  "mcpServers": {
    "linkedin-company": {
      "url": "https://mcp.apify.com/?actors=andrew_babo/linkedin-company",
      "headers": { "Authorization": "Bearer <YOUR_APIFY_TOKEN>" }
    }
  }
}
```

#### Agent skill (paste into your agent's instructions)

```text
Use the "linkedin-company" tool when you ALREADY have LinkedIn company URLs
or slugs and need their public profile data: description, industry, size,
headquarters, website, followers, specialties. No cookies or login needed.
To discover companies by keyword, use "linkedin-company-search" instead.

HOW TO CALL
- { "companies": ["https://www.linkedin.com/company/apify/", "stripe"] }
- Batch many companies in one run; the actor caches results
  ("cacheTtlDays", default 30) so repeated lookups are nearly free.
- Set "failOnZeroResults": false if an empty result should not fail your
  workflow.

OUTPUT CONTRACT
- One row per company with the public fields above plus the source URL.
- A missing field means LinkedIn did not publish it — leave it empty, never
  guess the size, industry or website.
- noResults / errorCode rows explain why nothing was returned (invalid URL,
  blocked, private page); report that instead of inventing a company.
```

# Actor input Schema

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

LinkedIn company page URLs or slugs, e.g. https://www.linkedin.com/company/apify/

## `searches` (type: `array`):

Company names to look up when you do not have the LinkedIn URL.

## `scrapeAboutFallback` (type: `boolean`):

Fetch /about only when the main page returns an incomplete record. Turning this off is slightly cheaper but less complete.

## `cacheTtlDays` (type: `integer`):

Reuse a previously scraped profile for this many days. Company pages change slowly, so repeat runs cost almost nothing. 0 disables the cache.

## `speedMode` (type: `string`):

Speed mode.

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

Max concurrency.

## `liAtCookie` (type: `string`):

Leave empty. Only needed for fields LinkedIn hides from logged-out visitors. Using your own account carries a restriction risk.

## `failOnZeroResults` (type: `boolean`):

Fail run when nothing is extracted.

## `includeRunSummary` (type: `boolean`):

Append one final summary item to the dataset. Off by default so the dataset holds only company rows; the summary is always in the key-value store under STATS, and unresolved inputs under NOT\_FOUND.

## `maxRunTimeSecs` (type: `integer`):

Max run time (seconds).

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

Residential proxies are strongly recommended; datacenter IPs get blocked by LinkedIn within minutes.

## Actor input object example

```json
{
  "companies": [
    "https://www.linkedin.com/company/apify/"
  ],
  "searches": [],
  "scrapeAboutFallback": true,
  "cacheTtlDays": 30,
  "speedMode": "turbo",
  "failOnZeroResults": true,
  "includeRunSummary": false,
  "maxRunTimeSecs": 3600,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `STATS` (type: `string`):

No description

# 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": [
        "https://www.linkedin.com/company/apify/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("andrew_babo/linkedin-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 = { "companies": ["https://www.linkedin.com/company/apify/"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,andrew_babo/linkedin-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/Pu0EG3fJcJbulEm7Q/builds/2UPnutlupR8Sw0pBC/openapi.json
