# Linkedin Company Scraper (`api_massta/linkedin-company-scraper`) Actor

**Extract LinkedIn company data at scale — overview, website, industry, company size, headquarters, and specialties — for a single company or thousands.** Feed your CRM, enrich leads, research competitors, or give your AI agents live company context. No login required for public profiles.

- **URL**: https://apify.com/api\_massta/linkedin-company-scraper.md
- **Developed by:** [Sh0ck Labs](https://apify.com/api_massta) (community)
- **Categories:** Jobs, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 company scrapeds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## LinkedIn Company Profile Scraper & API 🏢

**Extract LinkedIn company data at scale — overview, website, industry, company size, headquarters, and specialties — for a single company or thousands.** Feed your CRM, enrich leads, research competitors, or give your AI agents live company context. No login required for public profiles.

Pass a company URL or a plain slug (`stripe`, `microsoft`) and get back clean, structured JSON. Run it as a one-off batch job, schedule it, or turn it into a **real-time API** your apps and AI agents can call.

---

### ✨ What you get

- 🏢 **Full company firmographics** — overview/description, website, industry, company size, headquarters, and specialties
- 🔢 **Bulk lookups** — pass a whole list of companies in one run
- 🔗 **Flexible input** — full LinkedIn company URLs *or* bare slugs/handles
- 🆓 **No login for public profiles** — start scraping immediately
- 🔐 **Cookies for full data** — supply a LinkedIn session for the complete logged-in view
- 🤖 **Real-time API + MCP** — call it live from your code or from AI agents
- 💸 **Pay only for results** — you're billed per company that actually returns data

---

### 🎯 Use cases

- **Sales & lead generation** — enrich your CRM and prospect lists with company firmographics (size, industry, HQ, website) for better targeting and routing.
- **Recruiting & sourcing** — research target employers and build company shortlists.
- **Market & competitor research** — profile entire segments and track how companies describe themselves.
- **AI agents & RAG pipelines** — give LLM apps fresh, structured company context on demand via the Apify MCP server.
- **Investment & due diligence** — pull consistent company snapshots across a portfolio or watchlist.

---

### 📥 Input

| Field | Description |
|---|---|
| `companies` | List of LinkedIn companies — full URLs (`https://www.linkedin.com/company/stripe`) or slugs (`stripe`). |
| `cookies` *(optional)* | LinkedIn session cookies (JSON export) for the full logged-in profile. |
| `proxy` | Proxy configuration (recommended for larger or authenticated runs). |
| `timeout` | Seconds before a page load gives up. |

```json
{
  "companies": ["stripe", "https://www.linkedin.com/company/microsoft"]
}
````

### 📤 Output

One record per company:

```json
{
  "company_url": "https://www.linkedin.com/company/stripe/",
  "overview": "Stripe is a financial infrastructure platform for businesses...",
  "website": "https://stripe.com",
  "industry": "Financial Services",
  "size": "5,001-10,000 employees",
  "headquarters": "South San Francisco, CA",
  "specialties": "online payments, APIs, fraud prevention, billing"
}
```

***

### 🤖 Use it as a real-time API / AI agent tool

Enable **Standby mode** and the Actor stays warm, answering HTTP requests instantly — perfect for AI agents, RAG pipelines, and apps that need company data on demand:

```bash
curl "https://<your-standby-url>/?company=stripe"
## or several at once:
curl "https://<your-standby-url>/?companies=stripe,microsoft"
```

Returns `{ "count": N, "items": [ ... ] }`. AI agents can discover and call this Actor as a tool through the **[Apify MCP server](https://mcp.apify.com)** (Claude, Cursor, Windsurf, and any MCP client).

***

### 💸 Pricing

This Actor uses **pay-per-event** pricing: you're billed **per company that returns data** (`company-result`). Companies that come back empty aren't charged. You also pay Apify's standard platform usage for the run.

***

### ❓ FAQ

**Do I need a LinkedIn account or cookies?**
No — public company profiles work with no login. LinkedIn renders company pages with JavaScript behind a sign-in prompt, so the public path uses a real browser and returns the limited public view. For the complete, reliable dataset, provide LinkedIn cookies.

**Can I scrape many companies at once?**
Yes. Pass as many companies as you like in the `companies` list; each is returned as its own record.

**What input formats are accepted?**
Full company URLs (`https://www.linkedin.com/company/<slug>`) or just the slug (`<slug>`).

**Can my AI agent call this automatically?**
Yes — run it in Standby mode and connect via the Apify MCP server. Agents get a typed, live company-lookup tool.

**Is scraping LinkedIn legal?**
You are responsible for how you use scraped data. Scrape only publicly available information and comply with LinkedIn's terms and applicable laws (e.g., GDPR) in your jurisdiction.

***

### 🔧 Tips

- Use the **Apify Proxy** (especially residential) for larger runs to reduce blocking.
- For the fullest data, run with **cookies**.
- Combine with the **LinkedIn Jobs Scraper** to pair open roles with company firmographics.

# Actor input Schema

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

LinkedIn companies to look up. Each item can be a full company URL (https://www.linkedin.com/company/stripe) or just the slug ('stripe'). Add several to scrape them in one run.

## `cookies` (type: `array`):

Optional. Paste your LinkedIn session cookies (JSON export) to access the full logged-in company page. Leave empty to scrape the limited public profile with no login.

## `proxy` (type: `object`):

Proxy used for requests. Recommended for larger or authenticated runs.

## `timeout` (type: `integer`):

Seconds before the run gives up loading a page, to avoid getting stuck.

## Actor input object example

```json
{
  "companies": [
    "stripe",
    "https://www.linkedin.com/company/microsoft"
  ],
  "cookies": [],
  "proxy": {
    "useApifyProxy": true
  },
  "timeout": 300
}
```

# Actor output Schema

## `companies` (type: `string`):

One object per scraped company with fields like overview, website, industry, size, headquarters, and specialties.

# 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": [
        "stripe"
    ],
    "cookies": [],
    "proxy": {
        "useApifyProxy": true
    },
    "timeout": 300
};

// Run the Actor and wait for it to finish
const run = await client.actor("api_massta/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 = {
    "companies": ["stripe"],
    "cookies": [],
    "proxy": { "useApifyProxy": True },
    "timeout": 300,
}

# Run the Actor and wait for it to finish
run = client.actor("api_massta/linkedin-company-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": [
    "stripe"
  ],
  "cookies": [],
  "proxy": {
    "useApifyProxy": true
  },
  "timeout": 300
}' |
apify call api_massta/linkedin-company-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=api_massta/linkedin-company-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Linkedin Company Scraper",
        "description": "**Extract LinkedIn company data at scale — overview, website, industry, company size, headquarters, and specialties — for a single company or thousands.** Feed your CRM, enrich leads, research competitors, or give your AI agents live company context. No login required for public profiles.",
        "version": "0.0",
        "x-build-id": "gqhkekXt1wwlnaJF4"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/api_massta~linkedin-company-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-api_massta-linkedin-company-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/api_massta~linkedin-company-scraper/runs": {
            "post": {
                "operationId": "runs-sync-api_massta-linkedin-company-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/api_massta~linkedin-company-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-api_massta-linkedin-company-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "companies"
                ],
                "properties": {
                    "companies": {
                        "title": "Companies",
                        "type": "array",
                        "description": "LinkedIn companies to look up. Each item can be a full company URL (https://www.linkedin.com/company/stripe) or just the slug ('stripe'). Add several to scrape them in one run.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "cookies": {
                        "title": "LinkedIn cookies (optional)",
                        "type": "array",
                        "description": "Optional. Paste your LinkedIn session cookies (JSON export) to access the full logged-in company page. Leave empty to scrape the limited public profile with no login.",
                        "default": []
                    },
                    "proxy": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy used for requests. Recommended for larger or authenticated runs."
                    },
                    "timeout": {
                        "title": "Timeout",
                        "minimum": 60,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Seconds before the run gives up loading a page, to avoid getting stuck.",
                        "default": 300
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
