# LinkedIn Jobs Scraper — Job Search & CSV Export (`funny_ground/linkedin-jobs-scraper`) Actor

Scrape public LinkedIn jobs by keyword, location, search URL or job URL. Export companies, descriptions and available salary evidence to CSV/JSON. Deduplicate jobs and compare prior datasets; no login, private recruiter data or job applications.

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

## Pricing

from $1.00 / 1,000 public linkedin jobs

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 — Public Jobs & Salary Evidence

Collect public LinkedIn job listings into clean JSON, CSV or Excel exports. Search by keyword and location, supply public search URLs, or retrieve public job URLs directly. Deduplicate jobs across all inputs, retain source evidence, and compare a previous dataset without creating shared state.

**Public job data only.** No LinkedIn credentials, cookies, browser, residential proxy, CAPTCHA solving, job applications, recruiter contacts, or paid upstream API. LinkedIn may restrict public access by region/IP or change its markup; no complete-coverage or availability guarantee is made.

### Quick start

```json
{
  "keywords": ["software engineer"],
  "locations": ["United States"],
  "maxResults": 10,
  "resultsPerSearch": 20,
  "includeJobDetails": true
}
```

For the lowest request count, set `includeJobDetails` to `false`. Search-card data are still genuine job results, but descriptions, criteria and other detail-only fields remain null.

#### Direct public job URLs

```json
{
  "jobUrls": ["https://www.linkedin.com/jobs/view/4476983365"],
  "maxResults": 1
}
```

Job availability changes. Replace this example ID with a currently public listing. Direct inputs always need their public detail page, even when `includeJobDetails=false`.

### Incremental results and snapshots

Set `previousDatasetId` to an accessible prior dataset from this Actor, and `newJobsOnly=true` to skip known IDs **before** fetching details. You can also provide `knownJobIds`. Up to 10,000 previous rows/explicit IDs are supported. Inaccessible or oversized previous datasets fail explicitly rather than silently generating duplicate paid results.

When `newJobsOnly=false`, output contains:

- `NEW`: ID absent from the supplied prior state.
- `PREVIOUSLY_SEEN`: present only in the explicit ID list; no prior content was supplied.
- `UNCHANGED` / `UPDATED`: comparable prior content fingerprints are identical/different.
- `COMPARISON_UNAVAILABLE`: prior fingerprint version, detail level or available-field coverage is not comparable. A missing field is not reported as a verified job-content update.

`fingerprintKind` includes the schema version and field-availability mask (for example `FULL:v2:...`). Only matching kinds are compared. Switching between a search+detail record and a direct detail record may change which fields are available, so comparison can legitimately be unavailable.

Fingerprint status compares source-extracted title, company, location, explicit posting date, salary text, description and criteria. It is not a verified employment-status determination. A bounded query missing a prior job does **not** establish removal; this Actor never emits inferred removed-job rows. Zero new jobs can be a successful incremental run. Explicitly known direct inputs may be skipped without checking whether they are still available.

### Output fields

`jobId`, canonical `url`, `title`, `companyName`, available public `companyUrl`, `location`, `postedAt`, original `postedTimeText`, original `salaryText`, normalized salary fields, `descriptionText`, `seniorityLevel`, `employmentType`, `jobFunction`, `industries`, original `applicantsText`, `detailsStatus`, snapshot fields, `sourceType`, `sourceUrl`, and `scrapedAt`.

Missing values remain **null**, never invented zeroes. Relative publication labels are not turned into fabricated exact dates. Applicant text is not assumed to be an exact application count. Source URLs contain public search parameters, not tracking identifiers or credentials.

#### Salary evidence

`salaryText` always preserves the public source string when available. Normalized amounts require an unambiguous currency (for example USD, US$, EUR, € or GBP/£), an explicit time unit and one or two ordered numbers. A lone `$` does not prove USD, and locale-ambiguous salaries remain unparsed. No salary is inferred from title, employer, location or experience; no currency conversion or annualization is performed. `salaryParsingStatus` is `EXPLICIT`, `UNPARSED` or `NOT_LISTED`.

#### Detail failures

A successfully parsed public search listing may still be saved and billed if its separate detail fetch fails. Such rows have `detailsStatus=UNAVAILABLE`, a failure count in `OUTPUT`, and null unavailable fields. For direct job inputs there is no listing fallback: an unreadable detail page produces no billable result. Empty search results and error/challenge pages never become dataset jobs.

### Pricing and cost boundaries

**Pay per event (PPE), with Apify platform resource usage billed separately to the customer.** The Pricing tab is authoritative. No paid upstream service is called and no third-party API fee is hidden in the result price.

Initial release prices (the Actor Pricing tab is authoritative):

| Event | FREE | BRONZE / SILVER / GOLD / PLATINUM / DIAMOND |
|---|---:|---:|
| Saved unique valid job | $0.005 each ($5 / 1,000) | $0.001 each ($1 / 1,000) |
| Actor start, per GB with minimum one event | $0.025 | $0.005 |

The startup event and customer-paid Apify compute/storage/transfer may apply **even when zero jobs are saved or the run fails**. Empty results, errors, and duplicate/known skipped jobs do not incur job-result events. SDK default-dataset charging is used once; no second manual result charge is added. Owner/test runs may show zero result charges despite successful dataset writes.

The developer receives the event fee after the platform's share; this is not a profit or sales guarantee. Customer resource pass-through, no paid upstream, bounded requests and no standby avoid an unpriced per-run upstream expense for the developer. Development/build and owner-run validation costs are separate operational expenses.

### Limits and safety

- At most 20 total keyword/location/search-URL combinations; 100 direct jobs.
- Default 25 saved unique jobs, configurable to 1,000; `resultsPerSearch` is an inspected-candidate budget, including duplicate/known jobs, not a saved-job guarantee.
- Developer Free-plan policy: at most **50 output rows per run**, globally across inputs. Paid plans do not have this 50-row cap; all explicit safety limits remain.
- Up to 20 public search pages per query, 300 HTTP attempts, 240-second internal collection deadline and 1.5 MB per response.
- Requests are sequential with a minimum 750 ms spacing. At most one transient HTTP retry; no automatic login-wall/challenge bypass.
- Pagination advances by the number of cards actually returned. Current public responses may return 10 cards despite a requested count of 25.
- Fixed allowlisted public job endpoints only. No arbitrary website fetch, IP targets, redirect following, user-supplied headers or credentials.
- `OUTPUT` in the default key-value store contains requests, bytes, per-source errors, saved/known/duplicate counts, safety stop reasons and explicit billing notes.

Use public data responsibly and comply with applicable law, platform terms and your own lawful purpose. This tool is not affiliated with LinkedIn.

### Development

```sh
npm ci --no-audit --no-fund
npm test
npm run smoke -- --offline
```

Offline smoke parses saved public fixtures. An explicitly invoked live smoke fetches one bounded search and one public detail page, using direct HTTP and no paid provider. Cloud build and production smoke are separate billable platform actions and require the owner's budget approval.

# Actor input Schema

## `keywords` (type: `array`):

Up to 10 job titles or keyword queries. Combined with locations, at most 20 total searches are allowed. No hidden default search.

## `locations` (type: `array`):

Public LinkedIn location strings. Leave empty for unspecified location. Each keyword/location combination is a search.

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

Optional HTTPS linkedin.com/jobs/search URLs. Supported query filters are preserved; tracking, pagination and arbitrary query parameters are discarded.

## `jobUrls` (type: `array`):

Up to 100 public /jobs/view/...-ID URLs or numeric job IDs. Direct jobs always require a public detail fetch.

## `maxResults` (type: `integer`):

Global unique saved-row limit. Customer charge budget, 50-row Free-plan limit and other safety limits may stop earlier.

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

Maximum valid listing candidates inspected per search, including duplicate and known jobs. This is not a guaranteed saved-row count.

## `includeJobDetails` (type: `boolean`):

One extra public request per unique new listing. If details are unavailable, a genuine valid listing can still be saved and billed, with detailsStatus=UNAVAILABLE and missing fields null. Direct job URLs always need their detail page.

## `datePosted` (type: `string`):

Public search filter applied to keyword searches. An explicit search URL uses its own filters. Not an independently verified exact posting timestamp.

## `workplaceType` (type: `string`):

Public search filter for keyword searches. A job's actual workplace is not inferred solely from the query.

## `previousDatasetId` (type: `string`):

Optional accessible Apify dataset with up to 10,000 rows from this Actor. Used for known-job exclusion and comparable fingerprint status. Unreadable/oversized datasets fail instead of silently rescraping. No shared persistent state is created.

## `knownJobIds` (type: `array`):

Optional numeric job IDs previously collected. Set newJobsOnly=true to exclude them before details are fetched. Counts do not establish whether those jobs are still active.

## `newJobsOnly` (type: `boolean`):

Exclude IDs in previousDatasetId and knownJobIds before detail requests. Zero new jobs is valid when a search was successfully read or every direct input was explicitly known. No disappearance/removal is inferred.

## `maxPagesPerSearch` (type: `integer`):

Bounded pagination. Offsets advance by actual cards returned, not a fixed assumed page size. Maximum 300 HTTP attempts and 240-second internal collection deadline.

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

Maximum seconds per public HTTP attempt. The separate collection deadline and request-count cap still apply.

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

At most one retry for transient HTTP statuses. Redirects, login walls, challenges and parse failures are not automatically retried or bypassed.

## Actor input object example

```json
{
  "keywords": [
    "software engineer"
  ],
  "locations": [
    "United States"
  ],
  "maxResults": 25,
  "resultsPerSearch": 25,
  "includeJobDetails": true,
  "datePosted": "any",
  "workplaceType": "any",
  "newJobsOnly": false,
  "maxPagesPerSearch": 5,
  "requestTimeoutSecs": 20,
  "maxRequestRetries": 1
}
```

# Actor output Schema

## `jobs` (type: `string`):

No description

## `summary` (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 = {
    "keywords": [
        "software engineer"
    ],
    "locations": [
        "United States"
    ]
};

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

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

```

## MCP server setup

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