# 51job Scraper 前程无忧: China Jobs, Salaries & Companies (`zaiq/51job-scraper`) Actor

New jobs from 51job (前程无忧) for any keyword, city or search link: title, monthly salary as numbers, company, type, size and industry, city and district, experience, education, tags, full description and posting time. Recruiter details are never returned. $1.30 per 1,000 jobs.

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

## Pricing

from $1.04 / 1,000 jobs

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

## 51job Scraper: new China jobs, salaries and companies from 前程无忧

Search **51job (前程无忧)** by **keyword** and **city**, or paste a **we.51job.com search link**, and get **one row per job**: **title, monthly salary as numbers (CNY), company, company type, size and industry, city and district, experience, education, tags, the full job description and the posting time**. No login, no cookies.

**Built for daily monitoring:** it reads 51job's own open job list, which holds the jobs posted or refreshed in about the **last 7 days**, up to about 1,000 per query. A search without a city that needs more is split across 51job's provinces automatically, with duplicates removed. It is a fresh-jobs feed, not an archive of older postings.

**Never people:** the recruiter's name, photo, id, position and online status are dropped, and phone numbers, emails and WeChat ids typed into descriptions are removed. **Tested:** one search of 销售 returned 1,500 jobs in 42 seconds with every job carrying a description. **$1.30 per 1,000 jobs**; searches with no jobs cost nothing.

### What you get

| Field | What it holds |
|---|---|
| The job | `jobId`, `title`, `url`, `description`, `tags`, `employmentType`, `remote`, `internship` |
| Pay | `salaryText` as 51job shows it, `salaryMinCny` and `salaryMaxCny` (monthly, numbers), `salaryMonths` (for example 13 when a 13th month is stated) |
| Requirements | `experience`, `education` |
| The company | `company`, `companyFullName`, `companyType`, `companySize`, `industry`, `companyLogo` |
| Where | `city`, `district`, `area`, `latitude`, `longitude` |
| When | `postedAt`, `updatedAt` (China time) |
| Where it came from | `searchTerm`, `searchCity`, `rank` |

### What people use it for

- **Salary benchmarks:** monthly pay ranges by job title, city and company size
- **Hiring trackers:** which companies are hiring for which roles this week
- **Labour-market research:** demand for skills such as 数据分析, java or 新能源 across Chinese cities
- **B2B sales signals:** companies that are hiring, with their industry and size
- **AI agents:** let a model pull fresh Chinese job data by keyword and city

### How to use it

1. Type one or more **searches** and **cities**, or paste **51job search links** with your filters set.
2. Set **jobs per search**.
3. Click **Start** and export the jobs as JSON, CSV or Excel, or schedule it daily.

### Input

| Field | Example | Notes |
|---|---|---|
| Searches | `数据分析` | Keywords in Chinese or English, one per line |
| Cities | `上海` | Chinese or English names or 51job area codes; empty = all of China |
| 51job search links | `https://we.51job.com/pc/search?keyword=java&jobArea=020000` | Keyword, city and filters are used as they are |
| Jobs per search | `100` | Up to 10,000 |
| Posted within | `7d` | 7 days (everything the list holds) or 24 hours |

### Output

Each result is one row in the run's dataset (download it as JSON, CSV, Excel, XML or HTML, or read it through the API). An example row (values shortened):

```json
{
  "jobId": "100000001",
  "title": "数据分析师",
  "url": "https://jobs.51job.com/shanghai/100000001.html",
  "company": "示例科技",
  "companyFullName": "示例科技有限公司",
  "companyType": "民营",
  "companySize": "150-500人",
  "industry": "计算机软件",
  "companyLogo": null,
  "city": "上海",
  "district": "浦东新区",
  "area": "上海·浦东新区",
  "salaryText": "1.5-2.5万·13薪",
  "salaryMinCny": 15000,
  "salaryMaxCny": 25000,
  "salaryPeriod": "month",
  "salaryMonths": 13,
  "experience": "3-4年",
  "education": "本科",
  "employmentType": "全职",
  "remote": false,
  "internship": false,
  "tags": [
    "3-4年",
    "本科",
    "SQL",
    "Python",
    "五险一金"
  ],
  "description": "岗位职责：\n1、负责业务数据分析与报表……",
  "postedAt": "2026-11-19 10:15:00",
  "updatedAt": "2026-11-19 10:15:02",
  "latitude": 31.22,
  "longitude": 121.54,
  "searchTerm": "数据分析",
  "searchCity": "上海",
  "rank": 1,
  "scrapedAt": "2026-11-20T07:00:00Z"
}
```

A record named `SUMMARY` in the run's key-value store lists every search with its job count and the total 51job reports for it, cities or links that were not understood, how many duplicates were skipped, how many jobs were charged and how much traffic the run used.

### Pricing

- **$0.0013 per job** ($1.30 per 1,000; $1.17 on Silver and $1.04 on Gold and higher plans)
- Searches with no jobs, bad inputs and calls 51job did not answer cost nothing
- Apify's start fee is $0.00005 per run

What typical jobs cost at the list price:

| Job | Cost |
|---|---|
| 100 jobs for one search in one city | $0.13 |
| 1,000 jobs | $1.30 |
| 10 searches x 5 cities x 100 jobs, daily | $6.50 a day |

On Apify's Scale and Business plans the per-event prices are lower (Store discounts). Set **Maximum cost per run** and the Actor stops cleanly when it is reached: you never pay more than that.

### Tips

- Run it daily on a schedule: each run returns what was posted or refreshed in the last week, so daily runs build a complete history.
- Set filters (salary, experience, education, company type and size) on 51job's own search page, then paste the link.
- Salaries are monthly CNY; `salaryMonths` shows a stated 13th or 14th month, so yearly pay is salary x salaryMonths.

### Use it through the API

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("zaiq/51job-scraper").call(run_input={"searches": ["数据分析"], "cities": ["上海"], "maxItemsPerSearch": 100})
for row in client.dataset(run.default_dataset_id).iterate_items():
    print(row)
```

**JavaScript**

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('zaiq/51job-scraper').call({"searches": ["数据分析"], "cities": ["上海"], "maxItemsPerSearch": 100});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

**HTTP (one call, results back)**

```bash
curl -X POST 'https://api.apify.com/v2/acts/zaiq~51job-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"searches": ["数据分析"], "cities": ["上海"], "maxItemsPerSearch": 100}'
```

### Integrations and schedules

- **Schedules:** run it every hour, day or week from the Apify Console (Schedules) and keep a history of results.
- **Make, Zapier, n8n, Google Sheets, Slack, Airtable:** connect it through Apify's integrations, or send each finished run to a **webhook**.
- **Datasets:** results stay in the run's dataset; export them or read them by API whenever you need them.

### Use it with AI agents (MCP)

Add Apify's MCP server with this Actor already pinned (`https://mcp.apify.com?tools=zaiq/51job-scraper`) to Claude, ChatGPT, Cursor, VS Code or any MCP client. The agent can find this Actor and run it for you: ask it for "Data analyst jobs in Shanghai posted this week, with monthly salary ranges and company size". AI agents can also pay for runs directly through Apify's agentic payments.

### Limits

- Jobs posted or refreshed in about the last 7 days, up to about 1,000 per query (searches without a city are split across provinces to go further).
- Fields come from 51job's open job list; some jobs have no salary or district.
- People are never returned: no recruiter names, photos, ids or contact details.
- Public data only: you are responsible for how you use it under 51job's terms, China's PIPL and the laws that apply to you.

### FAQ

**Do I need a 51job account?**

No. Nothing to log in to and no cookies to paste.

**Can I get jobs older than a week?**

No. 51job's open job list covers about the last 7 days. Schedule daily runs to keep a full history.

**Why is a recruiter's name missing?**

On purpose: recruiter names, photos and contact details are personal data and are never returned.

**What is salaryMonths?**

The number of monthly salaries a year when the job states it, for example 13 for a 13th-month bonus.

**I use another 51job scraper. Do I need to change my input?**

Usually not: url, max_results, max_page, queries, cities, startUrls and maxItems are understood too.

### Related Actors from Zaiq

- [liepin-scraper](https://apify.com/zaiq/liepin-scraper): Liepin (猎聘) jobs with salaries and companies
- [ats-jobs-scraper](https://apify.com/zaiq/ats-jobs-scraper): jobs from company career boards
- [indeed-jobs-scraper](https://apify.com/zaiq/indeed-jobs-scraper): Indeed jobs

### Support

Questions, a site that changed, or a field you need? Open an issue on this Actor's **Issues** tab: we answer there, usually within a day.

***

Also found as: 51job scraper, 前程无忧 爬虫, china jobs scraper, 51job api, chinese job listings, china salary data.

# Actor input Schema

## `searches` (type: `array`):

Keywords as you would type them into 51job's search box (Chinese or English, e.g. java, 数据分析, 销售), one per line. Leave empty for the newest jobs in your cities.

## `cities` (type: `array`):

Cities or provinces in Chinese or English (上海, Shanghai, 广东省) or 51job area codes (020000). Each search runs in each city. Leave empty for all of China.

## `startUrls` (type: `array`):

Optional. we.51job.com/pc/search links: their keyword, city and filters (salary, experience, education, company type and size, industry) are used as they are.

## `maxItemsPerSearch` (type: `integer`):

The most jobs to return for each search in each city ($0.0013 each). 51job's open job list holds about 1,000 a query; a search without a city that needs more is split across provinces.

## `postedWithin` (type: `string`):

51job's open job list covers about the last 7 days.

## `salary` (type: `string`):

51job's own salary code, as it appears in a search link (salary=...). Easiest: set filters on 51job and paste the link above.

## `workYear` (type: `string`):

51job's workYear code, as in a search link.

## `degree` (type: `string`):

51job's degree code, as in a search link.

## `companyType` (type: `string`):

51job's companyType code, e.g. 04 for state-owned.

## `companySize` (type: `string`):

51job's companySize code, e.g. 05 for 1,000-5,000 staff.

## `industry` (type: `string`):

51job's industry code, as in a search link.

## Actor input object example

```json
{
  "searches": [
    "数据分析"
  ],
  "cities": [
    "上海"
  ],
  "maxItemsPerSearch": 100,
  "postedWithin": "7d"
}
```

# Actor output Schema

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

Dataset: the jobs.

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

What each search returned, and notes.

# 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 = {
    "searches": [
        "数据分析"
    ],
    "cities": [
        "上海"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("zaiq/51job-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 = {
    "searches": ["数据分析"],
    "cities": ["上海"],
}

# Run the Actor and wait for it to finish
run = client.actor("zaiq/51job-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 '{
  "searches": [
    "数据分析"
  ],
  "cities": [
    "上海"
  ]
}' |
apify call zaiq/51job-scraper --silent --output-dataset

```

## MCP server setup

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