# Salary Benchmarks API: Official US Wages by Job & State (`rawtojson/salary-benchmarks`) Actor

Official US salary data by job title and state: mean, median and 10th-90th percentile annual wages plus employment, from the Bureau of Labor Statistics (OEWS). No scraping, no API key. For HR, recruiters, job boards and AI agents.

- **URL**: https://apify.com/rawtojson/salary-benchmarks.md
- **Developed by:** [Juan Francisco](https://apify.com/rawtojson) (community)
- **Categories:** Jobs, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$6.50 / 1,000 salary benchmark returned

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

## Salary Benchmarks API: official US wage data by job and state (BLS)

**Salary data by job title and US state in one API call.** Get the mean, median and 10th / 25th / 75th / 90th percentile annual wage plus employment for about 60 common occupations, for the whole US or any state. The numbers come from the official **US Bureau of Labor Statistics OEWS** program (the same data the government publishes), through the public BLS API. No scraping, no API key, no login, no proxy.

### Who is it for?

- **HR and compensation teams** that need defensible salary ranges for job offers and pay bands.
- **Recruiters and job boards** that want to show "typical salary" next to each job posting.
- **Career tools, SaaS and AI agents** that need a clean, citable salary source instead of guesses.
- **Candidates and analysts** preparing a salary negotiation or comparing states.

### Quick start

Press **Start** with the prefilled input (Software Developers and Registered Nurses, national). It finishes in a few seconds.

```json
{
  "occupations": ["Software Developers", "Registered Nurses"],
  "regions": ["US", "TX"],
  "maxRequests": 5
}
```

Real output (one item per occupation and region):

```json
{
  "occupation": "Software Developers",
  "socCode": "15-1252",
  "region": "US",
  "source": "US Bureau of Labor Statistics, OEWS",
  "employment": 1687890,
  "annualMean": 148100,
  "p10": 82460,
  "p25": 105210,
  "median": 135980,
  "p75": 171980,
  "p90": 214670,
  "year": 2025,
  "fetchedAt": "2026-11-24T22:12:33.693Z"
}
```

### Input

| Field | Description |
|---|---|
| `occupations` | Job titles (or part of a title) or SOC codes such as `15-1252`. About 60 common occupations are covered, plus `00-0000` for all occupations. |
| `regions` | `US` for the national figure, or two-letter state codes (`CA`, `TX`, `NY`...). |
| `maxRequests` | Cap on BLS requests per run (each covers 3 occupation-region pairs). Default 5. |

### Pricing

Pay per event: **$0.0065 per occupation-region record** returned ($6.50 per 1,000). You only pay for records that have data. Titles that are not in the catalog are skipped without charge.

| | This Actor | Typical alternative |
|---|---|---|
| Source | Official BLS OEWS (government) | Scraped job-board salary estimates |
| Percentiles (P10 to P90) | Yes | Rarely |
| Needs proxy / API key | No | Often |
| Price per record | $0.0065 | Varies; scraped salaries are job-ad estimates, not statistics |

### Schedule it and send the data anywhere

- **Schedule:** use Apify Schedules (monthly is enough, OEWS is updated once a year).
- **Google Sheets:** the Apify integration "Export to Google Sheets" appends each run's dataset to a sheet.
- **Webhook / n8n / Make:** add a webhook on "Run succeeded" or use the Apify node to read the dataset and push it to your CRM, ATS or database.
- **API:** call it from your code with the Apify API or client and use the dataset as JSON, CSV or Excel.

### FAQ

**Which countries are covered?** The United States only in this version, nationally and by state.

**Is the data official?** Yes. It is the Bureau of Labor Statistics OEWS survey. Wages are annual USD, all industries combined, latest official release (see the `year` field).

**The run failed with "No salary data was returned".** The free BLS API allows about 25 requests per day per IP address and Apify runs share IPs. Wait a few hours and run again, or lower `maxRequests`.

**My job title was not found.** Only the built-in catalog of about 60 occupations is available. Use an official SOC code (for example `15-1252`) or a part of the title.

**Can I get metro areas or industries?** Not yet. Tell us in the Issues tab what you need.

### Legal

Data is published by the US Bureau of Labor Statistics and is public domain. This Actor is not endorsed by or affiliated with the BLS. The figures are statistical estimates, not an offer or advice about any individual's pay.

### En español

Datos oficiales de sueldos de EE. UU. (BLS OEWS): media, mediana y percentiles 10/25/75/90 por ocupación y por estado, más número de empleados. Sin scraping, sin clave de API. Útil para RR. HH., reclutadores, bolsas de empleo y herramientas de carrera. Cobertura: solo Estados Unidos. Precio: 0,0065 $ por registro.

More Actors by rawtojson at **https://rawtojson.com**.

# Actor input Schema

## `occupations` (type: `array`):

Job titles (or part of a title) or SOC codes such as 15-1252. About 60 common occupations are covered, e.g. Software Developers, Registered Nurses, Accountants and Auditors, Lawyers, Electricians. Use 00-0000 for all occupations.

## `regions` (type: `array`):

US for the national figure, or two-letter state codes such as CA, TX, NY.

## `maxRequests` (type: `integer`):

Each request covers 3 occupation-region pairs. The BLS public API without key allows about 25 requests per day per IP address.

## Actor input object example

```json
{
  "occupations": [
    "Software Developers",
    "Registered Nurses"
  ],
  "regions": [
    "US"
  ],
  "maxRequests": 5
}
```

# Actor output Schema

## `salaries` (type: `string`):

Mean, median and percentile annual wages.

# 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 = {
    "occupations": [
        "Software Developers",
        "Registered Nurses"
    ],
    "regions": [
        "US"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rawtojson/salary-benchmarks").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 = {
    "occupations": [
        "Software Developers",
        "Registered Nurses",
    ],
    "regions": ["US"],
}

# Run the Actor and wait for it to finish
run = client.actor("rawtojson/salary-benchmarks").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 '{
  "occupations": [
    "Software Developers",
    "Registered Nurses"
  ],
  "regions": [
    "US"
  ]
}' |
apify call rawtojson/salary-benchmarks --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rawtojson/salary-benchmarks"
        }
    }
}
```

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/1plJaJCDj8nRXbs0V/builds/pZJD6MhJGr2QxOr4M/openapi.json
