# LinkedIn Company Scraper - Firmographics and Domains (`s-r/linkedin-company-scraper`) Actor

Extract public LinkedIn company profiles from URLs, slugs or domains. Get industry, employee ranges, headquarters, websites, specialties and follower counts, with uncharged diagnostic rows for missing or blocked pages.

- **URL**: https://apify.com/s-r/linkedin-company-scraper.md
- **Developed by:** [SR](https://apify.com/s-r) (community)
- **Categories:** Lead generation, Social media
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.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.

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 Scraper

LinkedIn Company Scraper turns public company URLs, slugs and business domains into structured company profiles for sales research, account enrichment and company directory maintenance. Supply the companies you already know, or start with their domains and inspect the match evidence on each result.

The actor returns a company name, industry, employee range, headquarters, declared website, specialties and follower count. Available company descriptions, logos, locations, founding years and organization types are included as additional fields. Public showcase pages are supported and identified separately. The actor reads company information only: employee profiles, employee names and company posts are outside its scope.

### LinkedIn Company Scraper input

Use `companyUrls` for a list of public company URLs or slugs. For example, the verified input `{"companyUrls":["microsoft","https://nl.linkedin.com/company/shoppingscraper/"]}` reads Microsoft and ShoppingScraper. The `companies` field is an alias; if both fields are supplied, their entries are combined. Duplicate company URLs are normalized and returned once.

Country subdomains, tracking parameters and company subpages are normalized to the public company page. A URL ending in `/about/` therefore reads the base company page. Names containing dots, such as the `booking.com` slug, are accepted. Numeric organization IDs require login and are not supported as direct inputs. Use the public company slug instead. Schools and personal profiles are outside this product's scope.

Use `domains` to find a company profile from its business domain. The verified input `{"domains":["stripe.com","nosuchdomainzzq99.com"]}` requests one business domain and a domain with no company page. Domain lookup checks candidate profiles against the website declared on each page. It considers up to three different company candidates before deciding whether there is a match.

A website URL is also accepted in `domains`, including a path, query or fragment. The actor uses its hostname for the lookup and preserves the original entry in `input`. Website URLs with login credentials or explicit ports are rejected.

`maxCompanies` defaults to 100 and accepts values from 1 to 1,000. It limits all output rows, including diagnostics. If your input exceeds that maximum, a persistent warning states how many entries were skipped. Provide at least one usable URL, slug or public domain. Empty input and incorrectly typed lists produce an English `invalid_input` error. In a mixed valid list, an unsupported entry gets its own diagnostic row so that the original input remains traceable.

### Output and company fields

The default dataset contains one row per normalized input. `input` preserves the supplied entry, `found` identifies a successful company result, and `fetched_at` records the UTC observation time. Every row identifies its `source` and `platform`. Successfully read companies contain `name`, `profile_url`, `profile_id`, `slug` and `page_type`, followed by their available firmographic fields.

`company_size` is the displayed range. `employees_min` and `employees_max` provide its numeric bounds; `1 employee` gives 1 for both bounds, while an open range such as `10,001+ employees` has no upper bound. `employees_on_linkedin` counts members associated with the company on LinkedIn. It is a separate measure and must not be treated as a verified payroll total. `followers` is a numeric public follower count.

`headquarters` contains the displayed headquarters text. When available, `address` separates street, city, region, postal code and country, while `locations` lists the public office address texts. `website` is the website the company itself entered. It can point to a careers site, a news site or another corporate property. Organization type, founding year and employee range are also self-reported information, rather than registry verification.

For domain lookups, `domain_match: "website"` means that the requested domain and declared website have the same registrable domain. `domain_match: "name"` means that their domain labels match across different suffixes. Review name matches before joining them automatically to customer records. A matching slug alone is insufficient: the actor returns an uncharged miss when the website evidence does not support the candidate.

Unavailable optional fields are `null`. The actor does not invent descriptions, addresses or employee counts. A page that cannot provide the required company fields gets a diagnostic result instead of a partially identified company.

### Missing pages, blocked pages and continuation

A diagnostic row has `found: false`, an `error_code` and a readable English `error`. Missing pages and unresolved domains use `not_found`. Login walls or unavailable company content use `upstream_blocked`; temporary source limits use `rate_limited`; completed timeout attempts use `upstream_timeout`. Invalid individual entries use `invalid_input`. Diagnostics help distinguish an absent company from a temporary retrieval problem, and preserve the input for later review.

A recognizable public company page without an industry or company size also returns an uncharged `not_found` row. Its message explains the missing firmographics. The actor does not retry such a page; every successful company result still includes a name, industry, company size and follower count.

Large lists are processed in bounded batches. On Apify, continuation is handled automatically up to the requested maximum. API users receive `next_cursor` when more work remains and submit it with the same original input lists. Signed continuation preserves pending domain candidates and completed work. `partial` and `warnings` describe an unfinished API batch. Continue until `next_cursor` is null; do not append previously collected companies back into the input.

### Pricing and account limits

The chargeable event is `company`: one successfully delivered row with `found: true`. Missing companies, unresolved domains, invalid individual entries and blocked pages do not trigger this event. There is no product start-event charge. The current event price shown on the actor's Pricing tab is authoritative, including any applicable volume discounts and platform costs.

Non-paying accounts can receive up to ten dataset rows per run. Diagnostic rows count toward this delivery allowance, although they do not trigger the company event. Paying accounts can request larger lists with `maxCompanies`. A larger requested maximum does not turn a missing result into a paid company, and only delivered successful rows are counted for the company event.

### FAQ

#### Do I need LinkedIn account cookies?

No. The actor reads public company information without customer account cookies. Content that is available only after login is outside its scope. A company can change its public visibility, so a previously readable URL may later produce a diagnostic row.

#### Can I collect employees or company posts?

This version returns company firmographics only. It does not deliver employee profiles, employee names or posts. Use the company identifier and website as join keys for your company enrichment workflow.

#### How reliable is a domain match?

An exact website match is stronger than a name match across different domain suffixes. Both are explicit in `domain_match`. A name match can identify an unrelated business, so review it before an automated merge. If no candidate passes either check, the actor returns `not_found`.

#### Is employee size a verified company fact?

No. Employee range and organization type are declared by the company, and associated LinkedIn members are a different metric. Treat the result as a timestamped public profile observation. For legal identity, registration status or verified company facts, combine it with an appropriate company register source.

# Actor input Schema

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

Public LinkedIn company or showcase URLs or slugs. Duplicate normalized URLs are returned once.

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

Alias for companyUrls; both lists are combined and deduplicated.

## `domains` (type: `array`):

Optional public company domains or website URLs. Paths, queries and fragments are ignored; login credentials and explicit ports are rejected. Candidates are checked against their declared website.

## `maxCompanies` (type: `integer`):

Maximum number of output rows, including uncharged diagnostic rows.

## Actor input object example

```json
{
  "companyUrls": [
    "microsoft"
  ],
  "maxCompanies": 100
}
```

# Actor output Schema

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

No description

## `output` (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": [
        "microsoft"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("s-r/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": ["microsoft"] }

# Run the Actor and wait for it to finish
run = client.actor("s-r/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": [
    "microsoft"
  ]
}' |
apify call s-r/linkedin-company-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,s-r/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/su9izLSJ3b9wdjOzx/builds/1deyqOEC8UR95OIxT/openapi.json
