# LinkedIn Jobs Search & Full Descriptions (`commercestack/linkedin-jobs-scraper`) Actor

Search public LinkedIn jobs by keywords, location or URLs, or collect full descriptions by job ID. Deduplicated rows, company, location, dates and explicit coverage. No LinkedIn login required.

- **URL**: https://apify.com/commercestack/linkedin-jobs-scraper.md
- **Developed by:** [Aleksandr Karavaev](https://apify.com/commercestack) (community)
- **Categories:** Jobs
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.28 / 1,000 full jobs

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 Jobs Scraper

Find public LinkedIn job postings by keywords, location, or search URL. Look up known jobs by ID or canonical URL. Both modes return one dataset row per job with the full public description. No LinkedIn login is required.

### Input

| Mode | What to supply |
| --- | --- |
| `search` | Up to 20 `queries` with `keywords`, `location`, or both. You can instead supply up to 20 `searchUrls`. |
| `jobs` | Up to 1,000 positive job IDs or canonical HTTPS LinkedIn job URLs without query parameters. |

The form is prefilled with a software engineer search in the United States. Clear **Search queries** before switching to search URLs or job lookup.

#### Search example

```json
{
  "mode": "search",
  "queries": [{"keywords": "software engineer", "location": "United States"}],
  "maxItems": 10,
  "maxPagesPerQuery": 2
}
```

#### Job lookup example

```json
{
  "mode": "jobs",
  "jobs": ["4476382792", "https://www.linkedin.com/jobs/view/4410261275/"],
  "maxItems": 2
}
```

Search URLs accept `keywords`, `location`, `geoId`, `f_TPR`, `f_TP`, `f_C`, `f_AL`, `f_EA`, `distance`, `sortBy`, and `start`. Copy the URL and remove other parameters before running. Deprecated experience, job type, and workplace filter parameters are rejected.

| Setting | Default | Range |
| --- | --- | --- |
| `maxItems` | 10 | 1–1,000 unique selected jobs |
| `maxPagesPerQuery` | 2 | 1–10 search pages per query |
| `maxConcurrency` | 2 | 1–4 concurrent detail lookups |
| `requestTimeoutSecs` | 20 | 5–30 seconds per source request |
| `maxRetries` | 2 | 0–2 additional attempts per lookup |

If the run's charge limit is lower than `maxItems`, the Actor can select fewer jobs. Use longer batches via multiple runs if more jobs are needed. The Actor bounds source work to four minutes and supports 256–512 MB, with a 256 MB default.

### Dataset and coverage

A full row contains the verified numeric-string `jobId`, canonical `url`, `title`, `companyName`, `location`, `descriptionText`, and sanitized `descriptionHtml`. It also includes `sourceUrl`, the UTC `observedAt` timestamp, and any matching searches observed for the same job under `queryProvenance`. The stable `recordId` has the form `linkedin:<jobId>`. Deduplication applies within a run. Use `recordId` to deduplicate exports collected across runs.

Optional source fields include the company URL, posted date and relative time, employment type, seniority, industries, salary, applicant text, and explicit closed status. These fields are `null` when the public page lacks verified data. A date from a search card can fill the same job's missing date. Structured salary requires an explicit currency and pay period.

Open **Coverage, errors and billing** on the Output tab, or read `MANIFEST` in the default key–value store. It records search pages and stop reasons, per-job errors, skipped IDs, requests, and confirmed delivered and billed counts.

- `completed` means the Actor processed the work within the requested bounds. Check for `page_limit` or `item_limit` and `truncated: true` to see where the search was capped. A source-confirmed empty search or a batch of confirmed unavailable jobs can complete with zero rows.
- `partial` means useful results or confirmed missing jobs can coexist with source errors, a charge limit, or an interruption. Already saved rows remain available.
- `failed` means the Actor could not complete useful work. A source block, HTTP 429, timeout, or unrecognized page is reported as an error. A storage or billing operation with an unknown outcome can also fail the platform run when some rows were saved. The Actor stops and checks IDs before resolving an interrupted dataset write, and stops billing when a charge outcome cannot be verified.

See the **Pricing** tab for current rates. The `job-result` event applies to a delivered, complete record. Missing jobs, errors, and duplicate IDs do not generate this event.

### API

Save either example above as `input.json`. Set `APIFY_TOKEN` and `APIFY_ACTOR_ID` in your environment, then start the run.

```bash
curl -sS --fail-with-body -X POST \
  "https://api.apify.com/v2/acts/${APIFY_ACTOR_ID}/runs?timeout=300" \
  -H "Authorization: Bearer ${APIFY_TOKEN}" \
  -H "Content-Type: application/json" \
  --data-binary @input.json
```

After the run finishes, use its `defaultDatasetId` and `defaultKeyValueStoreId` to fetch the data and coverage.

```bash
curl -sS --fail-with-body "https://api.apify.com/v2/datasets/${DATASET_ID}/items" \
  -H "Authorization: Bearer ${APIFY_TOKEN}"
curl -sS --fail-with-body "https://api.apify.com/v2/key-value-stores/${STORE_ID}/records/MANIFEST" \
  -H "Authorization: Bearer ${APIFY_TOKEN}"
```

### Support

If a run needs investigation, you can enable **Settings > Login & Privacy > Share run data with developers** in Apify Console. Open an issue from the Actor's **Issues** tab and include the run URL, affected job IDs or searches, and the `MANIFEST` error codes.

# Actor input Schema

## `mode` (type: `string`):

Search for jobs or look up known job IDs. Both modes fetch the full public descriptions.

## `queries` (type: `array`):

Use up to 20 objects with keywords, location or both. Clear this input when using search URLs or known jobs.

## `searchUrls` (type: `array`):

Use up to 20 public HTTPS LinkedIn Jobs search URLs in search mode. Supported parameters are keywords, location, geoId, f_TPR, f_TP, f_C, f_AL, f_EA, distance, sortBy and start. Other filters, including deprecated ones, are rejected.

## `jobs` (type: `array`):

Use up to 1,000 positive numeric IDs or canonical HTTPS LinkedIn job URLs without tracking parameters in jobs mode. Clear the search inputs first.

## `maxItems` (type: `integer`):

Maximum unique jobs selected for full details. A lower run charge limit can reduce this number.

## `maxPagesPerQuery` (type: `integer`):

Maximum pages to read per query or URL. Unused in job lookup mode.

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

Maximum number of full job detail requests in flight.

## `requestTimeoutSecs` (type: `integer`):

Maximum time for an individual LinkedIn request within the run deadline.

## `maxRetries` (type: `integer`):

Additional attempts per source lookup. The Actor also applies a shared deadline and request budget.

## Actor input object example

```json
{
  "mode": "search",
  "queries": [
    {
      "keywords": "software engineer",
      "location": "United States"
    }
  ],
  "maxItems": 10,
  "maxPagesPerQuery": 2,
  "maxConcurrency": 2,
  "requestTimeoutSecs": 20,
  "maxRetries": 2
}
```

# Actor output Schema

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

No description

## `manifest` (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 = {
    "mode": "search",
    "queries": [
        {
            "keywords": "software engineer",
            "location": "United States"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("commercestack/linkedin-jobs-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 = {
    "mode": "search",
    "queries": [{
            "keywords": "software engineer",
            "location": "United States",
        }],
}

# Run the Actor and wait for it to finish
run = client.actor("commercestack/linkedin-jobs-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 '{
  "mode": "search",
  "queries": [
    {
      "keywords": "software engineer",
      "location": "United States"
    }
  ]
}' |
apify call commercestack/linkedin-jobs-scraper --silent --output-dataset

```

## MCP server setup

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