# LinkedIn Company Finder & B2B Lead Generator (`scraping_solutions/linkedin-company-finder`) Actor

Find LinkedIn companies by keyword, country, and industry. Build clean, deduplicated B2B lead lists with company names, LinkedIn URLs, industries, locations, logos, and IDs. No login or cookies required.

- **URL**: https://apify.com/scraping\_solutions/linkedin-company-finder.md
- **Developed by:** [Scraping Solutions](https://apify.com/scraping_solutions) (community)
- **Categories:** Lead generation, Social media, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.10 / 1,000 results

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 Finder & B2B Lead Lists

Find public LinkedIn company pages by keyword, country, and industry. The Actor turns search results into a clean, deduplicated company dataset ready for CSV, Excel, JSON, Google Sheets, or a CRM.

No LinkedIn login or cookies are required.

### Quick start

1. Add one or more company search terms.
2. Optionally select LinkedIn countries or locations.
3. Optionally select LinkedIn industries.
4. Choose up to 750 companies per search term and click **Start**.

### Input

| Field | Required | Description |
| --- | --- | --- |
| `searchTerms` | Yes | Markets, products, industries, or company keywords. Add one term per line. |
| `locationIds` | No | LinkedIn country/location IDs selected by name. Custom numeric IDs for cities or regions are also accepted. |
| `industryIds` | No | LinkedIn industry IDs selected by name. Custom numeric industry IDs are also accepted. |
| `resultsPerSearch` | Yes | Maximum raw companies requested for each search term, from 1 to 750. Default: 200. |

#### Input example

```json
{
  "searchTerms": [
    "bank",
    "financial services"
  ],
  "locationIds": [
    "103644278"
  ],
  "industryIds": [
    "41"
  ],
  "resultsPerSearch": 750
}
```

`103644278` is the LinkedIn location ID for the United States. The visible selectors send the corresponding numeric IDs to the provider automatically.

### What this Actor does

- Searches multiple company keywords in one run.
- Filters searches by LinkedIn locations and industries.
- Retrieves up to 50 raw companies per provider page.
- Writes every completed search page to the dataset immediately.
- Normalizes company names, LinkedIn URLs, logos, industries, locations, IDs, and available public metadata.
- Removes duplicate companies across pages and search terms.
- Stops cleanly when a later provider page fails, preserving previously published results.
- Reports provider requests and estimated third-party API cost in `OUTPUT`.

### Output example

```json
{
  "companyName": "Example Bank",
  "universalName": "example-bank",
  "linkedinUrl": "https://www.linkedin.com/company/example-bank/",
  "logoUrl": "https://media.licdn.com/company-logo.png",
  "website": null,
  "industry": "Banking",
  "location": "New York, United States",
  "headline": null,
  "description": null,
  "employeeCount": null,
  "followerCount": null,
  "companyId": "123456",
  "sourceQuery": "bank",
  "sourcePage": 1,
  "resultRank": 1,
  "icpScore": null,
  "icpScoreReasons": []
}
```

Field availability depends on the provider's search response. Values that are not published or returned remain `null` or empty arrays.

### Result limits

The provider returns up to 50 raw rows per page. The current input allows up to 15 pages, or 750 raw rows, for each search term.

`resultsPerSearch` is a requested maximum, not a guaranteed number of final rows. The Actor removes duplicates and invalid records, so the final unique-company count can be lower. For example, 750 raw rows may produce fewer than 750 unique companies.

To build a larger combined dataset, add different search terms. Results are deduplicated across all terms.

### Progressive dataset writes

Each successful provider page is normalized and pushed to the dataset immediately. If page 12 fails after pages 1-11 succeeded, the records from those completed pages remain available.

The run summary includes:

- `companiesFound`
- `rawCompaniesReceived`
- `duplicateCompaniesSkipped`
- `excludedCompaniesSkipped`
- `invalidCompaniesSkipped`
- `providerRequests`
- `estimatedProviderCostUsd`
- `outputWrites`

### Use cases

- Build targeted B2B prospect lists.
- Discover companies in a market or country.
- Research competitors and industry segments.
- Prepare account lists for sales and account-based marketing.
- Find potential partners, distributors, or acquisition targets.
- Export company data into HubSpot, Salesforce, Google Sheets, or internal workflows.

### Responsible use

This Actor accesses public professional company information through a third-party data API. Users are responsible for following applicable laws, platform terms, privacy requirements, and outreach regulations. Do not use the data for unlawful discrimination, harassment, or unsolicited bulk messaging.

# Actor input Schema

## `searchTerms` (type: `array`):

Add one market, product, industry, or company keyword per line.

## `locationIds` (type: `array`):

Select one or more countries by name. Advanced users can also enter a numeric LinkedIn location ID for a city or region.

## `industryIds` (type: `array`):

Select one or more active LinkedIn industries by name. Advanced users can also enter a numeric LinkedIn industry ID.

## `resultsPerSearch` (type: `integer`):

Maximum for each search term. The provider exposes 50 companies per page and up to 15 pages (750 companies). Add multiple search terms when you need more than 1,000 combined results.

## `enrichCompanyDetails` (type: `boolean`):

Fetch additional LinkedIn company details such as website, description, follower count, employee data, specialties, and other available public metadata. Each successfully enriched company is charged separately.

## Actor input object example

```json
{
  "searchTerms": [
    "B2B SaaS",
    "ecommerce analytics"
  ],
  "locationIds": [],
  "industryIds": [],
  "resultsPerSearch": 200,
  "enrichCompanyDetails": false
}
```

# Actor output Schema

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

Company records in the default dataset, ready for JSON, CSV, Excel, or API export.

## `summary` (type: `string`):

Counts, provider request usage, and estimated external API cost.

# 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 = {
    "searchTerms": [
        "B2B SaaS",
        "ecommerce analytics"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scraping_solutions/linkedin-company-finder").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 = { "searchTerms": [
        "B2B SaaS",
        "ecommerce analytics",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("scraping_solutions/linkedin-company-finder").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 '{
  "searchTerms": [
    "B2B SaaS",
    "ecommerce analytics"
  ]
}' |
apify call scraping_solutions/linkedin-company-finder --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/6SAvw5enM2Hfp4f5q/builds/YPyXAV4R7Fxwd1cJ9/openapi.json
