# Glassdoor Salaries Scraper (`devilscrapes/glassdoor-salaries-scraper`) Actor

Scrape Glassdoor salary benchmarks by job title, optionally scoped to a specific company. Get base-pay and total-pay percentiles, currency, pay period, and a pay-mix breakdown per row — ready for CSV, JSON, or API export, no login required.

- **URL**: https://apify.com/devilscrapes/glassdoor-salaries-scraper.md
- **Developed by:** [DevilScrapes](https://apify.com/devilscrapes) (community)
- **Categories:** Jobs
- **Stats:** 4 total users, 3 monthly users, 33.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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/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

<div align="center">
  <img src=".actor/icon.svg" width="160" alt="Devil Scrapes mark" />

## Glassdoor Salaries Scraper

**💰 $2.02 / 1 000 results**  ·  pay only for results  ·  no credit card to try

*We do the dirty work so your dataset stays clean.* 😈

Scrape Glassdoor salary benchmarks by job title, optionally scoped to a specific company. Get base-pay and total-pay percentiles, currency, pay period, and a pay-mix breakdown per row — ready for CSV, JSON, or API export, no login required.

</div>

***

### 🎯 What this scrapes

Glassdoor publishes crowdsourced base-pay and total-pay percentiles for thousands of job titles, with an optional per-company breakdown — but the site has no export button and no public API. This Actor searches Glassdoor's own salary pages and writes one structured row per job-title (optionally per-company) benchmark: base pay, total pay (25th/median/75th percentile), currency, pay period, and a pay-mix breakdown (commission, profit-sharing, tips) when Glassdoor exposes one. No Glassdoor login is required — the percentile data is visible on the public page.

### 🔥 What we handle for you

- 🛡️ **We rotate browser fingerprints** — curl-cffi impersonates real Chrome / Firefox / Safari TLS handshakes so Glassdoor sees a browser, not Python.
- 🌐 **We rotate proxy exit IPs and session IDs** through Apify Proxy on every block.
- 🔁 **We retry with exponential backoff** on 408 / 429 / 5xx and rotate fingerprints on a Cloudflare challenge — up to 5 attempts per page, Retry-After honoured.
- 🧱 **We back off when Glassdoor rate-limits** — partial results surface with a clear status message; we never silently return an empty dataset.
- 🧊 **Clean, typed dataset rows** — Pydantic-validated, ISO-8601 timestamps, ready for JSON / CSV / Excel export straight from the Apify Console.
- 💰 **You pay only for results that land.** No data → no charge, only the small actor-start warm-up fee.

### 💡 Use cases

- **Compensation benchmarking** — pull current base/total-pay percentiles for a role family into your comp-planning sheet.
- **Offer calibration** — check a candidate's ask against Glassdoor's crowdsourced range for that title (and company, if you scope it).
- **Comp-team market scans** — sweep dozens of job titles at once, on a schedule, to track how published ranges shift.
- **Company-specific pay research** — resolve a target employer once (or supply its employerId directly) and pull every title you care about at that company.

### ⚙️ How to use it

1. Click **Try for free** at the top of the page.
2. Fill in the input form — most fields have sensible defaults.
3. Click **Start**. Output streams into the run's dataset.
4. Export from **Storage → Dataset** as JSON, CSV, or Excel — or fetch via the API.

### 📥 Input

| Field | Type | Required | Default | Notes |
|---|---|:--:|---|---|
| `searchMode` | `string` | no | 'title' | 'title' scrapes national/aggregate salary benchmarks per job title via the title-search results page.… |
| `jobTitles` | `array` | **yes** | \['Software Engineer'] | One or more job titles to search, e.g. 'Software Engineer'. Required — this is the primary search key. |
| `companyNames` | `array` | no | '—' | Company names to scope results to. Required when Search mode is 'title\_at\_company'. |
| `employerIds` | `array` | no | '—' | Power-user shortcut: known Glassdoor employerId values, paired positionally with Company names. Skips the… |
| `locations` | `array` | no | '—' | Optional location filter, applied best-effort against whatever location signal the page exposes. |
| `maxResults` | `integer` | no | 50 | Hard cap on dataset rows for this run. |
| `proxyConfiguration` | `object` | no | {'useApifyProxy': True} | Apify Proxy configuration. Glassdoor runs Cloudflare and degrades to 403/429 under burst traffic, so we rotate session… |

#### Example input

```json
{
  "searchMode": "title",
  "jobTitles": [
    "Software Engineer"
  ],
  "companyNames": null,
  "employerIds": null,
  "locations": null,
  "maxResults": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

### 📤 Output

Every row is one dataset item.

| Field | Type | Notes |
|---|---|---|
| `job_title` | `string` | Requested or page-confirmed job title. |
| `company_name` | `['string', 'null']` | Company name; null for title-only aggregate rows. |
| `employer_id` | `['integer', 'null']` | Glassdoor's internal employerId; null when the page doesn't expose one. |
| `location` | `['string', 'null']` | Best-effort echo of the requested location filter. |
| `base_pay_median` | `['number', 'null']` | Pay-mix BASE component median. |
| `total_pay_25th` | `['number', 'null']` | Total-pay 25th percentile. |
| `total_pay_median` | `['number', 'null']` | Total-pay median. |
| `total_pay_75th` | `['number', 'null']` | Total-pay 75th percentile. |
| `currency_code` | `string` | ISO currency code, e.g. 'USD'. |
| `pay_period` | `string` | Pay period, e.g. 'ANNUAL'. |
| `additional_pay_breakdown` | `['array', 'null']` | Pay-mix entries other than BASE (commission, profit-sharing, tips), each {component, median}. |
| `sample_size` | `['integer', 'null']` | Glassdoor's submission-count field, if present. |
| `source_url` | `string` | The fetched page URL, verbatim. |
| `scraped_at` | `string` | ISO-8601 UTC row-construction timestamp. |

#### Example output

```json
{
  "job_title": "Software Engineer",
  "company_name": "Google",
  "employer_id": 9079,
  "location": null,
  "base_pay_25th": null,
  "base_pay_median": 150000.0,
  "base_pay_75th": null,
  "total_pay_25th": 240111.12,
  "total_pay_median": 296307.52,
  "total_pay_75th": 374773.68,
  "currency_code": "USD",
  "pay_period": "ANNUAL",
  "additional_pay_breakdown": [
    {
      "component": "COMMISSION",
      "median": 0.0
    },
    {
      "component": "PROFITSHARING",
      "median": 45000.0
    },
    {
      "component": "TIPS",
      "median": 0.0
    }
  ],
  "sample_size": null,
  "source_url": "https://www.glassdoor.com/Salary/Google-Software-Engineer-Salaries-E9079_D_KO7,24.htm",
  "scraped_at": "2026-08-02T09:00:00+00:00"
}
```

### 💰 Pricing

Pay-Per-Event — you pay only when these events fire:

| Event | USD | What it is |
|---|---:|---|
| `actor-start` | $0.02 | One-off warm-up charge per run |
| `result-row` | $0.002 | Per unique dataset item |

Example: 1 000 results at the rates above ≈ **$2.02**. No subscription, no minimum, no card to start — Apify gives every new account $5 of free credit.

### 🚧 Limitations

base\_pay\_25th / base\_pay\_75th stay null in v1 — only the BASE pay-mix median is confirmed present on every page we've verified. locations is a best-effort echo of your filter, not a server-side Glassdoor query parameter. title\_at\_company without Employer IDs costs a resolution request (search page) before the detail-page fetch, doubling request volume for that pair — supply Employer IDs directly to skip it.

### ❓ FAQ

**Do I need a Glassdoor account or API key?**

No. Base-pay and total-pay percentiles are visible on Glassdoor's public salary pages without logging in — we don't require or ask for credentials.

**What's the difference between 'title' and 'title\_at\_company' mode?**

'title' pulls national/aggregate benchmarks per job title across companies. 'title\_at\_company' resolves a specific (job title, company) pair to that company's own detail page — supply Employer IDs directly if you already know them to skip the extra resolution request.

**Why are base\_pay\_25th and base\_pay\_75th sometimes null?**

Glassdoor's pay-mix breakdown confirms a BASE median on every page we've verified, but not always a 25th/75th split for that component — we surface exactly what the page exposes, never an estimate.

**Why did my run come back with fewer rows than Max results?**

Glassdoor rate-limits aggressively under bursts. We rotate fingerprints and back off automatically and retry per target, but a run can still land short of the cap if a specific title/company genuinely has no match.

### 💬 Your feedback

Spotted a bug, hit a weird edge case, or need a new field? Open an
issue on the Actor's **Issues** tab on Apify Console — we ship
fixes weekly and we read every report.

***

<div align="center">

Built by **[Devil Scrapes](https://apify.com/DevilScrapes)** 😈 — a small fleet of
opinionated public-data Actors. Honest pricing, real engineering, zero fine print.

</div>

# Actor input Schema

## `searchMode` (type: `string`):

'title' scrapes national/aggregate salary benchmarks per job title via the title-search results page. 'title\_at\_company' resolves each (job title, company) pair to a company+title detail page.

## `jobTitles` (type: `array`):

One or more job titles to search, e.g. 'Software Engineer'. Required — this is the primary search key.

## `companyNames` (type: `array`):

Company names to scope results to. Required when Search mode is 'title\_at\_company'. Resolved to Glassdoor's internal employerId via the title-search results listing unless Employer IDs is also set.

## `employerIds` (type: `array`):

Power-user shortcut: known Glassdoor employerId values, paired positionally with Company names (one employerId per company, reused across every requested title). Skips the search-results resolution hop entirely when set.

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

Optional location filter, applied best-effort against whatever location signal the page exposes. Does not block a title-only run.

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

Hard cap on dataset rows for this run.

## `proxyConfiguration` (type: `object`):

Apify Proxy configuration. Glassdoor runs Cloudflare and degrades to 403/429 under burst traffic, so we rotate session and browser fingerprint on every block. No proxy group default is baked in here — cloud runs resolve whatever group your account has provisioned.

## Actor input object example

```json
{
  "searchMode": "title",
  "jobTitles": [
    "Software Engineer"
  ],
  "maxResults": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `datasetItems` (type: `string`):

All dataset items as JSON.

## `datasetItemsCsv` (type: `string`):

Same data exported to CSV.

## `datasetView` (type: `string`):

Open the run dataset in the Console.

# 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 = {
    "jobTitles": [
        "Software Engineer"
    ],
    "maxResults": 5,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("devilscrapes/glassdoor-salaries-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 = {
    "jobTitles": ["Software Engineer"],
    "maxResults": 5,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("devilscrapes/glassdoor-salaries-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 '{
  "jobTitles": [
    "Software Engineer"
  ],
  "maxResults": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call devilscrapes/glassdoor-salaries-scraper --silent --output-dataset

```

## MCP server setup

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