# LinkedIn Company Scraper (`ramman/linkedin-company-scraper`) Actor

Scrapes public LinkedIn company profile data, including name, website, industry, size, headquarters, Job Urls, founded year, specialties, followers, and about text.

- **URL**: https://apify.com/ramman/linkedin-company-scraper.md
- **Developed by:** [ramman](https://apify.com/ramman) (community)
- **Categories:** Automation, Developer tools, Lead generation
- **Stats:** 4 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

### What does LinkedIn Company Scraper do?

**LinkedIn Company Scraper** extracts company profile details from **LinkedIn company pages** (for example `https://www.linkedin.com/company/microsoft/`). You provide one or more company URLs and the Actor saves structured records into an **Apify dataset**.

Typical extracted fields include company name, website, industry, company size, headquarters, founded year, specialties, followers, about text — and (optionally) job posting URLs linked from the company jobs page.

This Actor is designed to run on the Apify platform, so you can use **API access, scheduling, integrations, proxy rotation, and run monitoring**.

### Why use LinkedIn Company Scraper?

- **Lead generation / enrichment**: build firmographic datasets for outbound and CRM enrichment
- **Market research**: compare companies by industry, size, location, and description text
- **Automation**: replace manual copy/paste with repeatable, exportable runs
- **Easy exports**: download results as JSON, CSV, Excel, or HTML from the Dataset tab

### How to use LinkedIn Company Scraper (step-by-step)

1. Open the Actor in Apify Console and go to the **Input** tab.
2. Paste your LinkedIn company page URLs into **Company URLs**.
3. Keep **Use Apify Proxy** enabled (recommended for LinkedIn).
4. If LinkedIn shows a login wall, add your **`li_at` session cookie** (optional but helps a lot).
5. Click **Start** and wait for the run to finish.
6. Open the **Dataset** tab to view, export, or download your results.

### Input

You configure the run from the **Input** tab in Apify Console.

#### Main input fields

- **`companyUrls` (required)**: LinkedIn company profile URLs to scrape.
- **`useApifyProxy` (recommended)**: turns on Apify Proxy to reduce blocks.
- **`apifyProxyGroups`**: which proxy group(s) to use (default: `RESIDENTIAL`).
- **`linkedInSessionCookie` (`li_at`, optional)**: paste your `li_at` cookie value from a logged-in browser session to improve access when LinkedIn blocks unauthenticated users.
- **`linkedInCookies` (advanced, optional)**: pass full cookie objects if you know what you’re doing.
- **`maxRequestRetries`**: how many times to retry a failed company page.
- **`requestDelaySecs`**: delay between requests to reduce blocking risk.
- **`maxJobUrls`**: maximum number of job posting URLs to extract per company.

#### Input example

```json
{
  "companyUrls": [
    "https://www.linkedin.com/company/microsoft/",
    "https://www.linkedin.com/company/google/"
  ],
  "useApifyProxy": true,
  "apifyProxyGroups": ["RESIDENTIAL"],
  "linkedInSessionCookie": "",
  "maxRequestRetries": 3,
  "requestDelaySecs": 3,
  "maxJobUrls": 50
}
```

### Output

The Actor stores results in the **default dataset**. Each dataset item is one company.

Example output (simplified):

```json
{
  "companyName": "Microsoft",
  "linkedinUrl": "https://www.linkedin.com/company/microsoft/",
  "website": "https://news.microsoft.com/",
  "industry": "Software Development",
  "companySize": "10,001+ employees",
  "headquarters": "Redmond, Washington",
  "founded": "1975",
  "specialties": "Business Software, Developer Tools, ...",
  "followers": "25,000,000 followers",
  "about": "Every company has a mission...",
  "jobUrls": [
    "https://www.linkedin.com/jobs/view/123...",
    "https://www.linkedin.com/jobs/view/456..."
  ]
}
```

You can download the dataset in various formats such as **JSON, HTML, CSV, or Excel**.

### Data table (main fields)

| Field | Description |
| --- | --- |
| `companyName` | Official company name |
| `linkedinUrl` | LinkedIn company profile URL |
| `website` | Company website (if available) |
| `industry` | LinkedIn industry label |
| `companySize` | Employee count range |
| `headquarters` | HQ location |
| `founded` | Year founded |
| `specialties` | Listed specialties |
| `followers` | Follower count text (as shown) |
| `about` | Company description / overview |
| `jobUrls` | Job posting URLs (up to `maxJobUrls`) |

### Pricing / Cost estimation

How much does it cost to scrape LinkedIn company pages?

- The main cost driver is **how many company URLs** you scrape and whether LinkedIn requires additional retries / slower browsing.
- If you enable **Residential proxies**, success rates are usually better, but proxy usage can increase cost.
- To estimate cost quickly, run a small test (e.g. 10 URLs) and extrapolate based on your average time per company.

### Tips & advanced options

- If you get blocked or see missing fields, **increase `requestDelaySecs`** and keep concurrency low.
- For the best success rate, use **Apify Proxy + `li_at` cookie** (optional).
- If you only need company profiles (not job URLs), consider lowering `maxJobUrls` to reduce extra requests.

### FAQ, disclaimers, and support

#### Is scraping LinkedIn allowed?

Scraping LinkedIn is subject to LinkedIn’s Terms of Service and applicable laws. Use this Actor responsibly, respect rate limits, and only collect data you are allowed to process.

#### Why do I see partial results?

LinkedIn sometimes shows a login wall or rate-limits requests. Using Apify Proxy and (optionally) a valid `li_at` cookie usually improves access, but LinkedIn page structure can change over time.

#### Support

For issues or feature requests, please use the Actor **Issues** tab in Apify Console.

### For developers (optional)

Local development:

```bash
npm install
apify run
```

# Actor input Schema

## `companyUrls` (type: `array`):

LinkedIn company profile URLs to scrape (e.g. https://www.linkedin.com/company/microsoft/).

## `useApifyProxy` (type: `boolean`):

Recommended for LinkedIn. Uses Apify residential proxies to reduce login blocks.

## `apifyProxyGroups` (type: `array`):

Proxy groups to use. RESIDENTIAL is recommended for LinkedIn.

## `linkedInSessionCookie` (type: `string`):

Optional li_at cookie value from a logged-in LinkedIn browser session. Improves success rate when LinkedIn shows a login wall.

## `linkedInCookies` (type: `array`):

Optional full cookie objects to pass to the browser context.

## `maxRequestRetries` (type: `integer`):

How many times to retry a failed company page request.

## `requestDelaySecs` (type: `integer`):

Minimum delay between requests to linkedin.com to reduce blocking risk.

## `maxJobUrls` (type: `integer`):

Maximum number of job posting URLs to extract per company from the jobs page.

## Actor input object example

```json
{
  "companyUrls": [
    "https://www.linkedin.com/company/microsoft/",
    "https://www.linkedin.com/company/google/"
  ],
  "useApifyProxy": true,
  "apifyProxyGroups": [
    "RESIDENTIAL"
  ],
  "linkedInCookies": [],
  "maxRequestRetries": 3,
  "requestDelaySecs": 3,
  "maxJobUrls": 50
}
```

# Actor output Schema

## `results` (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 = {
    "companyUrls": [
        "https://www.linkedin.com/company/microsoft/",
        "https://www.linkedin.com/company/google/"
    ],
    "apifyProxyGroups": [
        "RESIDENTIAL"
    ],
    "linkedInCookies": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("ramman/linkedin-company-scraper").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 = {
    "companyUrls": [
        "https://www.linkedin.com/company/microsoft/",
        "https://www.linkedin.com/company/google/",
    ],
    "apifyProxyGroups": ["RESIDENTIAL"],
    "linkedInCookies": [],
}

# Run the Actor and wait for it to finish
run = client.actor("ramman/linkedin-company-scraper").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 '{
  "companyUrls": [
    "https://www.linkedin.com/company/microsoft/",
    "https://www.linkedin.com/company/google/"
  ],
  "apifyProxyGroups": [
    "RESIDENTIAL"
  ],
  "linkedInCookies": []
}' |
apify call ramman/linkedin-company-scraper --silent --output-dataset

```

## MCP server setup

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

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/6pe2klYXFwddOxhub/builds/y3ETdoEb6weDcrR3C/openapi.json
